From 1a2822482098aba2eb733f368918ae3351b2b3f6 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 28 May 2016 08:59:44 +0000 Subject: [PATCH] Site updated at 2016-05-28 08:59:44 UTC --- atom.xml | 2 +- blog/categories/community/atom.xml | 2 +- blog/categories/device-tracking/atom.xml | 2 +- blog/categories/esp8266/atom.xml | 2 +- blog/categories/how-to/atom.xml | 2 +- blog/categories/ibeacons/atom.xml | 2 +- blog/categories/internet-of-things/atom.xml | 2 +- blog/categories/mqtt/atom.xml | 2 +- blog/categories/organisation/atom.xml | 2 +- blog/categories/owntracks/atom.xml | 2 +- blog/categories/presence-detection/atom.xml | 2 +- .../public-service-announcement/atom.xml | 2 +- blog/categories/release-notes/atom.xml | 2 +- blog/categories/survey/atom.xml | 2 +- blog/categories/talks/atom.xml | 2 +- blog/categories/technology/atom.xml | 2 +- blog/categories/user-stories/atom.xml | 2 +- blog/categories/video/atom.xml | 2 +- blog/categories/website/atom.xml | 2 +- developers/python_api/index.html | 25 +++++++++++-------- sitemap.xml | 12 ++++----- 21 files changed, 40 insertions(+), 35 deletions(-) diff --git a/atom.xml b/atom.xml index 1f4073a01e..91a6e7f043 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2016-05-28T00:36:26+00:00 + 2016-05-28T08:59:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index f77dacacff..b1d64b5283 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2016-05-28T00:36:26+00:00 + 2016-05-28T08:59:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index 4d45b92c88..fac8129b61 100644 --- a/blog/categories/device-tracking/atom.xml +++ b/blog/categories/device-tracking/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Device-Tracking | Home Assistant]]> - 2016-05-28T00:36:26+00:00 + 2016-05-28T08:59:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 7bd34b745c..e4a21de519 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2016-05-28T00:36:26+00:00 + 2016-05-28T08:59:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 86954a7bd1..1b1dbd23e9 100644 --- a/blog/categories/how-to/atom.xml +++ b/blog/categories/how-to/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: How-To | Home Assistant]]> - 2016-05-28T00:36:26+00:00 + 2016-05-28T08:59:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 6ba9beec6d..2e6a7c4b99 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2016-05-28T00:36:26+00:00 + 2016-05-28T08:59:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/internet-of-things/atom.xml b/blog/categories/internet-of-things/atom.xml index 8f8e4c696e..1bf919a661 100644 --- a/blog/categories/internet-of-things/atom.xml +++ b/blog/categories/internet-of-things/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Internet-of-Things | Home Assistant]]> - 2016-05-28T00:36:26+00:00 + 2016-05-28T08:59:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index 06debc989d..205e3f595b 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2016-05-28T00:36:26+00:00 + 2016-05-28T08:59:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index 9385590fbf..936b2f12f6 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2016-05-28T00:36:26+00:00 + 2016-05-28T08:59:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index 531f776c10..87d3ac14c4 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2016-05-28T00:36:26+00:00 + 2016-05-28T08:59:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index be04bdf7eb..1633c60850 100644 --- a/blog/categories/presence-detection/atom.xml +++ b/blog/categories/presence-detection/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Presence-Detection | Home Assistant]]> - 2016-05-28T00:36:26+00:00 + 2016-05-28T08:59:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/public-service-announcement/atom.xml b/blog/categories/public-service-announcement/atom.xml index ff742111a1..81e49c7147 100644 --- a/blog/categories/public-service-announcement/atom.xml +++ b/blog/categories/public-service-announcement/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Public-Service-Announcement | Home Assistant]]> - 2016-05-28T00:36:26+00:00 + 2016-05-28T08:59:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 2e9c7e0815..0c9b395d03 100644 --- a/blog/categories/release-notes/atom.xml +++ b/blog/categories/release-notes/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Release-Notes | Home Assistant]]> - 2016-05-28T00:36:26+00:00 + 2016-05-28T08:59:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 7c7a26a835..0630b3c7f8 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2016-05-28T00:36:26+00:00 + 2016-05-28T08:59:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 586e42305e..b0666319bc 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2016-05-28T00:36:26+00:00 + 2016-05-28T08:59:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 6b4d47c2e3..f78405b277 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2016-05-28T00:36:26+00:00 + 2016-05-28T08:59:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index 8c643a3d6b..d186374291 100644 --- a/blog/categories/user-stories/atom.xml +++ b/blog/categories/user-stories/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: User-Stories | Home Assistant]]> - 2016-05-28T00:36:26+00:00 + 2016-05-28T08:59:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index 7e1694bc8f..811ced3364 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2016-05-28T00:36:26+00:00 + 2016-05-28T08:59:12+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index cacaaa4253..941f78a9dc 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2016-05-28T00:36:26+00:00 + 2016-05-28T08:59:12+00:00 https://home-assistant.io/ diff --git a/developers/python_api/index.html b/developers/python_api/index.html index 12a2851dbc..0f3af8d578 100644 --- a/developers/python_api/index.html +++ b/developers/python_api/index.html @@ -98,7 +98,7 @@
import homeassistant.remote as remote
 
-api = remote.API('host', 'password')
+api = remote.API('127.1.0.1', 'password')
 print(remote.validate_api(api))
 
@@ -109,7 +109,7 @@ print(remote.validate_api(api))
import homeassistant.remote as remote
 
-api = remote.API('host', 'password')
+api = remote.API('127.1.0.1', 'password')
 hass = remote.HomeAssistant(api)
 hass.start()
 living_room = hass.states.get('group.living_room')
@@ -117,14 +117,14 @@ living_room = hass.states.get('
 
-

Get details about servies and events

+

Get details about services, events, and entitites

Similar to the output in the “Developer Tools” of the frontend.

import homeassistant.remote as remote
 
-api = remote.API('host', 'password')
+api = remote.API('127.1.0.1', 'password')
 
 print('-- Available services:')
 services = remote.get_services(api)
@@ -135,6 +135,11 @@ print('\n
 events = remote.get_event_listeners(api)
 for event in events:
     print(event)
+
+print('\n-- Available entities')
+entities = remote.get_states(api)
+for entity in entities:
+    print(entity)
 
@@ -146,7 +151,7 @@ events = remote.get_event_listeners(api)
import homeassistant.remote as remote
 
-api = remote.API('host', 'password')
+api = remote.API('127.1.0.1', 'password')
 office_temperature = remote.get_state(api, 'sensor.office_temperature')
 print('{} is {} {}.'.format(office_temperature.attributes['friendly_name'],
                             office_temperature.state,
@@ -170,7 +175,7 @@ print('
import homeassistant.remote as remote
 
-api = remote.API('host', 'password')
+api = remote.API('127.1.0.1', 'password')
 switch_livingroom = remote.get_state(api, 'switch.livingroom_pin_2')
 print('{} is {}.'.format(switch_livingroom.attributes['friendly_name'],
                          switch_livingroom.state
@@ -188,7 +193,7 @@ print('
import homeassistant.remote as remote
 from homeassistant.const import STATE_ON
 
-api = remote.API('host', 'password')
+api = remote.API('127.1.0.1', 'password')
 remote.set_state(api, 'sensor.office_temperature', new_state=123)
 remote.set_state(api, 'switch.livingroom_pin_2', new_state=STATE_ON)
 
@@ -205,7 +210,7 @@ remote.set_state(api, '
import time
 import homeassistant.remote as remote
 
-api = remote.API('host', 'password')
+api = remote.API('127.1.0.1', 'password')
 domain = 'switch'
 
 remote.call_service(api, domain, 'turn_on')
@@ -223,7 +228,7 @@ remote.call_service(api, domain, '<
   
import time
 import homeassistant.remote as remote
 
-api = remote.API('host', 'password')
+api = remote.API('127.1.0.1', 'password')
 domain = 'switch'
 switch_name = 'switch.livingroom_pin_2'
 
@@ -241,7 +246,7 @@ remote.call_service(api, domain, '<
 
import homeassistant.remote as remote
 
-api = remote.API('host', 'password')
+api = remote.API('127.1.0.1', 'password')
 domain = 'notify'
 data = {"title":"Test", "message":"A simple test message from HA."}
 
diff --git a/sitemap.xml b/sitemap.xml
index c2aa6b1602..29b2d00fdf 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -1694,26 +1694,26 @@
     
   
     https://home-assistant.io/demo/frontend.html
-    2016-05-28T00:35:46+00:00
+    2016-05-28T08:58:36+00:00
   
   
     https://home-assistant.io/demo/index.html
-    2016-05-28T00:35:46+00:00
+    2016-05-28T08:58:36+00:00
   
   
     https://home-assistant.io/googlef4f3693c209fe788.html
-    2016-05-28T00:35:46+00:00
+    2016-05-28T08:58:36+00:00
   
   
     https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html
-    2016-05-28T00:35:46+00:00
+    2016-05-28T08:58:37+00:00
   
   
     https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html
-    2016-05-28T00:35:46+00:00
+    2016-05-28T08:58:37+00:00
   
   
     https://home-assistant.io/static/mdi-demo.html
-    2016-05-28T00:35:46+00:00
+    2016-05-28T08:58:37+00:00