From 089f5278eb43d5d567b1bca0cfe53f9e9d9129cf Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 26 Jul 2016 18:33:23 +0200 Subject: [PATCH] Add get_config (#676) --- source/developers/python_api.markdown | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/developers/python_api.markdown b/source/developers/python_api.markdown index 2df1fe16b75..1e0e5a1f600 100644 --- a/source/developers/python_api.markdown +++ b/source/developers/python_api.markdown @@ -33,6 +33,18 @@ hass.start() living_room = hass.states.get('group.living_room') ``` +### {% linkable_title Get configuration %} + +Get the current configuration of a Home Asssitant instance. + +```python +import homeassistant.remote as remote + +api = remote.API('127.1.0.1', 'password') + +print(remote.get_config(api)) +``` + ### {% linkable_title Get details about services, events, and entitites %} Similar to the output in the "Developer Tools" of the frontend.