diff --git a/atom.xml b/atom.xml index 8352e724a2..3a25570639 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2016-11-28T20:43:40+00:00 + 2016-11-28T21:06:33+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 4fb39ae761..56439017a1 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2016-11-28T20:43:40+00:00 + 2016-11-28T21:06:33+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index d6f6eacf66..b29c7dc23e 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-11-28T20:43:40+00:00 + 2016-11-28T21:06:33+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 29db389121..87c30d27ee 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2016-11-28T20:43:40+00:00 + 2016-11-28T21:06:33+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 133cc38064..b35786882b 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-11-28T20:43:40+00:00 + 2016-11-28T21:06:33+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 572af382f7..22a008d749 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2016-11-28T20:43:40+00:00 + 2016-11-28T21:06:33+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 51516f15c7..8e1ae8871b 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-11-28T20:43:40+00:00 + 2016-11-28T21:06:33+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index e6ed08b851..9102b09b69 100644 --- a/blog/categories/iot-data/atom.xml +++ b/blog/categories/iot-data/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: IoT-Data | Home Assistant]]> - 2016-11-28T20:43:40+00:00 + 2016-11-28T21:06:33+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index 567673f48f..d8dafbdb31 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2016-11-28T20:43:40+00:00 + 2016-11-28T21:06:33+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index d4d303ddbe..2a39637bb7 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2016-11-28T20:43:40+00:00 + 2016-11-28T21:06:33+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index eb23ffcbc6..36347e7ca8 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2016-11-28T20:43:40+00:00 + 2016-11-28T21:06:33+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index 5447d362d8..f9d5082e0d 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2016-11-28T20:43:40+00:00 + 2016-11-28T21:06:33+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 576a395354..78a12f6b7b 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-11-28T20:43:40+00:00 + 2016-11-28T21:06:33+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 b8ca1d3256..c9594ba7b0 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-11-28T20:43:40+00:00 + 2016-11-28T21:06:33+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index ce879e3850..84b07f9fe4 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-11-28T20:43:40+00:00 + 2016-11-28T21:06:33+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 7d499bf96a..b651f169d5 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2016-11-28T20:43:40+00:00 + 2016-11-28T21:06:33+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 286a5bd8cc..fa75e015e7 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2016-11-28T20:43:40+00:00 + 2016-11-28T21:06:33+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 1fc79c5fb5..fd364e097f 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2016-11-28T20:43:40+00:00 + 2016-11-28T21:06:33+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index c186e29414..f8e1517411 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-11-28T20:43:40+00:00 + 2016-11-28T21:06:33+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index 33184c32aa..daf06a7880 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2016-11-28T20:43:40+00:00 + 2016-11-28T21:06:33+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index ee0e1d091b..333c69d632 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2016-11-28T20:43:40+00:00 + 2016-11-28T21:06:33+00:00 https://home-assistant.io/ diff --git a/components/sensor.pvoutput/index.html b/components/sensor.pvoutput/index.html index 6d7a4adf9d..01d8bfcfac 100644 --- a/components/sensor.pvoutput/index.html +++ b/components/sensor.pvoutput/index.html @@ -114,7 +114,7 @@ It’s recommended to set scan_interval: according to a value greater than 60 seconds. The service only allows 60 requests per hour but the sensor’s default is 30 seconds.

-

To format the PVoutput sensor you can you the template component. For example:

+

To format the PVoutput sensor it’s recommended to use the template component. For example:

sensor:
   - platform: pvoutput
@@ -124,19 +124,19 @@ It’s recommended to set scan_interval:
   - platform: template
     sensors:
       power_consumption:
-        value_template: ''
+        value_template: '{% if is_state_attr("sensor.pvoutput", "power_consumption", "NaN") %}0{% else %}{{ states.sensor.pvoutput.attributes.power_consumption }}{% endif %}'
         friendly_name: 'Using'
         unit_of_measurement: 'Watt'
       energy_consumption:
-        value_template: '%0.1f'
+        value_template: '{{ "%0.1f"|format(states.sensor.pvoutput.attributes.energy_consumption|float/1000) }}'
         friendly_name: 'Used'
         unit_of_measurement: 'kWh'
       power_generation:
-        value_template: ''
+        value_template: '{% if is_state_attr("sensor.pvoutput", "power_generation", "NaN") %}0{% else %}{{ states.sensor.pvoutput.attributes.power_generation }}{% endif %}'
         friendly_name: 'Generating'
         unit_of_measurement: 'Watt'
       energy_generation:
-        value_template: '%0.2f'
+        value_template: '{% if is_state_attr("sensor.pvoutput", "energy_generation", "NaN") %}0{% else %}{{ "%0.2f"|format(states.sensor.pvoutput.attributes.energy_generation|float/1000) }}{% endif %}'
         friendly_name: 'Generated'
         unit_of_measurement: 'kWh'
 
diff --git a/sitemap.xml b/sitemap.xml index f8f0dd8dc5..0f31a05627 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -2346,62 +2346,62 @@ https://home-assistant.io/demo/frontend.html -2016-11-28T20:42:50+00:00 +2016-11-28T21:05:49+00:00 https://home-assistant.io/demo/index.html -2016-11-28T20:42:50+00:00 +2016-11-28T21:05:49+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html -2016-11-28T20:42:50+00:00 +2016-11-28T21:05:49+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html -2016-11-28T20:42:50+00:00 +2016-11-28T21:05:49+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html -2016-11-28T20:42:50+00:00 +2016-11-28T21:05:49+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html -2016-11-28T20:42:50+00:00 +2016-11-28T21:05:49+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html -2016-11-28T20:42:50+00:00 +2016-11-28T21:05:49+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html -2016-11-28T20:42:50+00:00 +2016-11-28T21:05:49+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html -2016-11-28T20:42:50+00:00 +2016-11-28T21:05:49+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html -2016-11-28T20:42:50+00:00 +2016-11-28T21:05:49+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html -2016-11-28T20:42:50+00:00 +2016-11-28T21:05:49+00:00 https://home-assistant.io/googlef4f3693c209fe788.html -2016-11-28T20:42:50+00:00 +2016-11-28T21:05:49+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html -2016-11-28T20:42:50+00:00 +2016-11-28T21:05:49+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html -2016-11-28T20:42:50+00:00 +2016-11-28T21:05:49+00:00 https://home-assistant.io/static/mdi-demo.html -2016-11-28T20:42:50+00:00 +2016-11-28T21:05:49+00:00