diff --git a/atom.xml b/atom.xml
index ee7966beda..49fc22d6fb 100644
--- a/atom.xml
+++ b/atom.xml
@@ -4,7 +4,7 @@
- 2017-02-08T17:22:57+00:00
+ 2017-02-08T17:34:10+00:00
https://home-assistant.io/
diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml
index 51818add88..ce5564d98e 100644
--- a/blog/categories/community/atom.xml
+++ b/blog/categories/community/atom.xml
@@ -4,7 +4,7 @@
- 2017-02-08T17:22:57+00:00
+ 2017-02-08T17:34:10+00:00
https://home-assistant.io/
diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml
index e784230372..f43cf7d094 100644
--- a/blog/categories/device-tracking/atom.xml
+++ b/blog/categories/device-tracking/atom.xml
@@ -4,7 +4,7 @@
- 2017-02-08T17:22:57+00:00
+ 2017-02-08T17:34:10+00:00
https://home-assistant.io/
diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml
index f76348cc37..c64a2ceb6b 100644
--- a/blog/categories/esp8266/atom.xml
+++ b/blog/categories/esp8266/atom.xml
@@ -4,7 +4,7 @@
- 2017-02-08T17:22:57+00:00
+ 2017-02-08T17:34:10+00:00
https://home-assistant.io/
diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml
index 1abc95665e..4811b62008 100644
--- a/blog/categories/how-to/atom.xml
+++ b/blog/categories/how-to/atom.xml
@@ -4,7 +4,7 @@
- 2017-02-08T17:22:57+00:00
+ 2017-02-08T17:34:10+00:00
https://home-assistant.io/
diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml
index a30bf88fe9..912b0d6db3 100644
--- a/blog/categories/ibeacons/atom.xml
+++ b/blog/categories/ibeacons/atom.xml
@@ -4,7 +4,7 @@
- 2017-02-08T17:22:57+00:00
+ 2017-02-08T17:34:10+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 de5f575164..25c8ee4e62 100644
--- a/blog/categories/internet-of-things/atom.xml
+++ b/blog/categories/internet-of-things/atom.xml
@@ -4,7 +4,7 @@
- 2017-02-08T17:22:57+00:00
+ 2017-02-08T17:34:10+00:00
https://home-assistant.io/
diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml
index 9cead3c0e3..c3463d29d1 100644
--- a/blog/categories/iot-data/atom.xml
+++ b/blog/categories/iot-data/atom.xml
@@ -4,7 +4,7 @@
- 2017-02-08T17:22:57+00:00
+ 2017-02-08T17:34:10+00:00
https://home-assistant.io/
diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml
index d4827b2bcb..a9f78f794f 100644
--- a/blog/categories/micropython/atom.xml
+++ b/blog/categories/micropython/atom.xml
@@ -4,7 +4,7 @@
- 2017-02-08T17:22:57+00:00
+ 2017-02-08T17:34:10+00:00
https://home-assistant.io/
diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml
index 724b639948..6522207bbe 100644
--- a/blog/categories/mqtt/atom.xml
+++ b/blog/categories/mqtt/atom.xml
@@ -4,7 +4,7 @@
- 2017-02-08T17:22:57+00:00
+ 2017-02-08T17:34:10+00:00
https://home-assistant.io/
diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml
index 38f6d791d6..f01e7d3efb 100644
--- a/blog/categories/organisation/atom.xml
+++ b/blog/categories/organisation/atom.xml
@@ -4,7 +4,7 @@
- 2017-02-08T17:22:57+00:00
+ 2017-02-08T17:34:10+00:00
https://home-assistant.io/
diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml
index 8a52d3f56a..a609bc0955 100644
--- a/blog/categories/owntracks/atom.xml
+++ b/blog/categories/owntracks/atom.xml
@@ -4,7 +4,7 @@
- 2017-02-08T17:22:57+00:00
+ 2017-02-08T17:34:10+00:00
https://home-assistant.io/
diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml
index 90ce799a14..fbe0bdec32 100644
--- a/blog/categories/presence-detection/atom.xml
+++ b/blog/categories/presence-detection/atom.xml
@@ -4,7 +4,7 @@
- 2017-02-08T17:22:57+00:00
+ 2017-02-08T17:34:10+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 3e0e97f783..751bc36ce7 100644
--- a/blog/categories/public-service-announcement/atom.xml
+++ b/blog/categories/public-service-announcement/atom.xml
@@ -4,7 +4,7 @@
- 2017-02-08T17:22:57+00:00
+ 2017-02-08T17:34:10+00:00
https://home-assistant.io/
diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml
index 825cffefae..5b0c02611a 100644
--- a/blog/categories/release-notes/atom.xml
+++ b/blog/categories/release-notes/atom.xml
@@ -4,7 +4,7 @@
- 2017-02-08T17:22:57+00:00
+ 2017-02-08T17:34:10+00:00
https://home-assistant.io/
diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml
index 674f253771..eebba72d49 100644
--- a/blog/categories/survey/atom.xml
+++ b/blog/categories/survey/atom.xml
@@ -4,7 +4,7 @@
- 2017-02-08T17:22:57+00:00
+ 2017-02-08T17:34:10+00:00
https://home-assistant.io/
diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml
index e88ff57f7e..08bac8a7b2 100644
--- a/blog/categories/talks/atom.xml
+++ b/blog/categories/talks/atom.xml
@@ -4,7 +4,7 @@
- 2017-02-08T17:22:57+00:00
+ 2017-02-08T17:34:10+00:00
https://home-assistant.io/
diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml
index 5d2a350b61..c886b1d263 100644
--- a/blog/categories/technology/atom.xml
+++ b/blog/categories/technology/atom.xml
@@ -4,7 +4,7 @@
- 2017-02-08T17:22:57+00:00
+ 2017-02-08T17:34:10+00:00
https://home-assistant.io/
diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml
index fc0cd1f998..d55c42f246 100644
--- a/blog/categories/user-stories/atom.xml
+++ b/blog/categories/user-stories/atom.xml
@@ -4,7 +4,7 @@
- 2017-02-08T17:22:57+00:00
+ 2017-02-08T17:34:10+00:00
https://home-assistant.io/
diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml
index f4b7e8f07c..cf09a91349 100644
--- a/blog/categories/video/atom.xml
+++ b/blog/categories/video/atom.xml
@@ -4,7 +4,7 @@
- 2017-02-08T17:22:57+00:00
+ 2017-02-08T17:34:10+00:00
https://home-assistant.io/
diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml
index 587f4d2e62..e720f8b8ab 100644
--- a/blog/categories/website/atom.xml
+++ b/blog/categories/website/atom.xml
@@ -4,7 +4,7 @@
- 2017-02-08T17:22:57+00:00
+ 2017-02-08T17:34:10+00:00
https://home-assistant.io/
diff --git a/developers/platform_example_light/index.html b/developers/platform_example_light/index.html
index cb0cc9d40b..c83077877e 100644
--- a/developers/platform_example_light/index.html
+++ b/developers/platform_example_light/index.html
@@ -156,11 +156,14 @@
def __init__(self, light):
"""Initialize an AwesomeLight."""
self._light = light
+ self._name = light.name
+ self._state = None
+ self._brightness = None
@property
def name(self):
"""Return the display name of this light."""
- return self._light.name
+ return self._name
@property
def brightness(self):
@@ -169,12 +172,12 @@
This method is optional. Removing it indicates to Home Assistant
that brightness is not supported for this light.
"""
- return self._light.brightness
+ return self._brightness
@property
def is_on(self):
"""Return true if light is on."""
- return self._light.is_on()
+ return self._state
def turn_on(self, **kwargs):
"""Instruct the light to turn on.
@@ -195,6 +198,8 @@
This is the only method that should fetch new data for Home Assistant.
"""
self._light.update()
+ self._state = self._light.is_on()
+ self._brightness = self._light.brightness
diff --git a/developers/platform_example_sensor/index.html b/developers/platform_example_sensor/index.html
index d198f1d9cb..8449f44bc0 100644
--- a/developers/platform_example_sensor/index.html
+++ b/developers/platform_example_sensor/index.html
@@ -118,6 +118,10 @@
class ExampleSensor(Entity):
"""Representation of a Sensor."""
+ def __init__(self):
+ """Initialize the sensor."""
+ self._state = None
+
@property
def name(self):
"""Return the name of the sensor."""
@@ -126,12 +130,19 @@
@property
def state(self):
"""Return the state of the sensor."""
- return 23
+ return self._state
@property
def unit_of_measurement(self):
"""Return the unit of measurement."""
return TEMP_CELSIUS
+
+ def update(self):
+ """Fetch new state data for the sensor.
+
+ This is the only method that should fetch new data for Home Assistant.
+ """
+ self._state = 23
diff --git a/sitemap.xml b/sitemap.xml
index 2d4bfcca6c..bafc785923 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -2737,62 +2737,62 @@
https://home-assistant.io/demo/frontend.html
-2017-02-08T17:21:52+00:00
+2017-02-08T17:33:23+00:00
https://home-assistant.io/demo/index.html
-2017-02-08T17:21:52+00:00
+2017-02-08T17:33:23+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-event.html
-2017-02-08T17:21:52+00:00
+2017-02-08T17:33:23+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-info.html
-2017-02-08T17:21:52+00:00
+2017-02-08T17:33:23+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-service.html
-2017-02-08T17:21:52+00:00
+2017-02-08T17:33:23+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-state.html
-2017-02-08T17:21:52+00:00
+2017-02-08T17:33:23+00:00
https://home-assistant.io/demo/panels/ha-panel-dev-template.html
-2017-02-08T17:21:52+00:00
+2017-02-08T17:33:23+00:00
https://home-assistant.io/demo/panels/ha-panel-history.html
-2017-02-08T17:21:52+00:00
+2017-02-08T17:33:23+00:00
https://home-assistant.io/demo/panels/ha-panel-iframe.html
-2017-02-08T17:21:52+00:00
+2017-02-08T17:33:23+00:00
https://home-assistant.io/demo/panels/ha-panel-logbook.html
-2017-02-08T17:21:52+00:00
+2017-02-08T17:33:23+00:00
https://home-assistant.io/demo/panels/ha-panel-map.html
-2017-02-08T17:21:52+00:00
+2017-02-08T17:33:23+00:00
https://home-assistant.io/googlef4f3693c209fe788.html
-2017-02-08T17:21:52+00:00
+2017-02-08T17:33:23+00:00
https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html
-2017-02-08T17:21:52+00:00
+2017-02-08T17:33:23+00:00
https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html
-2017-02-08T17:21:52+00:00
+2017-02-08T17:33:23+00:00
https://home-assistant.io/static/mdi-demo.html
-2017-02-08T17:21:52+00:00
+2017-02-08T17:33:23+00:00