Site updated at 2018-01-10 13:32:26 UTC

This commit is contained in:
Travis CI 2018-01-10 13:32:27 +00:00
parent 6c80b4c470
commit 657005c4dd
30 changed files with 69 additions and 110 deletions

View file

@ -4,7 +4,7 @@
<title><![CDATA[Home Assistant]]></title> <title><![CDATA[Home Assistant]]></title>
<link href="https://home-assistant.io/atom.xml" rel="self"/> <link href="https://home-assistant.io/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Announcements | Home Assistant]]></title> <title><![CDATA[Category: Announcements | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/announcements/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/announcements/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Community | Home Assistant]]></title> <title><![CDATA[Category: Community | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/community/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/community/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Device-Tracking | Home Assistant]]></title> <title><![CDATA[Category: Device-Tracking | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/device-tracking/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/device-tracking/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: ESP8266 | Home Assistant]]></title> <title><![CDATA[Category: ESP8266 | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/esp8266/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/esp8266/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: How-To | Home Assistant]]></title> <title><![CDATA[Category: How-To | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/how-to/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/how-to/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: iBeacons | Home Assistant]]></title> <title><![CDATA[Category: iBeacons | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/ibeacons/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/ibeacons/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Internet-of-Things | Home Assistant]]></title> <title><![CDATA[Category: Internet-of-Things | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/internet-of-things/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/internet-of-things/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: IoT-Data | Home Assistant]]></title> <title><![CDATA[Category: IoT-Data | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/iot-data/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/iot-data/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Media | Home Assistant]]></title> <title><![CDATA[Category: Media | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/media/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/media/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Merchandise | Home Assistant]]></title> <title><![CDATA[Category: Merchandise | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/merchandise/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/merchandise/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Micropython | Home Assistant]]></title> <title><![CDATA[Category: Micropython | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/micropython/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/micropython/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: MQTT | Home Assistant]]></title> <title><![CDATA[Category: MQTT | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/mqtt/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/mqtt/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Organisation | Home Assistant]]></title> <title><![CDATA[Category: Organisation | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/organisation/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/organisation/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: OwnTracks | Home Assistant]]></title> <title><![CDATA[Category: OwnTracks | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/owntracks/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/owntracks/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Presence-Detection | Home Assistant]]></title> <title><![CDATA[Category: Presence-Detection | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/presence-detection/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/presence-detection/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Public-Service-Announcement | Home Assistant]]></title> <title><![CDATA[Category: Public-Service-Announcement | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/public-service-announcement/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/public-service-announcement/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Release-Notes | Home Assistant]]></title> <title><![CDATA[Category: Release-Notes | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/release-notes/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/release-notes/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Survey | Home Assistant]]></title> <title><![CDATA[Category: Survey | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/survey/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/survey/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Talks | Home Assistant]]></title> <title><![CDATA[Category: Talks | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/talks/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/talks/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Technology | Home Assistant]]></title> <title><![CDATA[Category: Technology | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/technology/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/technology/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: User-Stories | Home Assistant]]></title> <title><![CDATA[Category: User-Stories | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/user-stories/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/user-stories/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Video | Home Assistant]]></title> <title><![CDATA[Category: Video | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/video/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/video/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Website | Home Assistant]]></title> <title><![CDATA[Category: Website | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/website/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/website/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2018-01-10T09:59:58+00:00</updated> <updated>2018-01-10T13:21:46+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -108,10 +108,6 @@ your <code class="highlighter-rouge">configuration.yaml</code> file:</p>
<dd> <dd>
<p class="desc"><span class="type">(<span class="string">string</span>)</span><span class="required">(Optional)</span><span class="description">Name to use in the frontend.</span></p> <p class="desc"><span class="type">(<span class="string">string</span>)</span><span class="required">(Optional)</span><span class="description">Name to use in the frontend.</span></p>
</dd> </dd>
<dt><a class="title-link" name="entity_id" href="#entity_id"></a> entity_id</dt>
<dd>
<p class="desc"><span class="type">(<span class="string, list">string | list</span>)</span><span class="required">(Optional)</span><span class="description">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.</span></p>
</dd>
<dt><a class="title-link" name="device_class" href="#device_class"></a> device_class</dt> <dt><a class="title-link" name="device_class" href="#device_class"></a> device_class</dt>
<dd> <dd>
<p class="desc"><span class="type">(<span class="device_class"><a href="/components/binary_sensor/#device_class">device_class</a></span>)</span><span class="required">(Optional)</span><span class="description">The type/class of the sensor to set the icon in the frontend.</span></p> <p class="desc"><span class="type">(<span class="device_class"><a href="/components/binary_sensor/#device_class">device_class</a></span>)</span><span class="required">(Optional)</span><span class="description">The type/class of the sensor to set the icon in the frontend.</span></p>
@ -176,22 +172,16 @@ original switch can then be hidden by
<span class="s">value_template</span><span class="pi">:</span> <span class="s2">"</span><span class="s">{{</span><span class="nv"> </span><span class="s">is_state('switch.door',</span><span class="nv"> </span><span class="s">'on')</span><span class="nv"> </span><span class="s">}}"</span> <span class="s">value_template</span><span class="pi">:</span> <span class="s2">"</span><span class="s">{{</span><span class="nv"> </span><span class="s">is_state('switch.door',</span><span class="nv"> </span><span class="s">'on')</span><span class="nv"> </span><span class="s">}}"</span>
</code></pre> </code></pre>
</div> </div>
<h3><a class="title-link" name="combining-multiple-sensors-and-using-entity_id" href="#combining-multiple-sensors-and-using-entity_id"></a> Combining Multiple Sensors, and Using <code class="highlighter-rouge">entity_id</code></h3> <h3><a class="title-link" name="combining-multiple-sensors" href="#combining-multiple-sensors"></a> Combining Multiple Sensors</h3>
<p>This example combines multiple CO sensors into a single overall <p>This example combines multiple CO sensors into a single overall
status. When using templates with binary sensors, you need to return status. When using templates with binary sensors, you need to return
<code class="highlighter-rouge">true</code> or <code class="highlighter-rouge">false</code> explicitly. <code class="highlighter-rouge">entity_id</code> is used to limit which <code class="highlighter-rouge">true</code> or <code class="highlighter-rouge">false</code> explicitly.</p>
sensors are being monitored to update the state, making computing this
sensor far more efficient.</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">binary_sensor</span><span class="pi">:</span> <div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">binary_sensor</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">template</span> <span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">template</span>
<span class="s">sensors</span><span class="pi">:</span> <span class="s">sensors</span><span class="pi">:</span>
<span class="s">co</span><span class="pi">:</span> <span class="s">co</span><span class="pi">:</span>
<span class="s">friendly_name</span><span class="pi">:</span> <span class="s2">"</span><span class="s">CO"</span> <span class="s">friendly_name</span><span class="pi">:</span> <span class="s2">"</span><span class="s">CO"</span>
<span class="s">device_class</span><span class="pi">:</span> <span class="s">gas</span> <span class="s">device_class</span><span class="pi">:</span> <span class="s">gas</span>
<span class="s">entity_id</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">sensor.bedroom_co_status</span>
<span class="pi">-</span> <span class="s">sensor.kitchen_co_status</span>
<span class="pi">-</span> <span class="s">sensor.wardrobe_co_status</span>
<span class="s">value_template</span><span class="pi">:</span> <span class="pi">&gt;-</span> <span class="s">value_template</span><span class="pi">:</span> <span class="pi">&gt;-</span>
<span class="no">{{ is_state('sensor.bedroom_co_status', 'Ok')</span> <span class="no">{{ is_state('sensor.bedroom_co_status', 'Ok')</span>
<span class="no">and is_state('sensor.kitchen_co_status', 'Ok')</span> <span class="no">and is_state('sensor.kitchen_co_status', 'Ok')</span>
@ -226,14 +216,6 @@ device tracking and Z-Wave multisensor presence sensors.</p>
<span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">template</span> <span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">template</span>
<span class="s">sensors</span><span class="pi">:</span> <span class="s">sensors</span><span class="pi">:</span>
<span class="s">people_home</span><span class="pi">:</span> <span class="s">people_home</span><span class="pi">:</span>
<span class="s">entity_id</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">device_tracker.sean</span>
<span class="pi">-</span> <span class="s">device_tracker.susan</span>
<span class="pi">-</span> <span class="s">binary_sensor.office_124</span>
<span class="pi">-</span> <span class="s">binary_sensor.hallway_134</span>
<span class="pi">-</span> <span class="s">binary_sensor.living_room_139</span>
<span class="pi">-</span> <span class="s">binary_sensor.porch_ms6_1_129</span>
<span class="pi">-</span> <span class="s">binary_sensor.family_room_144</span>
<span class="s">value_template</span><span class="pi">:</span> <span class="pi">&gt;-</span> <span class="s">value_template</span><span class="pi">:</span> <span class="pi">&gt;-</span>
<span class="no">{{ is_state('device_tracker.sean', 'home')</span> <span class="no">{{ is_state('device_tracker.sean', 'home')</span>
<span class="no">or is_state('device_tracker.susan', 'home')</span> <span class="no">or is_state('device_tracker.susan', 'home')</span>

View file

@ -107,10 +107,6 @@ stop, position, and tilt commands of a cover.</p>
<dd> <dd>
<p class="desc"><span class="type">(<span class="string">string</span>)</span><span class="required">(Optional)</span><span class="description">Name to use in the frontend.</span></p> <p class="desc"><span class="type">(<span class="string">string</span>)</span><span class="required">(Optional)</span><span class="description">Name to use in the frontend.</span></p>
</dd> </dd>
<dt><a class="title-link" name="entity_id" href="#entity_id"></a> entity_id</dt>
<dd>
<p class="desc"><span class="type">(<span class="string list">string | list</span>)</span><span class="required">(Optional)</span><span class="description">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.</span></p>
</dd>
<dt><a class="title-link" name="value_template" href="#value_template"></a> value_template</dt> <dt><a class="title-link" name="value_template" href="#value_template"></a> value_template</dt>
<dd> <dd>
<p class="desc"><span class="type">(<span class="template"><a href="/docs/configuration/templating/">template</a></span>)</span><span class="required">(Exclusive)</span><span class="description">Defines a template to get the state of the cover. Valid values are <code class="highlighter-rouge">open</code>/<code class="highlighter-rouge">true</code> or <code class="highlighter-rouge">closed</code>/<code class="highlighter-rouge">false</code>. <a href="#value_template"><code class="highlighter-rouge">value_template</code></a> and <a href="#position_template"><code class="highlighter-rouge">position_template</code></a> cannot be specified concurrently.</span></p> <p class="desc"><span class="type">(<span class="template"><a href="/docs/configuration/templating/">template</a></span>)</span><span class="required">(Exclusive)</span><span class="description">Defines a template to get the state of the cover. Valid values are <code class="highlighter-rouge">open</code>/<code class="highlighter-rouge">true</code> or <code class="highlighter-rouge">closed</code>/<code class="highlighter-rouge">false</code>. <a href="#value_template"><code class="highlighter-rouge">value_template</code></a> and <a href="#position_template"><code class="highlighter-rouge">position_template</code></a> cannot be specified concurrently.</span></p>
@ -247,9 +243,6 @@ sensor into a cover.</p>
<span class="no">{% else %}</span> <span class="no">{% else %}</span>
<span class="no">mdi:window-closed</span> <span class="no">mdi:window-closed</span>
<span class="no">{% endif %}</span> <span class="no">{% endif %}</span>
<span class="no">entity_id:</span>
<span class="no">- cover.bedroom</span>
<span class="no">- cover.livingroom</span>
<span class="s">sensor</span><span class="pi">:</span> <span class="s">sensor</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">template</span> <span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">template</span>
@ -263,9 +256,6 @@ sensor into a cover.</p>
<span class="no">{% else %}</span> <span class="no">{% else %}</span>
<span class="no">closed</span> <span class="no">closed</span>
<span class="no">{% endif %}</span> <span class="no">{% endif %}</span>
<span class="no">entity_id:</span>
<span class="no">- cover.bedroom</span>
<span class="no">- cover.livingroom</span>
<span class="s">script</span><span class="pi">:</span> <span class="s">script</span><span class="pi">:</span>
<span class="s">cover_group</span><span class="pi">:</span> <span class="s">cover_group</span><span class="pi">:</span>

View file

@ -110,10 +110,6 @@ brightness commands of a light.</p>
<dd> <dd>
<p class="desc"><span class="type">(<span class="string">string</span>)</span><span class="required">(Optional)</span><span class="description">Name to use in the frontend.</span></p> <p class="desc"><span class="type">(<span class="string">string</span>)</span><span class="required">(Optional)</span><span class="description">Name to use in the frontend.</span></p>
</dd> </dd>
<dt><a class="title-link" name="entity_id" href="#entity_id"></a> entity_id</dt>
<dd>
<p class="desc"><span class="type">(<span class="string list">string | list</span>)</span><span class="required">(Optional)</span><span class="description">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.</span></p>
</dd>
<dt><a class="title-link" name="value_template" href="#value_template"></a> value_template</dt> <dt><a class="title-link" name="value_template" href="#value_template"></a> value_template</dt>
<dd> <dd>
<p class="desc"><span class="type">(<span class="template"><a href="/docs/configuration/templating/">template</a></span>)</span><span class="required">(Optional)</span><span class="description">Defines a template to get the state of the light.</span></p> <p class="desc"><span class="type">(<span class="template"><a href="/docs/configuration/templating/">template</a></span>)</span><span class="required">(Optional)</span><span class="description">Defines a template to get the state of the light.</span></p>

View file

@ -105,10 +105,6 @@ from other entities.</p>
<dd> <dd>
<p class="desc"><span class="type">(<span class="string">string</span>)</span><span class="required">(Optional)</span><span class="description">Name to use in the frontend.</span></p> <p class="desc"><span class="type">(<span class="string">string</span>)</span><span class="required">(Optional)</span><span class="description">Name to use in the frontend.</span></p>
</dd> </dd>
<dt><a class="title-link" name="entity_id" href="#entity_id"></a> entity_id</dt>
<dd>
<p class="desc"><span class="type">(<span class="string, list">string | list</span>)</span><span class="required">(Optional)</span><span class="description">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.</span></p>
</dd>
<dt><a class="title-link" name="unit_of_measurement" href="#unit_of_measurement"></a> unit_of_measurement</dt> <dt><a class="title-link" name="unit_of_measurement" href="#unit_of_measurement"></a> unit_of_measurement</dt>
<dd> <dd>
<p class="desc"><span class="type">(<span class="string">string</span>)</span><span class="required">(Optional)</span><span class="description">Defines the units of measurement of the sensor, if any.</span></p> <p class="desc"><span class="type">(<span class="string">string</span>)</span><span class="required">(Optional)</span><span class="description">Defines the units of measurement of the sensor, if any.</span></p>
@ -127,12 +123,11 @@ from other entities.</p>
</div> </div>
<h2><a class="title-link" name="considerations" href="#considerations"></a> Considerations</h2> <h2><a class="title-link" name="considerations" href="#considerations"></a> Considerations</h2>
<p>If you are using the state of a platform that takes extra time to load, the <p>If you are using the state of a platform that takes extra time to load, the
Template Sensor may get an <code class="highlighter-rouge">unknown</code> state during startup. This results Template Sensor may get an <code class="highlighter-rouge">unknown</code> state during startup. To avoid this (and the resulting
in error messages in your log file until that platform has completed loading. error messages in your log file), you can use <code class="highlighter-rouge">is_state()</code> function in your template.
If you use <code class="highlighter-rouge">is_state()</code> function in your template, you can avoid this situation.
For example, you would replace For example, you would replace
<code class="highlighter-rouge"><span class="p">{</span><span class="err">{</span><span class="w"> </span><span class="err">states.switch.source.state</span><span class="w"> </span><span class="err">==</span><span class="w"> </span><span class="err">'on'</span><span class="w"> </span><span class="p">}</span><span class="err">}</span></code> <code class="highlighter-rouge"><span class="p">{</span><span class="err">{</span><span class="w"> </span><span class="err">states.switch.source.state</span><span class="w"> </span><span class="err">==</span><span class="w"> </span><span class="err">'on'</span><span class="w"> </span><span class="p">}</span><span class="err">}</span></code>
with this equivalent that returns <code class="highlighter-rouge">true</code>/<code class="highlighter-rouge">false</code> and never gives an unknown with this equivalent that returns <code class="highlighter-rouge">true</code>/<code class="highlighter-rouge">false</code> and never gives an <code class="highlighter-rouge">unknown</code>
result: result:
<code class="highlighter-rouge"><span class="p">{</span><span class="err">{</span><span class="w"> </span><span class="err">is_state('switch.source',</span><span class="w"> </span><span class="err">'on')</span><span class="w"> </span><span class="p">}</span><span class="err">}</span></code></p> <code class="highlighter-rouge"><span class="p">{</span><span class="err">{</span><span class="w"> </span><span class="err">is_state('switch.source',</span><span class="w"> </span><span class="err">'on')</span><span class="w"> </span><span class="p">}</span><span class="err">}</span></code></p>
<h2><a class="title-link" name="examples" href="#examples"></a> Examples</h2> <h2><a class="title-link" name="examples" href="#examples"></a> Examples</h2>

View file

@ -112,10 +112,6 @@ the components you have combined as <code class="highlighter-rouge">hidden</code
<dd> <dd>
<p class="desc"><span class="type">(<span class="string">string</span>)</span><span class="required">(Optional)</span><span class="description">Name to use in the frontend.</span></p> <p class="desc"><span class="type">(<span class="string">string</span>)</span><span class="required">(Optional)</span><span class="description">Name to use in the frontend.</span></p>
</dd> </dd>
<dt><a class="title-link" name="entity_id" href="#entity_id"></a> entity_id</dt>
<dd>
<p class="desc"><span class="type">(<span class="string list">string | list</span>)</span><span class="required">(Optional)</span><span class="description">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.</span></p>
</dd>
<dt><a class="title-link" name="value_template" href="#value_template"></a> value_template</dt> <dt><a class="title-link" name="value_template" href="#value_template"></a> value_template</dt>
<dd> <dd>
<p class="desc"><span class="type">(<span class="template"><a href="/docs/configuration/templating/">template</a></span>)</span><span class="required">(Required)</span><span class="description">Defines a template to set the state of the switch.</span></p> <p class="desc"><span class="type">(<span class="template"><a href="/docs/configuration/templating/">template</a></span>)</span><span class="required">(Required)</span><span class="description">Defines a template to set the state of the switch.</span></p>

View file

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