diff --git a/atom.xml b/atom.xml index cd6767a72f..e4a49ae4a8 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/blog/categories/announcements/atom.xml b/blog/categories/announcements/atom.xml index a23c9f0dcf..1eacd0747a 100644 --- a/blog/categories/announcements/atom.xml +++ b/blog/categories/announcements/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Announcements | Home Assistant]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 8c9c0331db..260670b1a6 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index 14b4fb1188..22cf487fda 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]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 91c422a359..783f295b36 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 9a84abd8ac..335593fc86 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]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 3591046487..13d5c5078c 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+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 9e10129726..0fbf3c9d38 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]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index 7246d75a89..9805d1566e 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]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/blog/categories/media/atom.xml b/blog/categories/media/atom.xml index a2d2d73a25..7a4c52a6ff 100644 --- a/blog/categories/media/atom.xml +++ b/blog/categories/media/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Media | Home Assistant]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/blog/categories/merchandise/atom.xml b/blog/categories/merchandise/atom.xml index e27fdab016..431ccfaf5d 100644 --- a/blog/categories/merchandise/atom.xml +++ b/blog/categories/merchandise/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Merchandise | Home Assistant]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index a3cbdb3e67..1eac6f191c 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index da4c7b1444..cf5fbdfdcf 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index 06cebb79d6..e7ce562a5a 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index 6a31d69e6d..836708e5b7 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 78b182cc06..9b49c10fa1 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]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+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 a2bb239bd2..0ccc309e2d 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]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 16316042c3..c5b8cd0112 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]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 7d9acbb429..e099723500 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 68faa847f4..03842ad7e1 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 4d5ec42680..6ab7d66d5c 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index 37a407358c..869e796a1c 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]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index fbff28bd79..a0629c462e 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index cde005bd64..12d031a7f3 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2018-01-10T09:59:58+00:00 + 2018-01-10T13:21:46+00:00 https://home-assistant.io/ diff --git a/components/binary_sensor.template/index.html b/components/binary_sensor.template/index.html index 35b81ea631..6f6fc9184a 100644 --- a/components/binary_sensor.template/index.html +++ b/components/binary_sensor.template/index.html @@ -108,10 +108,6 @@ your configuration.yaml file:

(string)(Optional)Name to use in the frontend.

-
entity_id
-
-

(string | list)(Optional)Add a list of entity IDs so the sensor only reacts to state changes of these entities. This will reduce the number of times the sensor will try to update its state.

-
device_class

(device_class)(Optional)The type/class of the sensor to set the icon in the frontend.

@@ -176,22 +172,16 @@ original switch can then be hidden by value_template: "{{ is_state('switch.door', 'on') }}" -

Combining Multiple Sensors, and Using entity_id

+

Combining Multiple Sensors

This example combines multiple CO sensors into a single overall status. When using templates with binary sensors, you need to return -true or false explicitly. entity_id is used to limit which -sensors are being monitored to update the state, making computing this -sensor far more efficient.

+true or false explicitly.

binary_sensor:
   - platform: template
     sensors:
       co:
         friendly_name: "CO"
         device_class: gas
-        entity_id:
-          - sensor.bedroom_co_status
-          - sensor.kitchen_co_status
-          - sensor.wardrobe_co_status
         value_template: >-
           {{ is_state('sensor.bedroom_co_status', 'Ok')
              and is_state('sensor.kitchen_co_status', 'Ok')
@@ -226,14 +216,6 @@ device tracking and Z-Wave multisensor presence sensors.

- platform: template sensors: people_home: - entity_id: - - device_tracker.sean - - device_tracker.susan - - binary_sensor.office_124 - - binary_sensor.hallway_134 - - binary_sensor.living_room_139 - - binary_sensor.porch_ms6_1_129 - - binary_sensor.family_room_144 value_template: >- {{ is_state('device_tracker.sean', 'home') or is_state('device_tracker.susan', 'home') diff --git a/components/cover.template/index.html b/components/cover.template/index.html index 8b75c3b787..a01bdb293b 100644 --- a/components/cover.template/index.html +++ b/components/cover.template/index.html @@ -107,10 +107,6 @@ stop, position, and tilt commands of a cover.

(string)(Optional)Name to use in the frontend.

-
entity_id
-
-

(string | list)(Optional)Add a list of entity IDs so the switch only reacts to state changes of these entities. This will reduce the number of times the cover will try to update its state.

-
value_template

(template)(Exclusive)Defines a template to get the state of the cover. Valid values are open/true or closed/false. value_template and position_template cannot be specified concurrently.

@@ -247,9 +243,6 @@ sensor into a cover.

{% else %} mdi:window-closed {% endif %} - entity_id: - - cover.bedroom - - cover.livingroom sensor: - platform: template @@ -263,9 +256,6 @@ sensor into a cover.

{% else %} closed {% endif %} - entity_id: - - cover.bedroom - - cover.livingroom script: cover_group: diff --git a/components/light.template/index.html b/components/light.template/index.html index 0ef32fc99b..d226a6cd99 100644 --- a/components/light.template/index.html +++ b/components/light.template/index.html @@ -110,10 +110,6 @@ brightness commands of a light.

(string)(Optional)Name to use in the frontend.

-
entity_id
-
-

(string | list)(Optional)Add a list of entity IDs so the switch only reacts to state changes of these entities. This will reduce the number of times the light will try to update its state.

-
value_template

(template)(Optional)Defines a template to get the state of the light.

diff --git a/components/sensor.template/index.html b/components/sensor.template/index.html index 33125fad2a..596883fcbd 100644 --- a/components/sensor.template/index.html +++ b/components/sensor.template/index.html @@ -105,10 +105,6 @@ from other entities.

(string)(Optional)Name to use in the frontend.

-
entity_id
-
-

(string | list)(Optional)Add a list of entity IDs so the sensor only reacts to state changes of these entities. This will reduce the number of times the sensor will try to update its state.

-
unit_of_measurement

(string)(Optional)Defines the units of measurement of the sensor, if any.

@@ -127,12 +123,11 @@ from other entities.

Considerations

If you are using the state of a platform that takes extra time to load, the -Template Sensor may get an unknown state during startup. This results -in error messages in your log file until that platform has completed loading. -If you use is_state() function in your template, you can avoid this situation. +Template Sensor may get an unknown state during startup. To avoid this (and the resulting +error messages in your log file), you can use is_state() function in your template. For example, you would replace {{ states.switch.source.state == 'on' }} -with this equivalent that returns true/false and never gives an unknown +with this equivalent that returns true/false and never gives an unknown result: {{ is_state('switch.source', 'on') }}

Examples

diff --git a/components/switch.template/index.html b/components/switch.template/index.html index 4e5ad4565d..c2f7ed3289 100644 --- a/components/switch.template/index.html +++ b/components/switch.template/index.html @@ -112,10 +112,6 @@ the components you have combined as hidden

(string)(Optional)Name to use in the frontend.

-
entity_id
-
-

(string | list)(Optional)Add a list of entity IDs so the switch only reacts to state changes of these entities. This will reduce the number of times the switch will try to update its state.

-
value_template

(template)(Required)Defines a template to set the state of the switch.

diff --git a/sitemap.xml b/sitemap.xml index aeefb9d5c2..dd4fdb6620 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -3826,7 +3826,7 @@ https://home-assistant.io/components/switch.hook/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/cookbook/automation_for_rainy_days/ @@ -4506,99 +4506,99 @@ https://home-assistant.io/docs/autostart/init.d/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/api/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/configuration/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/example_apps/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/installation/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/operation/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/reboot/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/running/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/tutorial/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/updating/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/ecosystem/appdaemon/windows/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/ecosystem/certificates/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/ecosystem/hadashboard/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/ecosystem/hass-configurator/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/ecosystem/ios/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/ecosystem/nginx/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/ecosystem/notebooks/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/ecosystem/scenegen/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/ecosystem/synology/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/tools/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/tools/dev-tools/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/tools/hass/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/docs/tools/scripts/ -2018-01-10T09:59:58+00:00 +2018-01-10T13:21:46+00:00 https://home-assistant.io/faq/after-upgrading/ @@ -5734,62 +5734,62 @@ https://home-assistant.io/demo/frontend.html -2018-01-10T09:58:22+00:00 +2018-01-10T13:20:46+00:00 https://home-assistant.io/demo/index.html -2018-01-10T09:58:22+00:00 +2018-01-10T13:20:46+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html -2018-01-10T09:58:22+00:00 +2018-01-10T13:20:46+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html -2018-01-10T09:58:22+00:00 +2018-01-10T13:20:46+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html -2018-01-10T09:58:22+00:00 +2018-01-10T13:20:46+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html -2018-01-10T09:58:22+00:00 +2018-01-10T13:20:46+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html -2018-01-10T09:58:22+00:00 +2018-01-10T13:20:46+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html -2018-01-10T09:58:22+00:00 +2018-01-10T13:20:46+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html -2018-01-10T09:58:22+00:00 +2018-01-10T13:20:46+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html -2018-01-10T09:58:22+00:00 +2018-01-10T13:20:46+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html -2018-01-10T09:58:22+00:00 +2018-01-10T13:20:46+00:00 https://home-assistant.io/googlef4f3693c209fe788.html -2018-01-10T09:58:22+00:00 +2018-01-10T13:20:46+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html -2018-01-10T09:58:23+00:00 +2018-01-10T13:20:46+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html -2018-01-10T09:58:23+00:00 +2018-01-10T13:20:46+00:00 https://home-assistant.io/static/mdi-demo.html -2018-01-10T09:58:23+00:00 +2018-01-10T13:20:46+00:00