diff --git a/atom.xml b/atom.xml index 2666bd2abd..d3bb23b726 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/blog/categories/announcements/atom.xml b/blog/categories/announcements/atom.xml index 59a872be57..f367126fb0 100644 --- a/blog/categories/announcements/atom.xml +++ b/blog/categories/announcements/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Announcements | Home Assistant]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index a334ebc577..2b4b70bbba 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index bdc7238d64..3d96299497 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]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 83bc119e7e..3ea6c5a2fa 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 3b23130ccf..8570d1874f 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]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index e9e6642f53..02f48a87af 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+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 db962e658b..4c89ab8317 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]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index a49af223fe..b91beb3fa3 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]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/blog/categories/media/atom.xml b/blog/categories/media/atom.xml index a3c31322fa..f0325af109 100644 --- a/blog/categories/media/atom.xml +++ b/blog/categories/media/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Media | Home Assistant]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/blog/categories/merchandise/atom.xml b/blog/categories/merchandise/atom.xml index 66862f16ae..0ebbbcd10a 100644 --- a/blog/categories/merchandise/atom.xml +++ b/blog/categories/merchandise/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Merchandise | Home Assistant]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index 17284413ec..0b2493bfdc 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index 280dede4ff..cb59cc0bf8 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index 512be1fc76..2b7691dbbc 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index 7f8619d740..e0524429d3 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 5ccd97b7b6..5128859cf4 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]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+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 bfaa305eb2..82b98c6159 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]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 8054056389..5ad6b354bb 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]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index b7447f07c1..e257ffbb80 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index aaf4b4e313..23415ca423 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 0fee7b7268..4f53a50562 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index d591ad2727..5060ff8ef4 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]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index 28342eff28..a99a356366 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 48ee489794..2f9aaa044a 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2017-08-20T15:25:54+00:00 + 2017-08-20T18:51:08+00:00 https://home-assistant.io/ diff --git a/components/switch.template/index.html b/components/switch.template/index.html index 8dae29121a..ee38276f60 100644 --- a/components/switch.template/index.html +++ b/components/switch.template/index.html @@ -74,9 +74,9 @@
-

The template platform creates switches that combine components.

+

The template platform creates switches that combines components.

For example, if you have a garage door with a toggle switch that operates the motor and a sensor that allows you know whether the door is open or closed, you can combine these into a switch that knows whether the garage door is open or closed.

-

This can simplify the gui, and make it easier to write automations. You can mark the components you have combined as hidden so they don’t appear themselves.

+

This can simplify the GUI and make it easier to write automations. You can mark the components you have combined as hidden so they don’t appear themselves.

To enable Template switches in your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
 switch:
@@ -105,8 +105,8 @@
   
 
 

Considerations

-

If you are using the state of a platform that takes extra time to load, the template switch 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. For example, you would replace ‘{{ states.switch.source.state }}’ with this equivalent that returns true/false and never gives an unknown result: -‘{{ is_state(‘switch.source’, ‘on’) }}’

+

If you are using the state of a platform that takes extra time to load, the template switch 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. For example, you would replace {{ states.switch.source.state }} with this equivalent that returns true/false and never gives an unknown result: +{{ is_state('switch.source', 'on') }}

Examples

In this section you find some real life examples of how to use this switch.

Copy switch

diff --git a/sitemap.xml b/sitemap.xml index 409943fd8f..a6b790c4e2 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -3884,62 +3884,62 @@ https://home-assistant.io/demo/frontend.html -2017-08-20T15:24:29+00:00 +2017-08-20T18:49:35+00:00 https://home-assistant.io/demo/index.html -2017-08-20T15:24:29+00:00 +2017-08-20T18:49:35+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html -2017-08-20T15:24:29+00:00 +2017-08-20T18:49:35+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html -2017-08-20T15:24:29+00:00 +2017-08-20T18:49:35+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html -2017-08-20T15:24:29+00:00 +2017-08-20T18:49:35+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html -2017-08-20T15:24:29+00:00 +2017-08-20T18:49:35+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html -2017-08-20T15:24:29+00:00 +2017-08-20T18:49:35+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html -2017-08-20T15:24:29+00:00 +2017-08-20T18:49:35+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html -2017-08-20T15:24:29+00:00 +2017-08-20T18:49:35+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html -2017-08-20T15:24:29+00:00 +2017-08-20T18:49:35+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html -2017-08-20T15:24:29+00:00 +2017-08-20T18:49:35+00:00 https://home-assistant.io/googlef4f3693c209fe788.html -2017-08-20T15:24:29+00:00 +2017-08-20T18:49:35+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html -2017-08-20T15:24:29+00:00 +2017-08-20T18:49:35+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html -2017-08-20T15:24:29+00:00 +2017-08-20T18:49:35+00:00 https://home-assistant.io/static/mdi-demo.html -2017-08-20T15:24:29+00:00 +2017-08-20T18:49:35+00:00