From 7310371367badf800f0d15661b8e5faff432fac8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 7 Nov 2015 22:30:58 +0100 Subject: [PATCH] Add /api/config --- source/developers/rest_api.markdown | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/source/developers/rest_api.markdown b/source/developers/rest_api.markdown index b34db9b29f0..e3ff3311a34 100644 --- a/source/developers/rest_api.markdown +++ b/source/developers/rest_api.markdown @@ -61,6 +61,32 @@ Returns message if API is up and running. } ``` +#### {% linkable_title GET /api/config %} +Returns the current configuration as JSON. + +```json +{ + "components": [ + "recorder", + "http", + "sensor.time_date", + "api", + "frontend", + "sun", + "logbook", + "history", + "group", + "automation" + ], + "latitude": 44.1234, + "location_name": "Home", + "longitude": 5.5678, + "temperature_unit": "\u00b0C", + "time_zone": "Europe/Zurich", + "version": "0.8.0.dev0" +} +``` + #### {% linkable_title GET /api/events %} Returns an array of event objects. Each event object contain event name and listener count.