Site updated at 2016-04-24 07:02:24 UTC
This commit is contained in:
parent
3a52d76f5e
commit
6019a8820a
71 changed files with 1812 additions and 569 deletions
10
atom.xml
10
atom.xml
|
@ -4,7 +4,7 @@
|
|||
<title><![CDATA[Home Assistant]]></title>
|
||||
<link href="https://home-assistant.io/atom.xml" rel="self"/>
|
||||
<link href="https://home-assistant.io/"/>
|
||||
<updated>2016-04-23T18:30:58+00:00</updated>
|
||||
<updated>2016-04-24T07:01:43+00:00</updated>
|
||||
<id>https://home-assistant.io/</id>
|
||||
<author>
|
||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||
|
@ -338,7 +338,7 @@ player state attributes. This change affects automations, scripts and scenes.</l
|
|||
<li>Sensor: <a href="https://home-assistant.io/components/sensor.neurio_energy/">Neurio energy sensor</a> now supported (<a href="https://github.com/infamy">@infamy</a>)</li>
|
||||
<li>Binary Sensor: <a href="https://home-assistant.io/components/binary_sensor.nx584/">nx584</a> support added (<a href="https://github.com/kk7ds">@kk7ds</a>)</li>
|
||||
<li>Improve and clarify CI testing (<a href="https://github.com/sdague">@sdague</a>)</li>
|
||||
<li>Automation: State <a href="https://home-assistant.io/components/automation/#state-trigger/">triggers</a> and <a href="https://home-assistant.io/components/automation/#state-condition/">conditions</a> now takes optional <code>for</code> config parameter to only trigger when a state hasn’t changed for a certain period of time (<a href="https://github.com/pavoni">@pavoni</a>, <a href="https://github.com/stefan-jonasson">@stefan-jonasson</a>)</li>
|
||||
<li>Automation: State <a href="https://home-assistant.io/getting-started/automation-trigger/#state-trigger/">triggers</a> and <a href="https://home-assistant.io/getting-started/automation-condition/#state-condition/">conditions</a> now takes optional <code>for</code> config parameter to only trigger when a state hasn’t changed for a certain period of time (<a href="https://github.com/pavoni">@pavoni</a>, <a href="https://github.com/stefan-jonasson">@stefan-jonasson</a>)</li>
|
||||
<li>Sensor: <a href="https://home-assistant.io/components/sensor.nest/">Nest</a> weather data added (<a href="https://github.com/w1ll1am23">@w1ll1am23</a>)</li>
|
||||
<li>Device Tracker: <a href="https://home-assistant.io/components/device_tracker.unifi/">Ubiquiti Unifi</a> now supported (<a href="https://github.com/kk7ds">@kk7ds</a>)</li>
|
||||
<li>Binary Sensor: <a href="https://home-assistant.io/components/binary_sensor.mysensors/">MySensors</a> now supported (<a href="https://github.com/MartinHjelmare">@MartinHjelmare</a>)</li>
|
||||
|
@ -1083,7 +1083,7 @@ Example of the new views in the frontend. <a href="https://home-assistant.io/com
|
|||
<li><a href="https://home-assistant.io/components/insteon_hub/">Insteon hub</a> support added (<a href="https://github.com/FreekingDean">@FreekingDean</a>)</li>
|
||||
<li><a href="https://home-assistant.io/components/statsd/">Statsd</a> component added (<a href="https://github.com/michaelkuty">@michaelkuty</a>)</li>
|
||||
<li>Light: <a href="https://home-assistant.io/components/light.rfxtrx/">Rfxtrx</a> platform now supports dimming (<a href="https://github.com/turbokongen">@turbokongen</a>)</li>
|
||||
<li>Time scheduling (including <a href="https://home-assistant.io/components/automation/#time-trigger/">time automation</a>) now works with intervals (ie. <code>/5</code>) (<a href="https://github.com/kennedyshead">@kennedyshead</a>)</li>
|
||||
<li>Time scheduling (including <a href="https://home-assistant.io/getting-started/automation-trigger/#time-trigger/">time automation</a>) now works with intervals (ie. <code>/5</code>) (<a href="https://github.com/kennedyshead">@kennedyshead</a>)</li>
|
||||
<li>Sensor: <a href="https://home-assistant.io/components/sensor.onewire/">onewire</a> support added (<a href="https://github.com/deisi">@deisi</a>)</li>
|
||||
<li><a href="https://home-assistant.io/components/zigbee/">Zigbee</a> support added (<a href="https://github.com/flyte">@flyte</a>)</li>
|
||||
<li>Device Tracker: <a href="https://home-assistant.io/components/device_tracker.owntracks/">OwnTracks</a> can now track iBeacons (<a href="https://github.com/pavoni">@pavoni</a>)</li>
|
||||
|
@ -1163,7 +1163,7 @@ Example of the new views in the frontend. <a href="https://home-assistant.io/com
|
|||
<li>Full refactor of RPi GPIO. Now includes <a href="https://home-assistant.io/components/binary_sensor.rpi_gpio/">binary sensor</a> and <a href="https://home-assistant.io/components/switch.rpi_gpio/">switch</a> (<a href="https://github.com/sfam">@sfam</a>)</li>
|
||||
<li>Sensor: <a href="https://home-assistant.io/components/sensor.yr/">YR</a> platform added (<a href="https://github.com/danielhiversen">@danielhiversen</a>)</li>
|
||||
<li>Device Tracker: Geofancy platform has been renamed to <a href="https://home-assistant.io/components/device_tracker.locative/">Locative</a> (<a href="https://github.com/philipbl">@philipbl</a>)</li>
|
||||
<li>Automation: Add <a href="https://home-assistant.io/components/automation/#sun-condition/">sun condition</a> (<a href="https://github.com/philipbl">@philipbl</a>)</li>
|
||||
<li>Automation: Add <a href="https://home-assistant.io/getting-started/automation-condition/#sun-condition/">sun condition</a> (<a href="https://github.com/philipbl">@philipbl</a>)</li>
|
||||
<li>Switch: <a href="https://home-assistant.io/components/switch.command_switch/">command_switch</a> can now poll for state (<a href="https://github.com/happyleavesaoc">@happyleavesaoc</a>)</li>
|
||||
<li>Switch: <a href="https://home-assistant.io/components/switch.wemo/">wemo</a> now uses subscription to states instead of polling (<a href="https://github.com/pavoni">@pavoni</a>)</li>
|
||||
<li><a href="https://home-assistant.io/components/tellduslive/">Telldus Live</a> support added (<a href="https://github.com/molobrakos">@molobrakos</a>)</li>
|
||||
|
@ -1249,7 +1249,7 @@ Example of the new views in the frontend. <a href="https://home-assistant.io/com
|
|||
<li>rollershutter: <a href="https://home-assistant.io/components/rollershutter.mqtt/">MQTT</a></li>
|
||||
<li>light: <a href="https://home-assistant.io/components/light.mqtt/">MQTT</a></li>
|
||||
<li>binary_sensor: <a href="https://home-assistant.io/components/binary_sensor.mqtt/">MQTT</a></li>
|
||||
<li>automation: <a href="https://home-assistant.io/components/automation/#numeric-state-trigger/">numeric_state</a></li>
|
||||
<li>automation: <a href="https://home-assistant.io/getting-started/automation-trigger/#numeric-state-trigger/">numeric_state</a></li>
|
||||
</ul>
|
||||
|
||||
]]></content>
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
<p>It’s time for the August release and there is some serious good stuff this time. The core of Home Assistant has gone some serious clean up and a bump in test coverage thanks to <a href="https://github.com/balloob">@balloob</a>. If you’re a developer, make sure you read up on <a href="https://github.com/home-assistant/home-assistant/pull/251">the deprecation notices</a>. <a href="https://github.com/fabaff">@fabaff</a> did another great round of documentating all the various components.</p>
|
||||
|
||||
<p><strong>MQTT Support</strong><br />
|
||||
<img src="/images/supported_brands/mqtt.png" style="border:none; box-shadow: none; float: right;" height="50" /> The big new addition in this release is the support for the MQTT protocol by <a href="https://github.com/fabaff">@fabaff</a> with some help from <a href="https://github.com/balloob">@balloob</a>. It will now be possible to integrate any IoT device that talks via MQTT. For the initial release we support connecting Home Assistant to a broker (no TLS yet). Components can now subscribe and publish to MQTT topics (<a href="https://github.com/home-assistant/home-assistant/blob/dev/config/custom_components/mqtt_example.py">see the example</a>) and also support for the automation component <a href="/components/automation/#mqtt-based-automation">has been added</a>. For more information, see <a href="/components/mqtt/">the MQTT component page</a>.</p>
|
||||
<img src="/images/supported_brands/mqtt.png" style="border:none; box-shadow: none; float: right;" height="50" /> The big new addition in this release is the support for the MQTT protocol by <a href="https://github.com/fabaff">@fabaff</a> with some help from <a href="https://github.com/balloob">@balloob</a>. It will now be possible to integrate any IoT device that talks via MQTT. For the initial release we support connecting Home Assistant to a broker (no TLS yet). Components can now subscribe and publish to MQTT topics (<a href="https://github.com/home-assistant/home-assistant/blob/dev/config/custom_components/mqtt_example.py">see the example</a>) and also support for the automation component <a href="/getting-started/automation-trigger/#mqtt-trigger">has been added</a>. For more information, see <a href="/components/mqtt/">the MQTT component page</a>.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="comment"># Example configuration.yaml entry</span>
|
||||
|
|
|
@ -132,7 +132,7 @@
|
|||
Status of the dryer and washer in Home Assistant
|
||||
</p>
|
||||
|
||||
<p>Next I wrote <a href="/components/script/">scripts</a> that are run whenever the washer or dryer completes a load. This is triggered by the <a href="/components/automation/">automation component</a>. When the laundry is complete I have the lights in the house turn red and <a href="/components/notify.pushbullet/">notify me via PushBullet</a>. Once the laundry is taken care of another script runs that sets the lights back to normal. So far it has been very helpful and very reliable.</p>
|
||||
<p>Next I wrote <a href="/components/script/">scripts</a> that are run whenever the washer or dryer completes a load. This is triggered by the <a href="/getting-started/automation/">automation component</a>. When the laundry is complete I have the lights in the house turn red and <a href="/components/notify.pushbullet/">notify me via PushBullet</a>. Once the laundry is taken care of another script runs that sets the lights back to normal. So far it has been very helpful and very reliable.</p>
|
||||
|
||||
<p class="img">
|
||||
<a href="/images/blog/2015-08-laundry-automation/moteino-and-sensors.jpg">
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
|
||||
<ul>
|
||||
<li><a href="/components/device_tracker.owntracks/">OwnTracks platform for the device tracker</a> to get locations for devices</li>
|
||||
<li>Brand new <a href="/components/zone/">zone component</a> to define zones to identify locations and <a href="/components/automation/#zone-trigger">trigger automation</a></li>
|
||||
<li>Brand new <a href="/components/zone/">zone component</a> to define zones to identify locations and <a href="/getting-started/automation-trigger/#zone-trigger">trigger automation</a></li>
|
||||
<li>A map in the UI to see all this (<a href="/demo/">see it in action in the demo</a>)</li>
|
||||
</ul>
|
||||
|
||||
|
|
|
@ -140,7 +140,7 @@
|
|||
<p>As part of this release we did some cleanup which introduced backwards incompatible changes:</p>
|
||||
|
||||
<p><strong>Heat Control thermostat no longer includes scheduling features.</strong><br />
|
||||
This feature has been removed completely. Use the <a href="/components/automation/">automation component</a> instead to control target temperature.</p>
|
||||
This feature has been removed completely. Use the <a href="/getting-started/automation/">automation component</a> instead to control target temperature.</p>
|
||||
|
||||
<p><strong>Config changed for calling a service from a script.</strong><br />
|
||||
<code>execute_service:</code> has been replaced with <code>service:</code>. See <a href="/components/script/">component page</a> for example. The old method will continue working for some time.</p>
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
<a name="read-more"></a>
|
||||
<p>Thanks to Python, users are running Home Assistant on the most popular Linux distributions and other operating systems including OS X and Microsoft Windows. One quarter of the operating systems are unknown which leads to the assumption that it is possible to run Home Assistant on most of the available operation systems today. We hope that *BSD users have fun too. The Hardware platform of choice seems to be x86_64 and ARM.</p>
|
||||
|
||||
<p>Of course most users are running with the <a href="/components/automation/">automation</a> component otherwise it would make much sense to use Home Assistant. The <a href="/components/sun/">sun</a> component is used a lot too. We hope that this is not because this component is enabled by default.</p>
|
||||
<p>Of course most users are running with the <a href="/getting-started/automation/">automation</a> component otherwise it would make much sense to use Home Assistant. The <a href="/components/sun/">sun</a> component is used a lot too. We hope that this is not because this component is enabled by default.</p>
|
||||
|
||||
<p>The <a href="/components/alarm_control_panel/">Alarm control panels</a> and the <a href="/components/camera/">camera component</a> are both used by around one third of the participants of the survey. It’s safe to say that they cover a niche, but they will gain momentum when people discover how they can build alarm systems with Home Assistant.</p>
|
||||
|
||||
|
|
|
@ -160,7 +160,7 @@
|
|||
<li>rollershutter: <a href="/components/rollershutter.mqtt/">MQTT</a></li>
|
||||
<li>light: <a href="/components/light.mqtt/">MQTT</a></li>
|
||||
<li>binary_sensor: <a href="/components/binary_sensor.mqtt/">MQTT</a></li>
|
||||
<li>automation: <a href="/components/automation/#numeric-state-trigger">numeric_state</a></li>
|
||||
<li>automation: <a href="/getting-started/automation-trigger/#numeric-state-trigger">numeric_state</a></li>
|
||||
</ul>
|
||||
</article>
|
||||
|
||||
|
|
|
@ -117,7 +117,7 @@
|
|||
<li>Full refactor of RPi GPIO. Now includes <a href="/components/binary_sensor.rpi_gpio/">binary sensor</a> and <a href="/components/switch.rpi_gpio/">switch</a> (<a href="https://github.com/sfam">@sfam</a>)</li>
|
||||
<li>Sensor: <a href="/components/sensor.yr/">YR</a> platform added (<a href="https://github.com/danielhiversen">@danielhiversen</a>)</li>
|
||||
<li>Device Tracker: Geofancy platform has been renamed to <a href="/components/device_tracker.locative/">Locative</a> (<a href="https://github.com/philipbl">@philipbl</a>)</li>
|
||||
<li>Automation: Add <a href="/components/automation/#sun-condition">sun condition</a> (<a href="https://github.com/philipbl">@philipbl</a>)</li>
|
||||
<li>Automation: Add <a href="/getting-started/automation-condition/#sun-condition">sun condition</a> (<a href="https://github.com/philipbl">@philipbl</a>)</li>
|
||||
<li>Switch: <a href="/components/switch.command_switch/">command_switch</a> can now poll for state (<a href="https://github.com/happyleavesaoc">@happyleavesaoc</a>)</li>
|
||||
<li>Switch: <a href="/components/switch.wemo/">wemo</a> now uses subscription to states instead of polling (<a href="https://github.com/pavoni">@pavoni</a>)</li>
|
||||
<li><a href="/components/tellduslive/">Telldus Live</a> support added (<a href="https://github.com/molobrakos">@molobrakos</a>)</li>
|
||||
|
|
|
@ -131,7 +131,7 @@ Example of the new views in the frontend. <a href="/components/group/">Learn mor
|
|||
<li><a href="/components/insteon_hub/">Insteon hub</a> support added (<a href="https://github.com/FreekingDean">@FreekingDean</a>)</li>
|
||||
<li><a href="/components/statsd/">Statsd</a> component added (<a href="https://github.com/michaelkuty">@michaelkuty</a>)</li>
|
||||
<li>Light: <a href="/components/light.rfxtrx/">Rfxtrx</a> platform now supports dimming (<a href="https://github.com/turbokongen">@turbokongen</a>)</li>
|
||||
<li>Time scheduling (including <a href="/components/automation/#time-trigger">time automation</a>) now works with intervals (ie. <code>/5</code>) (<a href="https://github.com/kennedyshead">@kennedyshead</a>)</li>
|
||||
<li>Time scheduling (including <a href="/getting-started/automation-trigger/#time-trigger">time automation</a>) now works with intervals (ie. <code>/5</code>) (<a href="https://github.com/kennedyshead">@kennedyshead</a>)</li>
|
||||
<li>Sensor: <a href="/components/sensor.onewire/">onewire</a> support added (<a href="https://github.com/deisi">@deisi</a>)</li>
|
||||
<li><a href="/components/zigbee/">Zigbee</a> support added (<a href="https://github.com/flyte">@flyte</a>)</li>
|
||||
<li>Device Tracker: <a href="/components/device_tracker.owntracks/">OwnTracks</a> can now track iBeacons (<a href="https://github.com/pavoni">@pavoni</a>)</li>
|
||||
|
|
|
@ -121,7 +121,7 @@
|
|||
<li>Sensor: <a href="/components/sensor.neurio_energy/">Neurio energy sensor</a> now supported (<a href="https://github.com/infamy">@infamy</a>)</li>
|
||||
<li>Binary Sensor: <a href="/components/binary_sensor.nx584/">nx584</a> support added (<a href="https://github.com/kk7ds">@kk7ds</a>)</li>
|
||||
<li>Improve and clarify CI testing (<a href="https://github.com/sdague">@sdague</a>)</li>
|
||||
<li>Automation: State <a href="/components/automation/#state-trigger">triggers</a> and <a href="/components/automation/#state-condition">conditions</a> now takes optional <code>for</code> config parameter to only trigger when a state hasn’t changed for a certain period of time (<a href="https://github.com/pavoni">@pavoni</a>, <a href="https://github.com/stefan-jonasson">@stefan-jonasson</a>)</li>
|
||||
<li>Automation: State <a href="/getting-started/automation-trigger/#state-trigger">triggers</a> and <a href="/getting-started/automation-condition/#state-condition">conditions</a> now takes optional <code>for</code> config parameter to only trigger when a state hasn’t changed for a certain period of time (<a href="https://github.com/pavoni">@pavoni</a>, <a href="https://github.com/stefan-jonasson">@stefan-jonasson</a>)</li>
|
||||
<li>Sensor: <a href="/components/sensor.nest/">Nest</a> weather data added (<a href="https://github.com/w1ll1am23">@w1ll1am23</a>)</li>
|
||||
<li>Device Tracker: <a href="/components/device_tracker.unifi/">Ubiquiti Unifi</a> now supported (<a href="https://github.com/kk7ds">@kk7ds</a>)</li>
|
||||
<li>Binary Sensor: <a href="/components/binary_sensor.mysensors/">MySensors</a> now supported (<a href="https://github.com/MartinHjelmare">@MartinHjelmare</a>)</li>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<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/"/>
|
||||
<updated>2016-04-23T18:30:58+00:00</updated>
|
||||
<updated>2016-04-24T07:01:43+00:00</updated>
|
||||
<id>https://home-assistant.io/</id>
|
||||
<author>
|
||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<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/"/>
|
||||
<updated>2016-04-23T18:30:58+00:00</updated>
|
||||
<updated>2016-04-24T07:01:43+00:00</updated>
|
||||
<id>https://home-assistant.io/</id>
|
||||
<author>
|
||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<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/"/>
|
||||
<updated>2016-04-23T18:30:58+00:00</updated>
|
||||
<updated>2016-04-24T07:01:43+00:00</updated>
|
||||
<id>https://home-assistant.io/</id>
|
||||
<author>
|
||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<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/"/>
|
||||
<updated>2016-04-23T18:30:58+00:00</updated>
|
||||
<updated>2016-04-24T07:01:43+00:00</updated>
|
||||
<id>https://home-assistant.io/</id>
|
||||
<author>
|
||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<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/"/>
|
||||
<updated>2016-04-23T18:30:58+00:00</updated>
|
||||
<updated>2016-04-24T07:01:43+00:00</updated>
|
||||
<id>https://home-assistant.io/</id>
|
||||
<author>
|
||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<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/"/>
|
||||
<updated>2016-04-23T18:30:58+00:00</updated>
|
||||
<updated>2016-04-24T07:01:43+00:00</updated>
|
||||
<id>https://home-assistant.io/</id>
|
||||
<author>
|
||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<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/"/>
|
||||
<updated>2016-04-23T18:30:58+00:00</updated>
|
||||
<updated>2016-04-24T07:01:43+00:00</updated>
|
||||
<id>https://home-assistant.io/</id>
|
||||
<author>
|
||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<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/"/>
|
||||
<updated>2016-04-23T18:30:58+00:00</updated>
|
||||
<updated>2016-04-24T07:01:43+00:00</updated>
|
||||
<id>https://home-assistant.io/</id>
|
||||
<author>
|
||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||
|
@ -240,7 +240,7 @@ player state attributes. This change affects automations, scripts and scenes.</l
|
|||
<li>Sensor: <a href="/components/sensor.neurio_energy/">Neurio energy sensor</a> now supported (<a href="https://github.com/infamy">@infamy</a>)</li>
|
||||
<li>Binary Sensor: <a href="/components/binary_sensor.nx584/">nx584</a> support added (<a href="https://github.com/kk7ds">@kk7ds</a>)</li>
|
||||
<li>Improve and clarify CI testing (<a href="https://github.com/sdague">@sdague</a>)</li>
|
||||
<li>Automation: State <a href="/components/automation/#state-trigger">triggers</a> and <a href="/components/automation/#state-condition">conditions</a> now takes optional <code>for</code> config parameter to only trigger when a state hasn’t changed for a certain period of time (<a href="https://github.com/pavoni">@pavoni</a>, <a href="https://github.com/stefan-jonasson">@stefan-jonasson</a>)</li>
|
||||
<li>Automation: State <a href="/getting-started/automation-trigger/#state-trigger">triggers</a> and <a href="/getting-started/automation-condition/#state-condition">conditions</a> now takes optional <code>for</code> config parameter to only trigger when a state hasn’t changed for a certain period of time (<a href="https://github.com/pavoni">@pavoni</a>, <a href="https://github.com/stefan-jonasson">@stefan-jonasson</a>)</li>
|
||||
<li>Sensor: <a href="/components/sensor.nest/">Nest</a> weather data added (<a href="https://github.com/w1ll1am23">@w1ll1am23</a>)</li>
|
||||
<li>Device Tracker: <a href="/components/device_tracker.unifi/">Ubiquiti Unifi</a> now supported (<a href="https://github.com/kk7ds">@kk7ds</a>)</li>
|
||||
<li>Binary Sensor: <a href="/components/binary_sensor.mysensors/">MySensors</a> now supported (<a href="https://github.com/MartinHjelmare">@MartinHjelmare</a>)</li>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<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/"/>
|
||||
<updated>2016-04-23T18:30:58+00:00</updated>
|
||||
<updated>2016-04-24T07:01:43+00:00</updated>
|
||||
<id>https://home-assistant.io/</id>
|
||||
<author>
|
||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||
|
@ -25,7 +25,7 @@
|
|||
<!--more-->
|
||||
<p>Thanks to Python, users are running Home Assistant on the most popular Linux distributions and other operating systems including OS X and Microsoft Windows. One quarter of the operating systems are unknown which leads to the assumption that it is possible to run Home Assistant on most of the available operation systems today. We hope that *BSD users have fun too. The Hardware platform of choice seems to be x86_64 and ARM.</p>
|
||||
|
||||
<p>Of course most users are running with the <a href="/components/automation/">automation</a> component otherwise it would make much sense to use Home Assistant. The <a href="/components/sun/">sun</a> component is used a lot too. We hope that this is not because this component is enabled by default.</p>
|
||||
<p>Of course most users are running with the <a href="/getting-started/automation/">automation</a> component otherwise it would make much sense to use Home Assistant. The <a href="/components/sun/">sun</a> component is used a lot too. We hope that this is not because this component is enabled by default.</p>
|
||||
|
||||
<p>The <a href="/components/alarm_control_panel/">Alarm control panels</a> and the <a href="/components/camera/">camera component</a> are both used by around one third of the participants of the survey. It’s safe to say that they cover a niche, but they will gain momentum when people discover how they can build alarm systems with Home Assistant.</p>
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<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/"/>
|
||||
<updated>2016-04-23T18:30:58+00:00</updated>
|
||||
<updated>2016-04-24T07:01:43+00:00</updated>
|
||||
<id>https://home-assistant.io/</id>
|
||||
<author>
|
||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||
|
@ -42,7 +42,7 @@
|
|||
Status of the dryer and washer in Home Assistant
|
||||
</p>
|
||||
|
||||
<p>Next I wrote <a href="/components/script/">scripts</a> that are run whenever the washer or dryer completes a load. This is triggered by the <a href="/components/automation/">automation component</a>. When the laundry is complete I have the lights in the house turn red and <a href="/components/notify.pushbullet/">notify me via PushBullet</a>. Once the laundry is taken care of another script runs that sets the lights back to normal. So far it has been very helpful and very reliable.</p>
|
||||
<p>Next I wrote <a href="/components/script/">scripts</a> that are run whenever the washer or dryer completes a load. This is triggered by the <a href="/getting-started/automation/">automation component</a>. When the laundry is complete I have the lights in the house turn red and <a href="/components/notify.pushbullet/">notify me via PushBullet</a>. Once the laundry is taken care of another script runs that sets the lights back to normal. So far it has been very helpful and very reliable.</p>
|
||||
|
||||
<p class="img">
|
||||
<a href="https://home-assistant.io/images/blog/2015-08-laundry-automation/moteino-and-sensors.jpg">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<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/"/>
|
||||
<updated>2016-04-23T18:30:58+00:00</updated>
|
||||
<updated>2016-04-24T07:01:43+00:00</updated>
|
||||
<id>https://home-assistant.io/</id>
|
||||
<author>
|
||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||
|
|
|
@ -680,7 +680,7 @@ player state attributes. This change affects automations, scripts and scenes.</l
|
|||
<li>Sensor: <a href="/components/sensor.neurio_energy/">Neurio energy sensor</a> now supported (<a href="https://github.com/infamy">@infamy</a>)</li>
|
||||
<li>Binary Sensor: <a href="/components/binary_sensor.nx584/">nx584</a> support added (<a href="https://github.com/kk7ds">@kk7ds</a>)</li>
|
||||
<li>Improve and clarify CI testing (<a href="https://github.com/sdague">@sdague</a>)</li>
|
||||
<li>Automation: State <a href="/components/automation/#state-trigger">triggers</a> and <a href="/components/automation/#state-condition">conditions</a> now takes optional <code>for</code> config parameter to only trigger when a state hasn’t changed for a certain period of time (<a href="https://github.com/pavoni">@pavoni</a>, <a href="https://github.com/stefan-jonasson">@stefan-jonasson</a>)</li>
|
||||
<li>Automation: State <a href="/getting-started/automation-trigger/#state-trigger">triggers</a> and <a href="/getting-started/automation-condition/#state-condition">conditions</a> now takes optional <code>for</code> config parameter to only trigger when a state hasn’t changed for a certain period of time (<a href="https://github.com/pavoni">@pavoni</a>, <a href="https://github.com/stefan-jonasson">@stefan-jonasson</a>)</li>
|
||||
<li>Sensor: <a href="/components/sensor.nest/">Nest</a> weather data added (<a href="https://github.com/w1ll1am23">@w1ll1am23</a>)</li>
|
||||
<li>Device Tracker: <a href="/components/device_tracker.unifi/">Ubiquiti Unifi</a> now supported (<a href="https://github.com/kk7ds">@kk7ds</a>)</li>
|
||||
<li>Binary Sensor: <a href="/components/binary_sensor.mysensors/">MySensors</a> now supported (<a href="https://github.com/MartinHjelmare">@MartinHjelmare</a>)</li>
|
||||
|
|
|
@ -434,7 +434,7 @@ Example of the new views in the frontend. <a href="/components/group/">Learn mor
|
|||
<li><a href="/components/insteon_hub/">Insteon hub</a> support added (<a href="https://github.com/FreekingDean">@FreekingDean</a>)</li>
|
||||
<li><a href="/components/statsd/">Statsd</a> component added (<a href="https://github.com/michaelkuty">@michaelkuty</a>)</li>
|
||||
<li>Light: <a href="/components/light.rfxtrx/">Rfxtrx</a> platform now supports dimming (<a href="https://github.com/turbokongen">@turbokongen</a>)</li>
|
||||
<li>Time scheduling (including <a href="/components/automation/#time-trigger">time automation</a>) now works with intervals (ie. <code>/5</code>) (<a href="https://github.com/kennedyshead">@kennedyshead</a>)</li>
|
||||
<li>Time scheduling (including <a href="/getting-started/automation-trigger/#time-trigger">time automation</a>) now works with intervals (ie. <code>/5</code>) (<a href="https://github.com/kennedyshead">@kennedyshead</a>)</li>
|
||||
<li>Sensor: <a href="/components/sensor.onewire/">onewire</a> support added (<a href="https://github.com/deisi">@deisi</a>)</li>
|
||||
<li><a href="/components/zigbee/">Zigbee</a> support added (<a href="https://github.com/flyte">@flyte</a>)</li>
|
||||
<li>Device Tracker: <a href="/components/device_tracker.owntracks/">OwnTracks</a> can now track iBeacons (<a href="https://github.com/pavoni">@pavoni</a>)</li>
|
||||
|
@ -552,7 +552,7 @@ Example of the new views in the frontend. <a href="/components/group/">Learn mor
|
|||
<li>Full refactor of RPi GPIO. Now includes <a href="/components/binary_sensor.rpi_gpio/">binary sensor</a> and <a href="/components/switch.rpi_gpio/">switch</a> (<a href="https://github.com/sfam">@sfam</a>)</li>
|
||||
<li>Sensor: <a href="/components/sensor.yr/">YR</a> platform added (<a href="https://github.com/danielhiversen">@danielhiversen</a>)</li>
|
||||
<li>Device Tracker: Geofancy platform has been renamed to <a href="/components/device_tracker.locative/">Locative</a> (<a href="https://github.com/philipbl">@philipbl</a>)</li>
|
||||
<li>Automation: Add <a href="/components/automation/#sun-condition">sun condition</a> (<a href="https://github.com/philipbl">@philipbl</a>)</li>
|
||||
<li>Automation: Add <a href="/getting-started/automation-condition/#sun-condition">sun condition</a> (<a href="https://github.com/philipbl">@philipbl</a>)</li>
|
||||
<li>Switch: <a href="/components/switch.command_switch/">command_switch</a> can now poll for state (<a href="https://github.com/happyleavesaoc">@happyleavesaoc</a>)</li>
|
||||
<li>Switch: <a href="/components/switch.wemo/">wemo</a> now uses subscription to states instead of polling (<a href="https://github.com/pavoni">@pavoni</a>)</li>
|
||||
<li><a href="/components/tellduslive/">Telldus Live</a> support added (<a href="https://github.com/molobrakos">@molobrakos</a>)</li>
|
||||
|
|
|
@ -635,7 +635,7 @@ Home Assistant will keep track of historical values and allow you to integrate i
|
|||
|
||||
<ul>
|
||||
<li><a href="/components/device_tracker.owntracks/">OwnTracks platform for the device tracker</a> to get locations for devices</li>
|
||||
<li>Brand new <a href="/components/zone/">zone component</a> to define zones to identify locations and <a href="/components/automation/#zone-trigger">trigger automation</a></li>
|
||||
<li>Brand new <a href="/components/zone/">zone component</a> to define zones to identify locations and <a href="/getting-started/automation-trigger/#zone-trigger">trigger automation</a></li>
|
||||
<li>A map in the UI to see all this (<a href="/demo/">see it in action in the demo</a>)</li>
|
||||
</ul>
|
||||
|
||||
|
|
|
@ -516,7 +516,7 @@ Inspried by a <a href="https://github.com/home-assistant/home-assistant/issues/3
|
|||
<p>It’s time for the August release and there is some serious good stuff this time. The core of Home Assistant has gone some serious clean up and a bump in test coverage thanks to <a href="https://github.com/balloob">@balloob</a>. If you’re a developer, make sure you read up on <a href="https://github.com/home-assistant/home-assistant/pull/251">the deprecation notices</a>. <a href="https://github.com/fabaff">@fabaff</a> did another great round of documentating all the various components.</p>
|
||||
|
||||
<p><strong>MQTT Support</strong><br />
|
||||
<img src="/images/supported_brands/mqtt.png" style="border:none; box-shadow: none; float: right;" height="50" /> The big new addition in this release is the support for the MQTT protocol by <a href="https://github.com/fabaff">@fabaff</a> with some help from <a href="https://github.com/balloob">@balloob</a>. It will now be possible to integrate any IoT device that talks via MQTT. For the initial release we support connecting Home Assistant to a broker (no TLS yet). Components can now subscribe and publish to MQTT topics (<a href="https://github.com/home-assistant/home-assistant/blob/dev/config/custom_components/mqtt_example.py">see the example</a>) and also support for the automation component <a href="/components/automation/#mqtt-based-automation">has been added</a>. For more information, see <a href="/components/mqtt/">the MQTT component page</a>.</p>
|
||||
<img src="/images/supported_brands/mqtt.png" style="border:none; box-shadow: none; float: right;" height="50" /> The big new addition in this release is the support for the MQTT protocol by <a href="https://github.com/fabaff">@fabaff</a> with some help from <a href="https://github.com/balloob">@balloob</a>. It will now be possible to integrate any IoT device that talks via MQTT. For the initial release we support connecting Home Assistant to a broker (no TLS yet). Components can now subscribe and publish to MQTT topics (<a href="https://github.com/home-assistant/home-assistant/blob/dev/config/custom_components/mqtt_example.py">see the example</a>) and also support for the automation component <a href="/getting-started/automation-trigger/#mqtt-trigger">has been added</a>. For more information, see <a href="/components/mqtt/">the MQTT component page</a>.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="comment"># Example configuration.yaml entry</span>
|
||||
|
|
|
@ -89,396 +89,7 @@
|
|||
<hr class="divider">
|
||||
|
||||
|
||||
<p>This page will go into more detail about the various options the <code>automation</code> component offers. If you haven’t yet, read the <a href="/getting-started/automation/">getting started page on automation</a>.</p>
|
||||
|
||||
<p>A configuration section of an automation requires a <code>trigger</code> and an <code>action</code> section. <code>condition</code> and <code>condition_type</code> are optional. To keep this page compact, all following sections will not show the full configuration but only the relevant part.</p>
|
||||
|
||||
<ul>
|
||||
<li><a href="#conditions">Jump to conditions</a></li>
|
||||
<li><a href="#actions">Jump to actions</a></li>
|
||||
<li><a href="#troubleshooting">Jump to troubleshooting</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="comment"># Example of entry in configuration.yaml</span>
|
||||
<span class="key">automation</span>:
|
||||
<span class="comment"># Turns on lights 1 hour before sunset if people are home</span>
|
||||
<span class="comment"># and if people get home between 16:00-23:00</span>
|
||||
- <span class="string"><span class="content">alias: 'Rule 1 Light on in the evening'</span></span>
|
||||
<span class="key">trigger</span>:
|
||||
<span class="comment"># Prefix the first line of each trigger configuration</span>
|
||||
<span class="comment"># with a '-' to enter multiple</span>
|
||||
- <span class="string"><span class="content">platform: sun</span></span>
|
||||
<span class="key">event</span>: <span class="string"><span class="content">sunset</span></span>
|
||||
<span class="key">offset</span>: <span class="string"><span class="content">'-01:00:00'</span></span>
|
||||
- <span class="string"><span class="content">platform: state</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">group.all_devices</span></span>
|
||||
<span class="key">state</span>: <span class="string"><span class="content">'home'</span></span>
|
||||
<span class="key">condition</span>:
|
||||
<span class="comment"># Prefix the first line of each condition configuration</span>
|
||||
<span class="comment"># with a '-'' to enter multiple</span>
|
||||
- <span class="string"><span class="content">platform: state</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">group.all_devices</span></span>
|
||||
<span class="key">state</span>: <span class="string"><span class="content">'home'</span></span>
|
||||
- <span class="string"><span class="content">platform: time</span></span>
|
||||
<span class="key">after</span>: <span class="string"><span class="content">'16:00:00'</span></span>
|
||||
<span class="key">before</span>: <span class="string"><span class="content">'23:00:00'</span></span>
|
||||
<span class="key">action</span>:
|
||||
<span class="key">service</span>: <span class="string"><span class="content">homeassistant.turn_on</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">group.living_room</span></span>
|
||||
|
||||
<span class="comment"># Turn off lights when everybody leaves the house</span>
|
||||
- <span class="string"><span class="content">alias: 'Rule 2 - Away Mode'</span></span>
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">state</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">group.all_devices</span></span>
|
||||
<span class="key">state</span>: <span class="string"><span class="content">'not_home'</span></span>
|
||||
<span class="key">action</span>:
|
||||
<span class="key">service</span>: <span class="string"><span class="content">light.turn_off</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">group.all_lights</span></span>
|
||||
|
||||
<span class="comment"># Notify when Paulus leaves the house in the evening</span>
|
||||
- <span class="string"><span class="content">alias: 'Leave Home notification'</span></span>
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">zone</span></span>
|
||||
<span class="key">event</span>: <span class="string"><span class="content">leave</span></span>
|
||||
<span class="key">zone</span>: <span class="string"><span class="content">zone.home</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">device_tracker.paulus</span></span>
|
||||
<span class="key">condition</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">time</span></span>
|
||||
<span class="key">after</span>: <span class="string"><span class="content">'20:00'</span></span>
|
||||
<span class="key">action</span>:
|
||||
<span class="key">service</span>: <span class="string"><span class="content">notify.notify</span></span>
|
||||
<span class="key">data</span>:
|
||||
<span class="key">message</span>: <span class="string"><span class="content">'Paulus left the house'</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2><a class="title-link" name="triggers" href="#triggers"></a> Triggers</h2>
|
||||
|
||||
<p>Triggers are what starts the processing of an automation rule. It is possible to specify multiple triggers for the same rule. Once a trigger starts, Home Assistant will validate the conditions, if any, and call the action.</p>
|
||||
|
||||
<h4><a class="title-link" name="event-trigger" href="#event-trigger"></a> Event trigger</h4>
|
||||
<p>Triggers when an event is being processed. Events are the raw building blocks of Home Assistant. You can match events on just the event name or also require specific event data to be present.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">event</span></span>
|
||||
<span class="key">event_type</span>: <span class="string"><span class="content">MY_CUSTOM_EVENT</span></span>
|
||||
<span class="comment"># optional</span>
|
||||
<span class="key">event_data</span>:
|
||||
<span class="key">mood</span>: <span class="string"><span class="content">happy</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="mqtt-trigger" href="#mqtt-trigger"></a> MQTT trigger</h4>
|
||||
<p>Triggers when a specific message is received on given topic. Optionally can match on the payload being sent over the topic.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">mqtt</span></span>
|
||||
<span class="key">topic</span>: <span class="string"><span class="content">living_room/switch/ac</span></span>
|
||||
<span class="comment"># Optional</span>
|
||||
<span class="key">payload</span>: <span class="string"><span class="content">'on'</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="numeric-state-trigger" href="#numeric-state-trigger"></a> Numeric state trigger</h4>
|
||||
<p>On state change of a specified entity, attempts to parse the state as a number and triggers if value is above and/or below a threshold.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">numeric_state</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">sensor.temperature</span></span>
|
||||
<span class="comment"># Optional</span>
|
||||
<span class="key">value_template</span>: <span class="string"><span class="content">'{{ state.attributes.battery }}'</span></span>
|
||||
<span class="comment"># At least one of the following required</span>
|
||||
<span class="key">above</span>: <span class="string"><span class="content">17</span></span>
|
||||
<span class="key">below</span>: <span class="string"><span class="content">25</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="state-trigger" href="#state-trigger"></a> State trigger</h4>
|
||||
|
||||
<p>Triggers when the state of an entity changes. If only entity_id given will match all state changes.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">state</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">device_tracker.paulus</span></span>
|
||||
<span class="comment"># Optional</span>
|
||||
<span class="key">from</span>: <span class="string"><span class="content">'not_home'</span></span>
|
||||
<span class="key">to</span>: <span class="string"><span class="content">'home'</span></span>
|
||||
<span class="comment"># If given, will trigger when state has been the to state for X time.</span>
|
||||
<span class="key">for</span>:
|
||||
<span class="key">hours</span>: <span class="string"><span class="content">1</span></span>
|
||||
<span class="key">minutes</span>: <span class="string"><span class="content">10</span></span>
|
||||
<span class="key">seconds</span>: <span class="string"><span class="content">5</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="note warning">
|
||||
Use quotes around your values for <code>from</code> and <code>to</code> to avoid the YAML parser interpreting values as booleans.
|
||||
</p>
|
||||
|
||||
<h4><a class="title-link" name="sun-trigger" href="#sun-trigger"></a> Sun trigger</h4>
|
||||
<p>Trigger when the sun is setting or rising. An optional time offset can be given to have it trigger for example 45 minutes before sunset, when dusk is setting in.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">sun</span></span>
|
||||
<span class="comment"># Possible values: sunset, sunrise</span>
|
||||
<span class="key">event</span>: <span class="string"><span class="content">sunset</span></span>
|
||||
<span class="comment"># Optional time offset. This example is 45 minutes.</span>
|
||||
<span class="key">offset</span>: <span class="string"><span class="content">'-00:45:00'</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="template-trigger" href="#template-trigger"></a> Template trigger</h4>
|
||||
|
||||
<p>Template triggers work by evaluating a <a href="/topics/templating/">template</a> on each state change. The trigger will fire if the state change caused the template to render ‘true’. This is achieved by having the template result in a true boolean expression (<code>{{ is_state('device_tracker.paulus', 'home') }}</code>) or by having the template render ‘true’ (example below).</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">template</span></span>
|
||||
<span class="key">value_template</span>: <span class="string"><span class="content">'{% if is_state('device_tracker.paulus', 'home') %}true{% endif %}'</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="time-trigger" href="#time-trigger"></a> Time trigger</h4>
|
||||
|
||||
<p>Time can be triggered in many ways. The most common is to specify <code>after</code> and trigger at a specific point in time each day. Alternatively, you can also match if the hour, minute or second of the current time has a specific value. You can prefix the value with a <code>/</code> to match whenever the value is divisible by that number. You cannot use <code>after</code> together with hour, minute or second.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">time</span></span>
|
||||
<span class="comment"># Matches every hour at 5 minutes past whole</span>
|
||||
<span class="key">minutes</span>: <span class="string"><span class="content">5</span></span>
|
||||
<span class="key">seconds</span>: <span class="string"><span class="content">0</span></span>
|
||||
|
||||
<span class="key">automation 2</span>:
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">time</span></span>
|
||||
<span class="comment"># When 'after' is used, you cannot also match on hour, minute, seconds.</span>
|
||||
<span class="comment"># Military time format.</span>
|
||||
<span class="key">after</span>: <span class="string"><span class="content">'15:32:00'</span></span>
|
||||
|
||||
<span class="key">automation 3</span>:
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">time</span></span>
|
||||
<span class="comment"># You can also match on interval. This will match every 5 minutes</span>
|
||||
<span class="key">minutes</span>: <span class="string"><span class="content">'/5'</span></span>
|
||||
<span class="key">seconds</span>: <span class="string"><span class="content">0</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="zone-trigger" href="#zone-trigger"></a> Zone trigger</h4>
|
||||
|
||||
<p>Zone triggers can trigger when an entity is entering or leaving the zone. For zone automation to work, you need to have setup a device tracker platform that supports reporting GPS coordinates. Currently this is limited to the <a href="/components/device_tracker.owntracks/">OwnTracks platform</a> as well as the <a href="/components/device_tracker.icloud/">iCloud platform</a>.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">zone</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">device_tracker.paulus</span></span>
|
||||
<span class="key">zone</span>: <span class="string"><span class="content">zone.home</span></span>
|
||||
<span class="comment"># Event is either enter or leave</span>
|
||||
<span class="key">event</span>: <span class="string"><span class="content">enter</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2><a class="title-link" name="conditions" href="#conditions"></a> Conditions</h2>
|
||||
|
||||
<p>Conditions are an optional part of an automation rule and be used to prevent an action from happening when triggered. Conditions look very similar to triggers but are very different. A trigger will look at events happening in the system while a condition only looks at how the system looks right now. A trigger can observe that a switch is being turned on. A condition can only see if a switch is currently on or off.</p>
|
||||
|
||||
<p>An automation rule can have multiple conditions. By default the action will only fire if all conditions pass. An optional key <code>condition_type: 'or'</code> can be set on the automation rule to fire action if any condition matches. In the example below, the automation would trigger if the time is before 05:00 <em>OR</em> after 20:00.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">condition_type</span>: <span class="string"><span class="content">or</span></span>
|
||||
<span class="key">condition</span>:
|
||||
- <span class="string"><span class="content">platform: time</span></span>
|
||||
<span class="key">before</span>: <span class="string"><span class="content">'05:00'</span></span>
|
||||
- <span class="string"><span class="content">platform: time</span></span>
|
||||
<span class="key">after</span>: <span class="string"><span class="content">'20:00'</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>If your triggers and conditions are exactly the same, you can use a shortcut to specify conditions. In this case, triggers that are not valid conditions will be ignored.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">condition</span>: <span class="string"><span class="content">use_trigger_values</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="numeric-state-condition" href="#numeric-state-condition"></a> Numeric state condition</h4>
|
||||
|
||||
<p>This type of condition attempts to parse the state of specified entity as a number and triggers if the value matches all of the above or below thresholds. <br />
|
||||
Either <code>above</code> or <code>below</code>, or both need to be specified. If both are used, the condition is true when the value is >= <code>before</code> *and** < <code>after</code>. <br />
|
||||
You can optionally use a <code>value_template</code> to make the value of the entity the same type of value as the condition.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">condition</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">numeric_state</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">sensor.temperature</span></span>
|
||||
<span class="key">above</span>: <span class="string"><span class="content">17</span></span>
|
||||
<span class="key">below</span>: <span class="string"><span class="content">25</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="state-condition" href="#state-condition"></a> State condition</h4>
|
||||
|
||||
<p>Tests if an entity is a specified state.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">condition</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">state</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">device_tracker.paulus</span></span>
|
||||
<span class="key">state</span>: <span class="string"><span class="content">not_home</span></span>
|
||||
<span class="comment"># optional: trigger only if state was this for last X time.</span>
|
||||
<span class="key">for</span>:
|
||||
<span class="key">hours</span>: <span class="string"><span class="content">1</span></span>
|
||||
<span class="key">minutes</span>: <span class="string"><span class="content">10</span></span>
|
||||
<span class="key">seconds</span>: <span class="string"><span class="content">5</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="sun-condition" href="#sun-condition"></a> Sun condition</h4>
|
||||
|
||||
<p>The sun condition can test if the sun has already set or risen when a trigger occurs. The <code>before</code> and <code>after</code> keys can only be set to <code>sunset</code> or <code>sunrise</code>. They have a corresponding optional offset value (<code>before_offset</code>, <code>after_offset</code>) that can be added, similar to the <a href="#sun-trigger">sun trigger</a>.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">condition</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">sun</span></span>
|
||||
<span class="key">after</span>: <span class="string"><span class="content">sunset</span></span>
|
||||
<span class="comment"># Optional offset value</span>
|
||||
<span class="key">after_offset</span>: <span class="string"><span class="delimiter">"</span><span class="content">-1:00:00</span><span class="delimiter">"</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="template-condition" href="#template-condition"></a> Template condition</h4>
|
||||
|
||||
<p>The template condition will test if the <a href="/topics/templating/">given template</a> renders a value equal to true. This is achieved by having the template result in a true boolean expression or by having the template render ‘true’.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">condition</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">template</span></span>
|
||||
<span class="key">value_template</span>: <span class="string"><span class="content">'{{ state.attributes.battery > 50 }}'</span></span>
|
||||
<span class="comment"># Or value_template could be:</span>
|
||||
<span class="comment"># {% if state.attributes.battery > 50 %}true{% else %}false{% endif %}</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="time-condition" href="#time-condition"></a> Time condition</h4>
|
||||
|
||||
<p>The time condition can test if it is after a specified time, before a specified time or if it is a certain day of the week</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">condition</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">time</span></span>
|
||||
<span class="comment"># At least one of the following is required.</span>
|
||||
<span class="key">after</span>: <span class="string"><span class="content">'15:00:00'</span></span>
|
||||
<span class="key">before</span>: <span class="string"><span class="content">'23:00:00'</span></span>
|
||||
<span class="key">weekday</span>:
|
||||
- <span class="string"><span class="content">mon</span></span>
|
||||
- <span class="string"><span class="content">wed</span></span>
|
||||
- <span class="string"><span class="content">fri</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>Valid values for <code>weekday</code> are (<code>sun</code>, <code>mon</code>, <code>tue</code>, <code>wed</code>, <code>thu</code>, <code>fri</code> & <code>sat</code>)</p>
|
||||
|
||||
<h4><a class="title-link" name="zone-condition" href="#zone-condition"></a> Zone condition</h4>
|
||||
|
||||
<p>Zone conditions test if an entity is in a certain zone. For zone automation to work, you need to have setup a device tracker platform that supports reporting GPS coordinates. Currently this is limited to the <a href="/components/device_tracker.owntracks/">OwnTracks platform</a> as well as the <a href="/components/device_tracker.icloud/">iCloud platform</a>.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">condition</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">zone</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">device_tracker.paulus</span></span>
|
||||
<span class="key">zone</span>: <span class="string"><span class="content">zone.home</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2><a class="title-link" name="actions" href="#actions"></a> Actions</h2>
|
||||
|
||||
<p>When an automation rule fires, it calls a service. For this service you can specify the entity_id that it should apply to and optional service parameters (to specify for example the brightness).</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="comment"># Change the light in the kitchen and living room to 150 brightness and color red.</span>
|
||||
<span class="key">action</span>:
|
||||
<span class="key">service</span>: <span class="string"><span class="content">homeassistant.turn_on</span></span>
|
||||
<span class="key">entity_id</span>:
|
||||
- <span class="string"><span class="content">light.kitchen</span></span>
|
||||
- <span class="string"><span class="content">light.living_room</span></span>
|
||||
<span class="key">data</span>:
|
||||
<span class="key">brightness</span>: <span class="string"><span class="content">150</span></span>
|
||||
<span class="key">rgb_color</span>: <span class="string"><span class="content">[255, 0, 0]</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="comment"># Notify me on my mobile phone of an event</span>
|
||||
<span class="key">action</span>:
|
||||
<span class="key">service</span>: <span class="string"><span class="content">notify.notify</span></span>
|
||||
<span class="key">data</span>:
|
||||
<span class="key">message</span>: <span class="string"><span class="content">Something just happened, better take a look!</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>If you want to specify multiple services to be called, or to include a delay, have a look at the <a href="/components/script/">script component</a>. If you want to describe the desired state of certain entities, check out the <a href="/components/scene/">scene component</a>.</p>
|
||||
|
||||
<h2><a class="title-link" name="troubleshooting" href="#troubleshooting"></a> Troubleshooting</h2>
|
||||
|
||||
<p>You can verify that your automation rules are being initialized correctly by watching both the realtime logs (<code>homeassistant.log</code> in the configuration directory) and also the <a href="/components/logbook/">Logbook</a>. The realtime logs will show the rules being initialized (once for each trigger), example:</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre>INFO [homeassistant.components.automation] Initialized rule Rainy Day
|
||||
INFO [homeassistant.components.automation] Initialized rule Rainy Day
|
||||
INFO [homeassistant.components.automation] Initialized rule Rainy Day
|
||||
INFO [homeassistant.components.automation] Initialized rule Rain is over
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>The Logbook component will show a line entry when an automation is triggered. You can look at the previous entry to determine which trigger in the rule triggered the event.</p>
|
||||
|
||||
<p><img src="/images/components/automation/logbook.png" alt="Logbook example" /></p>
|
||||
<p>Please see the <a href="/getting-started/automation/">getting started section</a> for in-depth documentation on how to use the automation compnoent.</p>
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -265,7 +265,7 @@ Home Assistant will automatically load the correct certificate if you connect to
|
|||
<li><a href="/components/device_tracker.mqtt/">MQTT Device Tracker</a></li>
|
||||
<li><a href="/components/device_tracker.owntracks/">OwnTracks Device Tracker</a></li>
|
||||
<li>
|
||||
<p><a href="/components/automation/#mqtt-based-automation">MQTT automation rule</a></p>
|
||||
<p><a href="/getting-started/automation-trigger/#mqtt-trigger">MQTT automation rule</a></p>
|
||||
</li>
|
||||
<li>Integrating it into own component. See the <a href="/cookbook/python_component_mqtt_basic/">MQTT example component</a> how to do this.</li>
|
||||
</ul>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<li><strong>command</strong> (<em>Required</em>): The action to take.</li>
|
||||
</ul>
|
||||
|
||||
<p>To use notifications, please see the <a href="/components/automation/">getting started with automation page</a>.</p>
|
||||
<p>To use notifications, please see the <a href="/getting-started/automation/">getting started with automation page</a>.</p>
|
||||
|
||||
|
||||
</article>
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
<li><strong>timestamp</strong> (<em>Optional</em>): Setting <code>timestamp</code> to 1 adds a timestamp to every entry.</li>
|
||||
</ul>
|
||||
|
||||
<p>To use notifications, please see the <a href="/components/automation/">getting started with automation page</a>.</p>
|
||||
<p>To use notifications, please see the <a href="/getting-started/automation/">getting started with automation page</a>.</p>
|
||||
|
||||
|
||||
</article>
|
||||
|
|
|
@ -132,7 +132,7 @@
|
|||
</div>
|
||||
<p>For further details, please check the <a href="https://instapush.im/developer/rest">API</a>.</p>
|
||||
|
||||
<p>To use notifications, please see the <a href="/components/automation/">getting started with automation page</a>.</p>
|
||||
<p>To use notifications, please see the <a href="/getting-started/automation/">getting started with automation page</a>.</p>
|
||||
|
||||
|
||||
</article>
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
|
||||
<p>Details for the API : https://www.notifymyandroid.com/api.jsp</p>
|
||||
|
||||
<p>To use notifications, please see the <a href="/components/automation/">getting started with automation page</a>.</p>
|
||||
<p>To use notifications, please see the <a href="/getting-started/automation/">getting started with automation page</a>.</p>
|
||||
|
||||
|
||||
</article>
|
||||
|
|
|
@ -128,7 +128,7 @@
|
|||
|
||||
<p>For further details, please check the <a href="http://pushetta.com/pushetta-api/">API</a>.</p>
|
||||
|
||||
<p>To use notifications, please see the <a href="/components/automation/">getting started with automation page</a>.</p>
|
||||
<p>To use notifications, please see the <a href="/getting-started/automation/">getting started with automation page</a>.</p>
|
||||
|
||||
|
||||
</article>
|
||||
|
|
|
@ -118,7 +118,7 @@
|
|||
<li><strong>target_param_name</strong> (<em>Optional</em>): Parameter name for the target. Defaults to none.</li>
|
||||
</ul>
|
||||
|
||||
<p>To use notifications, please see the <a href="/components/automation/">getting started with automation page</a>.</p>
|
||||
<p>To use notifications, please see the <a href="/getting-started/automation/">getting started with automation page</a>.</p>
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@
|
|||
<li><strong>recipient</strong> (<em>Required</em>): Recipient of the notification.</li>
|
||||
</ul>
|
||||
|
||||
<p>To use notifications, please see the <a href="/components/automation/">getting started with automation page</a>.</p>
|
||||
<p>To use notifications, please see the <a href="/getting-started/automation/">getting started with automation page</a>.</p>
|
||||
|
||||
|
||||
</article>
|
||||
|
|
|
@ -114,7 +114,7 @@
|
|||
<li><strong>default_channel</strong> (<em>Required</em>): The default channel to post to if no channel is explicitly specified when sending the notification message.</li>
|
||||
</ul>
|
||||
|
||||
<p>To use notifications, please see the <a href="/components/automation/">getting started with automation page</a>.</p>
|
||||
<p>To use notifications, please see the <a href="/getting-started/automation/">getting started with automation page</a>.</p>
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@
|
|||
<p>For Google Mail (smtp.gmail.com) an additional step in the setup process is needed. Google has some extra layers of protection<br />
|
||||
which need special attention. By default, the usage by external applications, especially scripts, is limited. Visit the <a href="https://www.google.com/settings/security/lesssecureapps">Less secure apps</a> page and enable it.</p>
|
||||
|
||||
<p>To use notifications, please see the <a href="/components/automation/">getting started with automation page</a>.</p>
|
||||
<p>To use notifications, please see the <a href="/getting-started/automation/">getting started with automation page</a>.</p>
|
||||
|
||||
|
||||
</article>
|
||||
|
|
|
@ -220,7 +220,7 @@
|
|||
|
||||
<p>For details about facility, option, and priority please consult the <a href="http://en.wikipedia.org/wiki/Syslog">wikpedia article</a> and <a href="http://tools.ietf.org/html/rfc3164">RFC 3164</a>.</p>
|
||||
|
||||
<p>To use notifications, please see the <a href="/components/automation/">getting started with automation page</a>.</p>
|
||||
<p>To use notifications, please see the <a href="/getting-started/automation/">getting started with automation page</a>.</p>
|
||||
|
||||
|
||||
</article>
|
||||
|
|
|
@ -151,7 +151,7 @@ print(chat_id)
|
|||
<li><strong>chat_id</strong> (<em>Required</em>: The chat ID of your user.</li>
|
||||
</ul>
|
||||
|
||||
<p>To use notifications, please see the <a href="/components/automation/">getting started with automation page</a>.</p>
|
||||
<p>To use notifications, please see the <a href="/getting-started/automation/">getting started with automation page</a>.</p>
|
||||
|
||||
|
||||
</article>
|
||||
|
|
|
@ -116,7 +116,7 @@
|
|||
<li><strong>access_token_secret</strong> (<em>Required</em>): Your “Access Token Secret” for the application.</li>
|
||||
</ul>
|
||||
|
||||
<p>To use notifications, please see the <a href="/components/automation/">getting started with automation page</a>.</p>
|
||||
<p>To use notifications, please see the <a href="/getting-started/automation/">getting started with automation page</a>.</p>
|
||||
|
||||
|
||||
</article>
|
||||
|
|
|
@ -116,7 +116,7 @@
|
|||
|
||||
<p>All Jabber IDs (JID) must include the domain. Make sure that the password matches the account provided as sender.</p>
|
||||
|
||||
<p>To use notifications, please see the <a href="/components/automation/">getting started with automation page</a>.</p>
|
||||
<p>To use notifications, please see the <a href="/getting-started/automation/">getting started with automation page</a>.</p>
|
||||
|
||||
|
||||
</article>
|
||||
|
|
|
@ -140,7 +140,7 @@
|
|||
|
||||
<p>The notification component supports specifying <a href="/topics/templating/">templates</a> for both the <code>message</code> and the <code>title</code>. This will allow you to use the current state of Home Assistant in your notifications.</p>
|
||||
|
||||
<p>In an <a href="https://home-assistant.io/components/automation/#actions">action</a> of your <a href="/components/automation/">automation setup</a> it could look like this with a customized subject.</p>
|
||||
<p>In an <a href="https://home-assistant.io/getting-started/automation-action/">action</a> of your <a href="/getting-started/automation/">automation setup</a> it could look like this with a customized subject.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">action</span>:
|
||||
|
|
|
@ -91,7 +91,7 @@
|
|||
|
||||
<p>The <code>proximity</code> component allows you to monitor the proximity of devices to a particular <a href="/components/zone/">zone</a> and the direction of travel. The result is an entity created in Home Assistant which maintains the proximity data.</p>
|
||||
|
||||
<p>This component is useful to reduce the number of automation rules required when wanting to perform automations based on locations outside a particular zone. The <a href="/components/automation/#zone-trigger">zone</a> and <a href="/components/automation/#state-trigger">state</a> based triggers allow similar control but the number of rules grows exponentially when factors such as direction of travel need to be taken into account.</p>
|
||||
<p>This component is useful to reduce the number of automation rules required when wanting to perform automations based on locations outside a particular zone. The <a href="/getting-started/automation-trigger/#zone-trigger">zone</a> and <a href="/getting-started/automation-trigger/#state-trigger">state</a> based triggers allow similar control but the number of rules grows exponentially when factors such as direction of travel need to be taken into account.</p>
|
||||
|
||||
<p>Some examples of its use include:</p>
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@
|
|||
<hr class="divider">
|
||||
|
||||
|
||||
<p>The sun component will use your current location to track if the sun is above or below the horizon.The sun can be used within automation as <a href="/components/automation/#sun-trigger">a trigger with an optional offset to simulate dawn/dusk</a>.</p>
|
||||
<p>The sun component will use your current location to track if the sun is above or below the horizon.The sun can be used within automation as <a href="/getting-started/automation-trigger/#sun-trigger">a trigger with an optional offset to simulate dawn/dusk</a>.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="comment"># Example configuration.yaml entry</span>
|
||||
|
|
|
@ -89,7 +89,7 @@
|
|||
<hr class="divider">
|
||||
|
||||
|
||||
<p>Zones allow you to specify certain regions on earth (for now). When a device tracker sees a device to be within a zone, the state will take the name from the zone. Zones can also be used as a <a href="/components/automation/#zone-trigger">trigger</a> or <a href="/components/automation/#zone-condition">condition</a> inside automation setups.</p>
|
||||
<p>Zones allow you to specify certain regions on earth (for now). When a device tracker sees a device to be within a zone, the state will take the name from the zone. Zones can also be used as a <a href="/getting-started/automation-trigger/#zone-trigger">trigger</a> or <a href="/getting-started/automation-condition/#zone-condition">condition</a> inside automation setups.</p>
|
||||
|
||||
<p>Zones support the usual method to specify multiple zones, use keys <code>zone:</code>, <code>zone 2:</code> etc.</p>
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@
|
|||
<hr class="divider">
|
||||
|
||||
|
||||
<p>This is a community curated list of different ways to use Home Assistant. Most of these examples are using the <a href="/components/automation/">automation</a> component and other built-in <a href="/components/#automation">automation related</a> and <a href="/components/#organization">organization</a> components available.</p>
|
||||
<p>This is a community curated list of different ways to use Home Assistant. Most of these examples are using the <a href="/getting-started/automation/">automation</a> component and other built-in <a href="/components/#automation">automation related</a> and <a href="/components/#organization">organization</a> components available.</p>
|
||||
|
||||
<p>New recipes can be added via the <a href="https://github.com/home-assistant/home-assistant.io/tree/master/source/_cookbook">home-assistant.io repository</a>.</p>
|
||||
|
||||
|
|
|
@ -136,10 +136,18 @@
|
|||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/automation/'>Automation </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
|
|
213
getting-started/automation-action/index.html
Normal file
213
getting-started/automation-action/index.html
Normal file
|
@ -0,0 +1,213 @@
|
|||
<!doctype html>
|
||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
||||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
||||
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<title>Automation Actions - Home Assistant</title>
|
||||
<meta name="author" content="Paulus Schoutsen">
|
||||
<meta name="description" content="Automations result in action.">
|
||||
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="canonical" href="https://home-assistant.io/getting-started/automation-action/">
|
||||
|
||||
<meta property="fb:app_id" content="338291289691179">
|
||||
<meta property="og:title" content="Automation Actions">
|
||||
<meta property="og:site_name" content="Home Assistant">
|
||||
<meta property="og:url" content="https://home-assistant.io/getting-started/automation-action/">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:description" content="Automations result in action.">
|
||||
<meta property="og:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
|
||||
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:site" content="@home_assistant">
|
||||
|
||||
<meta name="twitter:title" content="Automation Actions">
|
||||
<meta name="twitter:description" content="Automations result in action.">
|
||||
<meta name="twitter:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
|
||||
|
||||
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet">
|
||||
<link href="/atom.xml" rel="alternate" title="Home Assistant" type="application/atom+xml">
|
||||
<link rel='shortcut icon' href='/images/favicon.ico' />
|
||||
<link rel='icon' type='image/png' href='/images/favicon-192x192.png' sizes='192x192' />
|
||||
</head>
|
||||
|
||||
<body >
|
||||
|
||||
<header>
|
||||
<div class="grid-wrapper">
|
||||
<div class="grid">
|
||||
|
||||
<div class="grid__item three-tenths lap-two-sixths palm-one-whole ha-title">
|
||||
<a href="/" class="site-title">
|
||||
<img width='40' src='/demo/favicon-192x192.png'>
|
||||
<span>Home Assistant</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="grid__item seven-tenths lap-four-sixths palm-one-whole">
|
||||
<nav>
|
||||
<input type="checkbox" id="toggle">
|
||||
<label for="toggle" class="toggle" data-open="Main Menu" data-close="Close Menu"></label>
|
||||
<ul class="menu pull-right">
|
||||
|
||||
<li><a href='/getting-started/'>Getting started</a></li>
|
||||
<li><a href='/components/'>Components</a></li>
|
||||
<li><a href='/cookbook/'>Examples</a></li>
|
||||
<li><a href="/developers/">Developers</a></li>
|
||||
<li><a href="/blog/">Blog</a></li>
|
||||
<li><a href="/help/">Need help?</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
<div class="grid-wrapper">
|
||||
<div class="grid grid-center">
|
||||
|
||||
<div class="grid__item two-thirds lap-one-whole palm-one-whole">
|
||||
|
||||
|
||||
<article class="page">
|
||||
|
||||
|
||||
|
||||
|
||||
<header>
|
||||
<h1 class="title indent">
|
||||
Automation Actions
|
||||
</h1>
|
||||
</header>
|
||||
<hr class="divider">
|
||||
|
||||
|
||||
<p>When an automation rule fires, it calls a service. For this service you can specify the entity_id that it should apply to and optional service parameters (to specify for example the brightness).</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="comment"># Change the light in the kitchen and living room to 150 brightness and color red.</span>
|
||||
<span class="key">action</span>:
|
||||
<span class="key">service</span>: <span class="string"><span class="content">homeassistant.turn_on</span></span>
|
||||
<span class="key">entity_id</span>:
|
||||
- <span class="string"><span class="content">light.kitchen</span></span>
|
||||
- <span class="string"><span class="content">light.living_room</span></span>
|
||||
<span class="key">data</span>:
|
||||
<span class="key">brightness</span>: <span class="string"><span class="content">150</span></span>
|
||||
<span class="key">rgb_color</span>: <span class="string"><span class="content">[255, 0, 0]</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="comment"># Notify me on my mobile phone of an event</span>
|
||||
<span class="key">action</span>:
|
||||
<span class="key">service</span>: <span class="string"><span class="content">notify.notify</span></span>
|
||||
<span class="key">data</span>:
|
||||
<span class="key">message</span>: <span class="string"><span class="content">Something just happened, better take a look!</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>If you want to specify multiple services to be called, or to include a delay, have a look at the <a href="/components/script/">script component</a>. If you want to describe the desired state of certain entities, check out the <a href="/components/scene/">scene component</a>.</p>
|
||||
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">
|
||||
<div class="grid">
|
||||
|
||||
|
||||
<section class="aside-module grid__item one-whole lap-one-half">
|
||||
<div class='edit-github'><a href='https://github.com/home-assistant/home-assistant.io/tree/master/source/getting-started/automation-action.markdown'>Edit this page on GitHub</a></div>
|
||||
<div class='section'>
|
||||
<h1 class="title delta">Getting Started Guide</h1>
|
||||
<ul class='divided sidebar-menu'>
|
||||
<li>
|
||||
<a href='/getting-started/'>Installation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/installation-raspberry-pi/'>Raspberry Pi </a></li>
|
||||
<li><a href='/getting-started/installation-docker/'>Docker </a></li>
|
||||
<li><a href='/getting-started/installation-synology/'>Synology NAS </a></li>
|
||||
<li><a href='/getting-started/installation-virtualenv/'>VirtualEnv Linux Instructions </a></li>
|
||||
<li><a href='/getting-started/troubleshooting/'>Troubleshooting </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
Configuration
|
||||
<ul>
|
||||
<li><a href='/getting-started/configuration/'>Configuration.yaml </a></li>
|
||||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a class='active' href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/autostart-systemd/'>Linux - SystemD </a></li>
|
||||
<li><a href='/getting-started/autostart-upstart/'>Linux - Upstart </a></li>
|
||||
<li><a href='/getting-started/autostart-macos/'>macOS </a></li>
|
||||
<li><a href='/getting-started/autostart-synology/'>Synology NAS </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href='/topics/'>Advanced Topics</a></li>
|
||||
<li><a href='/getting-started/android/'>Add to Android Homescreen </a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<div class="grid-wrapper">
|
||||
<div class="grid">
|
||||
<div class="grid__item">
|
||||
<div class="copyright">
|
||||
<a rel="me" href='https://twitter.com/home_assistant'><i class="icon-twitter"></i></a>
|
||||
<a rel="me" href='https://github.com/home-assistant/home-assistant'><i class="icon-github"></i></a>
|
||||
|
||||
<div class="credit">
|
||||
Website powered by <a href='http://jekyllrb.com/'>Jekyll</a> and the <a href='https://github.com/coogie/oscailte'>Oscalite theme</a>.<br />
|
||||
Hosted by <a href='https://pages.github.com/'>GitHub</a> and served by <a href='https://cloudflare.com'>CloudFlare</a>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
var _gaq=[['_setAccount','UA-57927901-1'],['_trackPageview']];
|
||||
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
||||
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
|
||||
s.parentNode.insertBefore(g,s)}(document,'script'));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
309
getting-started/automation-condition/index.html
Normal file
309
getting-started/automation-condition/index.html
Normal file
|
@ -0,0 +1,309 @@
|
|||
<!doctype html>
|
||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
||||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
||||
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<title>Automation Conditions - Home Assistant</title>
|
||||
<meta name="author" content="Paulus Schoutsen">
|
||||
<meta name="description" content="Automations can test conditions when invoked.">
|
||||
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="canonical" href="https://home-assistant.io/getting-started/automation-condition/">
|
||||
|
||||
<meta property="fb:app_id" content="338291289691179">
|
||||
<meta property="og:title" content="Automation Conditions">
|
||||
<meta property="og:site_name" content="Home Assistant">
|
||||
<meta property="og:url" content="https://home-assistant.io/getting-started/automation-condition/">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:description" content="Automations can test conditions when invoked.">
|
||||
<meta property="og:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
|
||||
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:site" content="@home_assistant">
|
||||
|
||||
<meta name="twitter:title" content="Automation Conditions">
|
||||
<meta name="twitter:description" content="Automations can test conditions when invoked.">
|
||||
<meta name="twitter:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
|
||||
|
||||
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet">
|
||||
<link href="/atom.xml" rel="alternate" title="Home Assistant" type="application/atom+xml">
|
||||
<link rel='shortcut icon' href='/images/favicon.ico' />
|
||||
<link rel='icon' type='image/png' href='/images/favicon-192x192.png' sizes='192x192' />
|
||||
</head>
|
||||
|
||||
<body >
|
||||
|
||||
<header>
|
||||
<div class="grid-wrapper">
|
||||
<div class="grid">
|
||||
|
||||
<div class="grid__item three-tenths lap-two-sixths palm-one-whole ha-title">
|
||||
<a href="/" class="site-title">
|
||||
<img width='40' src='/demo/favicon-192x192.png'>
|
||||
<span>Home Assistant</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="grid__item seven-tenths lap-four-sixths palm-one-whole">
|
||||
<nav>
|
||||
<input type="checkbox" id="toggle">
|
||||
<label for="toggle" class="toggle" data-open="Main Menu" data-close="Close Menu"></label>
|
||||
<ul class="menu pull-right">
|
||||
|
||||
<li><a href='/getting-started/'>Getting started</a></li>
|
||||
<li><a href='/components/'>Components</a></li>
|
||||
<li><a href='/cookbook/'>Examples</a></li>
|
||||
<li><a href="/developers/">Developers</a></li>
|
||||
<li><a href="/blog/">Blog</a></li>
|
||||
<li><a href="/help/">Need help?</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
<div class="grid-wrapper">
|
||||
<div class="grid grid-center">
|
||||
|
||||
<div class="grid__item two-thirds lap-one-whole palm-one-whole">
|
||||
|
||||
|
||||
<article class="page">
|
||||
|
||||
|
||||
|
||||
|
||||
<header>
|
||||
<h1 class="title indent">
|
||||
Automation Conditions
|
||||
</h1>
|
||||
</header>
|
||||
<hr class="divider">
|
||||
|
||||
|
||||
<p>Conditions are an optional part of an automation rule and be used to prevent an action from happening when triggered. Conditions look very similar to triggers but are very different. A trigger will look at events happening in the system while a condition only looks at how the system looks right now. A trigger can observe that a switch is being turned on. A condition can only see if a switch is currently on or off.</p>
|
||||
|
||||
<p>An automation rule can have multiple conditions. By default the action will only fire if all conditions pass. An optional key <code>condition_type: 'or'</code> can be set on the automation rule to fire action if any condition matches. In the example below, the automation would trigger if the time is before 05:00 <em>OR</em> after 20:00.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">condition_type</span>: <span class="string"><span class="content">or</span></span>
|
||||
<span class="key">condition</span>:
|
||||
- <span class="string"><span class="content">platform: time</span></span>
|
||||
<span class="key">before</span>: <span class="string"><span class="content">'05:00'</span></span>
|
||||
- <span class="string"><span class="content">platform: time</span></span>
|
||||
<span class="key">after</span>: <span class="string"><span class="content">'20:00'</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>If your triggers and conditions are exactly the same, you can use a shortcut to specify conditions. In this case, triggers that are not valid conditions will be ignored.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">condition</span>: <span class="string"><span class="content">use_trigger_values</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="numeric-state-condition" href="#numeric-state-condition"></a> Numeric state condition</h4>
|
||||
|
||||
<p>This type of condition attempts to parse the state of specified entity as a number and triggers if the value matches all of the above or below thresholds.<br />
|
||||
Either <code>above</code> or <code>below</code>, or both need to be specified. If both are used, the condition is true when the value is >= <code>before</code> *and** < <code>after</code>.<br />
|
||||
You can optionally use a <code>value_template</code> to make the value of the entity the same type of value as the condition.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">condition</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">numeric_state</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">sensor.temperature</span></span>
|
||||
<span class="key">above</span>: <span class="string"><span class="content">17</span></span>
|
||||
<span class="key">below</span>: <span class="string"><span class="content">25</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="state-condition" href="#state-condition"></a> State condition</h4>
|
||||
|
||||
<p>Tests if an entity is a specified state.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">condition</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">state</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">device_tracker.paulus</span></span>
|
||||
<span class="key">state</span>: <span class="string"><span class="content">not_home</span></span>
|
||||
<span class="comment"># optional: trigger only if state was this for last X time.</span>
|
||||
<span class="key">for</span>:
|
||||
<span class="key">hours</span>: <span class="string"><span class="content">1</span></span>
|
||||
<span class="key">minutes</span>: <span class="string"><span class="content">10</span></span>
|
||||
<span class="key">seconds</span>: <span class="string"><span class="content">5</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="sun-condition" href="#sun-condition"></a> Sun condition</h4>
|
||||
|
||||
<p>The sun condition can test if the sun has already set or risen when a trigger occurs. The <code>before</code> and <code>after</code> keys can only be set to <code>sunset</code> or <code>sunrise</code>. They have a corresponding optional offset value (<code>before_offset</code>, <code>after_offset</code>) that can be added, similar to the <a href="#sun-trigger">sun trigger</a>.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">condition</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">sun</span></span>
|
||||
<span class="key">after</span>: <span class="string"><span class="content">sunset</span></span>
|
||||
<span class="comment"># Optional offset value</span>
|
||||
<span class="key">after_offset</span>: <span class="string"><span class="delimiter">"</span><span class="content">-1:00:00</span><span class="delimiter">"</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="template-condition" href="#template-condition"></a> Template condition</h4>
|
||||
|
||||
<p>The template condition will test if the [given template][template] renders a value equal to true. This is achieved by having the template result in a true boolean expression or by having the template render ‘true’.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">condition</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">template</span></span>
|
||||
<span class="key">value_template</span>: <span class="string"><span class="content">'{{ state.attributes.battery > 50 }}'</span></span>
|
||||
<span class="comment"># Or value_template could be:</span>
|
||||
<span class="comment"># {% if state.attributes.battery > 50 %}true{% else %}false{% endif %}</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="time-condition" href="#time-condition"></a> Time condition</h4>
|
||||
|
||||
<p>The time condition can test if it is after a specified time, before a specified time or if it is a certain day of the week</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">condition</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">time</span></span>
|
||||
<span class="comment"># At least one of the following is required.</span>
|
||||
<span class="key">after</span>: <span class="string"><span class="content">'15:00:00'</span></span>
|
||||
<span class="key">before</span>: <span class="string"><span class="content">'23:00:00'</span></span>
|
||||
<span class="key">weekday</span>:
|
||||
- <span class="string"><span class="content">mon</span></span>
|
||||
- <span class="string"><span class="content">wed</span></span>
|
||||
- <span class="string"><span class="content">fri</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>Valid values for <code>weekday</code> are (<code>sun</code>, <code>mon</code>, <code>tue</code>, <code>wed</code>, <code>thu</code>, <code>fri</code> & <code>sat</code>)</p>
|
||||
|
||||
<h4><a class="title-link" name="zone-condition" href="#zone-condition"></a> Zone condition</h4>
|
||||
|
||||
<p>Zone conditions test if an entity is in a certain zone. For zone automation to work, you need to have setup a device tracker platform that supports reporting GPS coordinates. Currently this is limited to the <a href="/components/device_tracker.owntracks/">OwnTracks platform</a> and the <a href="/components/device_tracker.icloud/">iCloud platform</a>.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">condition</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">zone</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">device_tracker.paulus</span></span>
|
||||
<span class="key">zone</span>: <span class="string"><span class="content">zone.home</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">
|
||||
<div class="grid">
|
||||
|
||||
|
||||
<section class="aside-module grid__item one-whole lap-one-half">
|
||||
<div class='edit-github'><a href='https://github.com/home-assistant/home-assistant.io/tree/master/source/getting-started/automation-condition.markdown'>Edit this page on GitHub</a></div>
|
||||
<div class='section'>
|
||||
<h1 class="title delta">Getting Started Guide</h1>
|
||||
<ul class='divided sidebar-menu'>
|
||||
<li>
|
||||
<a href='/getting-started/'>Installation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/installation-raspberry-pi/'>Raspberry Pi </a></li>
|
||||
<li><a href='/getting-started/installation-docker/'>Docker </a></li>
|
||||
<li><a href='/getting-started/installation-synology/'>Synology NAS </a></li>
|
||||
<li><a href='/getting-started/installation-virtualenv/'>VirtualEnv Linux Instructions </a></li>
|
||||
<li><a href='/getting-started/troubleshooting/'>Troubleshooting </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
Configuration
|
||||
<ul>
|
||||
<li><a href='/getting-started/configuration/'>Configuration.yaml </a></li>
|
||||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a class='active' href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/autostart-systemd/'>Linux - SystemD </a></li>
|
||||
<li><a href='/getting-started/autostart-upstart/'>Linux - Upstart </a></li>
|
||||
<li><a href='/getting-started/autostart-macos/'>macOS </a></li>
|
||||
<li><a href='/getting-started/autostart-synology/'>Synology NAS </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href='/topics/'>Advanced Topics</a></li>
|
||||
<li><a href='/getting-started/android/'>Add to Android Homescreen </a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<div class="grid-wrapper">
|
||||
<div class="grid">
|
||||
<div class="grid__item">
|
||||
<div class="copyright">
|
||||
<a rel="me" href='https://twitter.com/home_assistant'><i class="icon-twitter"></i></a>
|
||||
<a rel="me" href='https://github.com/home-assistant/home-assistant'><i class="icon-github"></i></a>
|
||||
|
||||
<div class="credit">
|
||||
Website powered by <a href='http://jekyllrb.com/'>Jekyll</a> and the <a href='https://github.com/coogie/oscailte'>Oscalite theme</a>.<br />
|
||||
Hosted by <a href='https://pages.github.com/'>GitHub</a> and served by <a href='https://cloudflare.com'>CloudFlare</a>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
var _gaq=[['_setAccount','UA-57927901-1'],['_trackPageview']];
|
||||
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
||||
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
|
||||
s.parentNode.insertBefore(g,s)}(document,'script'));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
281
getting-started/automation-create-first/index.html
Normal file
281
getting-started/automation-create-first/index.html
Normal file
|
@ -0,0 +1,281 @@
|
|||
<!doctype html>
|
||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
||||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
||||
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<title>Your First Automation - Home Assistant</title>
|
||||
<meta name="author" content="Paulus Schoutsen">
|
||||
<meta name="description" content="Step by step guiding through making your first automation.">
|
||||
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="canonical" href="https://home-assistant.io/getting-started/automation-create-first/">
|
||||
|
||||
<meta property="fb:app_id" content="338291289691179">
|
||||
<meta property="og:title" content="Your First Automation">
|
||||
<meta property="og:site_name" content="Home Assistant">
|
||||
<meta property="og:url" content="https://home-assistant.io/getting-started/automation-create-first/">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:description" content="Step by step guiding through making your first automation.">
|
||||
<meta property="og:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
|
||||
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:site" content="@home_assistant">
|
||||
|
||||
<meta name="twitter:title" content="Your First Automation">
|
||||
<meta name="twitter:description" content="Step by step guiding through making your first automation.">
|
||||
<meta name="twitter:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
|
||||
|
||||
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet">
|
||||
<link href="/atom.xml" rel="alternate" title="Home Assistant" type="application/atom+xml">
|
||||
<link rel='shortcut icon' href='/images/favicon.ico' />
|
||||
<link rel='icon' type='image/png' href='/images/favicon-192x192.png' sizes='192x192' />
|
||||
</head>
|
||||
|
||||
<body >
|
||||
|
||||
<header>
|
||||
<div class="grid-wrapper">
|
||||
<div class="grid">
|
||||
|
||||
<div class="grid__item three-tenths lap-two-sixths palm-one-whole ha-title">
|
||||
<a href="/" class="site-title">
|
||||
<img width='40' src='/demo/favicon-192x192.png'>
|
||||
<span>Home Assistant</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="grid__item seven-tenths lap-four-sixths palm-one-whole">
|
||||
<nav>
|
||||
<input type="checkbox" id="toggle">
|
||||
<label for="toggle" class="toggle" data-open="Main Menu" data-close="Close Menu"></label>
|
||||
<ul class="menu pull-right">
|
||||
|
||||
<li><a href='/getting-started/'>Getting started</a></li>
|
||||
<li><a href='/components/'>Components</a></li>
|
||||
<li><a href='/cookbook/'>Examples</a></li>
|
||||
<li><a href="/developers/">Developers</a></li>
|
||||
<li><a href="/blog/">Blog</a></li>
|
||||
<li><a href="/help/">Need help?</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
<div class="grid-wrapper">
|
||||
<div class="grid grid-center">
|
||||
|
||||
<div class="grid__item two-thirds lap-one-whole palm-one-whole">
|
||||
|
||||
|
||||
<article class="page">
|
||||
|
||||
|
||||
|
||||
|
||||
<header>
|
||||
<h1 class="title indent">
|
||||
Your First Automation
|
||||
</h1>
|
||||
</header>
|
||||
<hr class="divider">
|
||||
|
||||
|
||||
<p>Before we dive deeper into what every piece of automation <em>can</em> do, let’s look at a simple automation rule: <strong>Turn on the lights when the sun sets</strong></p>
|
||||
|
||||
<p>In this example, we are defining a trigger to track the sunset and tell it to fire when the sun is setting. When this event is triggered, the service <code>light.turn_on</code> is called without any parameters. Because we specify no parameters, it will turn on all the lights.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="comment"># Example configuration.yaml entry</span>
|
||||
<span class="key">automation</span>:
|
||||
<span class="key">alias</span>: <span class="string"><span class="content">Turn on light when sun sets</span></span>
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">sun</span></span>
|
||||
<span class="key">event</span>: <span class="string"><span class="content">sunset</span></span>
|
||||
<span class="key">action</span>:
|
||||
<span class="key">service</span>: <span class="string"><span class="content">light.turn_on</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>After a few days of running this automation rule you come to realize that this automation rule is not good enough. It was already dark when the lights went on and the one day you weren’t home, the lights turned on anyway. Time for some tweaking. Let’s add an offset to the sunset trigger and a condition to only turn on the lights if anyone is home.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="comment"># Example configuration.yaml entry</span>
|
||||
<span class="key">automation</span>:
|
||||
<span class="key">alias</span>: <span class="string"><span class="content">Turn on light when sun sets</span></span>
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">sun</span></span>
|
||||
<span class="key">event</span>: <span class="string"><span class="content">sunset</span></span>
|
||||
<span class="key">offset</span>: <span class="string"><span class="delimiter">"</span><span class="content">-01:00:00</span><span class="delimiter">"</span></span>
|
||||
<span class="key">condition</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">state</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">group.all_devices</span></span>
|
||||
<span class="key">state</span>: <span class="string"><span class="content">home</span></span>
|
||||
<span class="key">action</span>:
|
||||
<span class="key">service</span>: <span class="string"><span class="content">light.turn_on</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>Now you’re happy and all is good. You start to like this automation business and buy some more lights, this time you put them in the bedroom. But what you now realize is that when the sun is setting, the lights in the bedroom are also being turned on! Time to tweak the automation to only turn on the living room lights.</p>
|
||||
|
||||
<p>The first thing you do is to look at the entities in the developer tools (second icon) in the app. You see the names of your lights and you write them down: <code>light.table_lamp</code>, <code>light.bedroom</code>, <code>light.ceiling</code>.</p>
|
||||
|
||||
<p>Instead of hard coding the entity IDs of the lights in the automation rule, we will set up a group. This will allow us to see the living room separate in the app and be able to address it from automation rules.</p>
|
||||
|
||||
<p>So we tweak the config to add the group and have the automation rule only turn on the group.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="comment"># Example configuration.yaml entry</span>
|
||||
<span class="key">group</span>:
|
||||
<span class="key">living_room</span>:
|
||||
- <span class="string"><span class="content">light.table_lamp</span></span>
|
||||
- <span class="string"><span class="content">light.ceiling</span></span>
|
||||
|
||||
<span class="key">automation</span>:
|
||||
<span class="key">alias</span>: <span class="string"><span class="content">Turn on light when sun sets</span></span>
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">sun</span></span>
|
||||
<span class="key">event</span>: <span class="string"><span class="content">sunset</span></span>
|
||||
<span class="key">offset</span>: <span class="string"><span class="delimiter">"</span><span class="content">-01:00:00</span><span class="delimiter">"</span></span>
|
||||
<span class="key">condition</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">state</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">group.all_devices</span></span>
|
||||
<span class="key">state</span>: <span class="string"><span class="content">home</span></span>
|
||||
<span class="key">action</span>:
|
||||
<span class="key">service</span>: <span class="string"><span class="content">light.turn_on</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">group.living_room</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>Christmas is coming along and you decide to buy a remote switch to control the Christmas lights from Home Assistant. You can’t claim to live in the house of the future if you’re still manually turning on your Christmas lights!</p>
|
||||
|
||||
<p>We hook the switch up to Home Assistant and grab the entity ID0 from the developer tools: <code>switch.christmas_lights</code>. We will update the group to include the switch and will change our action. We are no longer able to call <code>light.turn_on</code> because we also want to turn on a switch. This is where <code>homeassistant.turn_on</code> comes to the rescue. This service is capable of turning any entity on.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="comment"># Example configuration.yaml entry</span>
|
||||
<span class="key">group</span>:
|
||||
<span class="key">living_room</span>:
|
||||
- <span class="string"><span class="content">light.table_lamp</span></span>
|
||||
- <span class="string"><span class="content">light.ceiling</span></span>
|
||||
- <span class="string"><span class="content">switch.christmas_lights</span></span>
|
||||
|
||||
<span class="key">automation</span>:
|
||||
<span class="key">alias</span>: <span class="string"><span class="content">Turn on light when sun sets</span></span>
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">sun</span></span>
|
||||
<span class="key">event</span>: <span class="string"><span class="content">sunset</span></span>
|
||||
<span class="key">offset</span>: <span class="string"><span class="delimiter">"</span><span class="content">-01:00:00</span><span class="delimiter">"</span></span>
|
||||
<span class="key">condition</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">state</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">group.all_devices</span></span>
|
||||
<span class="key">state</span>: <span class="string"><span class="content">home</span></span>
|
||||
<span class="key">action</span>:
|
||||
<span class="key">service</span>: <span class="string"><span class="content">homeassistant.turn_on</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">group.living_room</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">
|
||||
<div class="grid">
|
||||
|
||||
|
||||
<section class="aside-module grid__item one-whole lap-one-half">
|
||||
<div class='edit-github'><a href='https://github.com/home-assistant/home-assistant.io/tree/master/source/getting-started/automation-create-first.markdown'>Edit this page on GitHub</a></div>
|
||||
<div class='section'>
|
||||
<h1 class="title delta">Getting Started Guide</h1>
|
||||
<ul class='divided sidebar-menu'>
|
||||
<li>
|
||||
<a href='/getting-started/'>Installation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/installation-raspberry-pi/'>Raspberry Pi </a></li>
|
||||
<li><a href='/getting-started/installation-docker/'>Docker </a></li>
|
||||
<li><a href='/getting-started/installation-synology/'>Synology NAS </a></li>
|
||||
<li><a href='/getting-started/installation-virtualenv/'>VirtualEnv Linux Instructions </a></li>
|
||||
<li><a href='/getting-started/troubleshooting/'>Troubleshooting </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
Configuration
|
||||
<ul>
|
||||
<li><a href='/getting-started/configuration/'>Configuration.yaml </a></li>
|
||||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a class='active' href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/autostart-systemd/'>Linux - SystemD </a></li>
|
||||
<li><a href='/getting-started/autostart-upstart/'>Linux - Upstart </a></li>
|
||||
<li><a href='/getting-started/autostart-macos/'>macOS </a></li>
|
||||
<li><a href='/getting-started/autostart-synology/'>Synology NAS </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href='/topics/'>Advanced Topics</a></li>
|
||||
<li><a href='/getting-started/android/'>Add to Android Homescreen </a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<div class="grid-wrapper">
|
||||
<div class="grid">
|
||||
<div class="grid__item">
|
||||
<div class="copyright">
|
||||
<a rel="me" href='https://twitter.com/home_assistant'><i class="icon-twitter"></i></a>
|
||||
<a rel="me" href='https://github.com/home-assistant/home-assistant'><i class="icon-github"></i></a>
|
||||
|
||||
<div class="credit">
|
||||
Website powered by <a href='http://jekyllrb.com/'>Jekyll</a> and the <a href='https://github.com/coogie/oscailte'>Oscalite theme</a>.<br />
|
||||
Hosted by <a href='https://pages.github.com/'>GitHub</a> and served by <a href='https://cloudflare.com'>CloudFlare</a>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
var _gaq=[['_setAccount','UA-57927901-1'],['_trackPageview']];
|
||||
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
||||
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
|
||||
s.parentNode.insertBefore(g,s)}(document,'script'));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
239
getting-started/automation-examples/index.html
Normal file
239
getting-started/automation-examples/index.html
Normal file
|
@ -0,0 +1,239 @@
|
|||
<!doctype html>
|
||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
||||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
||||
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<title>Automation Examples - Home Assistant</title>
|
||||
<meta name="author" content="Paulus Schoutsen">
|
||||
<meta name="description" content="Some automation examples to get you started.">
|
||||
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="canonical" href="https://home-assistant.io/getting-started/automation-examples/">
|
||||
|
||||
<meta property="fb:app_id" content="338291289691179">
|
||||
<meta property="og:title" content="Automation Examples">
|
||||
<meta property="og:site_name" content="Home Assistant">
|
||||
<meta property="og:url" content="https://home-assistant.io/getting-started/automation-examples/">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:description" content="Some automation examples to get you started.">
|
||||
<meta property="og:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
|
||||
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:site" content="@home_assistant">
|
||||
|
||||
<meta name="twitter:title" content="Automation Examples">
|
||||
<meta name="twitter:description" content="Some automation examples to get you started.">
|
||||
<meta name="twitter:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
|
||||
|
||||
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet">
|
||||
<link href="/atom.xml" rel="alternate" title="Home Assistant" type="application/atom+xml">
|
||||
<link rel='shortcut icon' href='/images/favicon.ico' />
|
||||
<link rel='icon' type='image/png' href='/images/favicon-192x192.png' sizes='192x192' />
|
||||
</head>
|
||||
|
||||
<body >
|
||||
|
||||
<header>
|
||||
<div class="grid-wrapper">
|
||||
<div class="grid">
|
||||
|
||||
<div class="grid__item three-tenths lap-two-sixths palm-one-whole ha-title">
|
||||
<a href="/" class="site-title">
|
||||
<img width='40' src='/demo/favicon-192x192.png'>
|
||||
<span>Home Assistant</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="grid__item seven-tenths lap-four-sixths palm-one-whole">
|
||||
<nav>
|
||||
<input type="checkbox" id="toggle">
|
||||
<label for="toggle" class="toggle" data-open="Main Menu" data-close="Close Menu"></label>
|
||||
<ul class="menu pull-right">
|
||||
|
||||
<li><a href='/getting-started/'>Getting started</a></li>
|
||||
<li><a href='/components/'>Components</a></li>
|
||||
<li><a href='/cookbook/'>Examples</a></li>
|
||||
<li><a href="/developers/">Developers</a></li>
|
||||
<li><a href="/blog/">Blog</a></li>
|
||||
<li><a href="/help/">Need help?</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
<div class="grid-wrapper">
|
||||
<div class="grid grid-center">
|
||||
|
||||
<div class="grid__item two-thirds lap-one-whole palm-one-whole">
|
||||
|
||||
|
||||
<article class="page">
|
||||
|
||||
|
||||
|
||||
|
||||
<header>
|
||||
<h1 class="title indent">
|
||||
Automation Examples
|
||||
</h1>
|
||||
</header>
|
||||
<hr class="divider">
|
||||
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="comment"># Example of entry in configuration.yaml</span>
|
||||
<span class="key">automation</span>:
|
||||
<span class="comment"># Turns on lights 1 hour before sunset if people are home</span>
|
||||
<span class="comment"># and if people get home between 16:00-23:00</span>
|
||||
- <span class="string"><span class="content">alias: 'Rule 1 Light on in the evening'</span></span>
|
||||
<span class="key">trigger</span>:
|
||||
<span class="comment"># Prefix the first line of each trigger configuration</span>
|
||||
<span class="comment"># with a '-' to enter multiple</span>
|
||||
- <span class="string"><span class="content">platform: sun</span></span>
|
||||
<span class="key">event</span>: <span class="string"><span class="content">sunset</span></span>
|
||||
<span class="key">offset</span>: <span class="string"><span class="content">'-01:00:00'</span></span>
|
||||
- <span class="string"><span class="content">platform: state</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">group.all_devices</span></span>
|
||||
<span class="key">state</span>: <span class="string"><span class="content">'home'</span></span>
|
||||
<span class="key">condition</span>:
|
||||
<span class="comment"># Prefix the first line of each condition configuration</span>
|
||||
<span class="comment"># with a '-'' to enter multiple</span>
|
||||
- <span class="string"><span class="content">platform: state</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">group.all_devices</span></span>
|
||||
<span class="key">state</span>: <span class="string"><span class="content">'home'</span></span>
|
||||
- <span class="string"><span class="content">platform: time</span></span>
|
||||
<span class="key">after</span>: <span class="string"><span class="content">'16:00:00'</span></span>
|
||||
<span class="key">before</span>: <span class="string"><span class="content">'23:00:00'</span></span>
|
||||
<span class="key">action</span>:
|
||||
<span class="key">service</span>: <span class="string"><span class="content">homeassistant.turn_on</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">group.living_room</span></span>
|
||||
|
||||
<span class="comment"># Turn off lights when everybody leaves the house</span>
|
||||
- <span class="string"><span class="content">alias: 'Rule 2 - Away Mode'</span></span>
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">state</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">group.all_devices</span></span>
|
||||
<span class="key">state</span>: <span class="string"><span class="content">'not_home'</span></span>
|
||||
<span class="key">action</span>:
|
||||
<span class="key">service</span>: <span class="string"><span class="content">light.turn_off</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">group.all_lights</span></span>
|
||||
|
||||
<span class="comment"># Notify when Paulus leaves the house in the evening</span>
|
||||
- <span class="string"><span class="content">alias: 'Leave Home notification'</span></span>
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">zone</span></span>
|
||||
<span class="key">event</span>: <span class="string"><span class="content">leave</span></span>
|
||||
<span class="key">zone</span>: <span class="string"><span class="content">zone.home</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">device_tracker.paulus</span></span>
|
||||
<span class="key">condition</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">time</span></span>
|
||||
<span class="key">after</span>: <span class="string"><span class="content">'20:00'</span></span>
|
||||
<span class="key">action</span>:
|
||||
<span class="key">service</span>: <span class="string"><span class="content">notify.notify</span></span>
|
||||
<span class="key">data</span>:
|
||||
<span class="key">message</span>: <span class="string"><span class="content">'Paulus left the house'</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">
|
||||
<div class="grid">
|
||||
|
||||
|
||||
<section class="aside-module grid__item one-whole lap-one-half">
|
||||
<div class='edit-github'><a href='https://github.com/home-assistant/home-assistant.io/tree/master/source/getting-started/automation-examples.markdown'>Edit this page on GitHub</a></div>
|
||||
<div class='section'>
|
||||
<h1 class="title delta">Getting Started Guide</h1>
|
||||
<ul class='divided sidebar-menu'>
|
||||
<li>
|
||||
<a href='/getting-started/'>Installation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/installation-raspberry-pi/'>Raspberry Pi </a></li>
|
||||
<li><a href='/getting-started/installation-docker/'>Docker </a></li>
|
||||
<li><a href='/getting-started/installation-synology/'>Synology NAS </a></li>
|
||||
<li><a href='/getting-started/installation-virtualenv/'>VirtualEnv Linux Instructions </a></li>
|
||||
<li><a href='/getting-started/troubleshooting/'>Troubleshooting </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
Configuration
|
||||
<ul>
|
||||
<li><a href='/getting-started/configuration/'>Configuration.yaml </a></li>
|
||||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/autostart-systemd/'>Linux - SystemD </a></li>
|
||||
<li><a href='/getting-started/autostart-upstart/'>Linux - Upstart </a></li>
|
||||
<li><a href='/getting-started/autostart-macos/'>macOS </a></li>
|
||||
<li><a href='/getting-started/autostart-synology/'>Synology NAS </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href='/topics/'>Advanced Topics</a></li>
|
||||
<li><a href='/getting-started/android/'>Add to Android Homescreen </a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<div class="grid-wrapper">
|
||||
<div class="grid">
|
||||
<div class="grid__item">
|
||||
<div class="copyright">
|
||||
<a rel="me" href='https://twitter.com/home_assistant'><i class="icon-twitter"></i></a>
|
||||
<a rel="me" href='https://github.com/home-assistant/home-assistant'><i class="icon-github"></i></a>
|
||||
|
||||
<div class="credit">
|
||||
Website powered by <a href='http://jekyllrb.com/'>Jekyll</a> and the <a href='https://github.com/coogie/oscailte'>Oscalite theme</a>.<br />
|
||||
Hosted by <a href='https://pages.github.com/'>GitHub</a> and served by <a href='https://cloudflare.com'>CloudFlare</a>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
var _gaq=[['_setAccount','UA-57927901-1'],['_trackPageview']];
|
||||
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
||||
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
|
||||
s.parentNode.insertBefore(g,s)}(document,'script'));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
329
getting-started/automation-trigger/index.html
Normal file
329
getting-started/automation-trigger/index.html
Normal file
|
@ -0,0 +1,329 @@
|
|||
<!doctype html>
|
||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
||||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
||||
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<title>Automation Trigger - Home Assistant</title>
|
||||
<meta name="author" content="Paulus Schoutsen">
|
||||
<meta name="description" content="All the different ways how automations can be triggered.">
|
||||
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="canonical" href="https://home-assistant.io/getting-started/automation-trigger/">
|
||||
|
||||
<meta property="fb:app_id" content="338291289691179">
|
||||
<meta property="og:title" content="Automation Trigger">
|
||||
<meta property="og:site_name" content="Home Assistant">
|
||||
<meta property="og:url" content="https://home-assistant.io/getting-started/automation-trigger/">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:description" content="All the different ways how automations can be triggered.">
|
||||
<meta property="og:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
|
||||
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:site" content="@home_assistant">
|
||||
|
||||
<meta name="twitter:title" content="Automation Trigger">
|
||||
<meta name="twitter:description" content="All the different ways how automations can be triggered.">
|
||||
<meta name="twitter:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
|
||||
|
||||
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet">
|
||||
<link href="/atom.xml" rel="alternate" title="Home Assistant" type="application/atom+xml">
|
||||
<link rel='shortcut icon' href='/images/favicon.ico' />
|
||||
<link rel='icon' type='image/png' href='/images/favicon-192x192.png' sizes='192x192' />
|
||||
</head>
|
||||
|
||||
<body >
|
||||
|
||||
<header>
|
||||
<div class="grid-wrapper">
|
||||
<div class="grid">
|
||||
|
||||
<div class="grid__item three-tenths lap-two-sixths palm-one-whole ha-title">
|
||||
<a href="/" class="site-title">
|
||||
<img width='40' src='/demo/favicon-192x192.png'>
|
||||
<span>Home Assistant</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="grid__item seven-tenths lap-four-sixths palm-one-whole">
|
||||
<nav>
|
||||
<input type="checkbox" id="toggle">
|
||||
<label for="toggle" class="toggle" data-open="Main Menu" data-close="Close Menu"></label>
|
||||
<ul class="menu pull-right">
|
||||
|
||||
<li><a href='/getting-started/'>Getting started</a></li>
|
||||
<li><a href='/components/'>Components</a></li>
|
||||
<li><a href='/cookbook/'>Examples</a></li>
|
||||
<li><a href="/developers/">Developers</a></li>
|
||||
<li><a href="/blog/">Blog</a></li>
|
||||
<li><a href="/help/">Need help?</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
<div class="grid-wrapper">
|
||||
<div class="grid grid-center">
|
||||
|
||||
<div class="grid__item two-thirds lap-one-whole palm-one-whole">
|
||||
|
||||
|
||||
<article class="page">
|
||||
|
||||
|
||||
|
||||
|
||||
<header>
|
||||
<h1 class="title indent">
|
||||
Automation Trigger
|
||||
</h1>
|
||||
</header>
|
||||
<hr class="divider">
|
||||
|
||||
|
||||
<p>Triggers are what starts the processing of an automation rule. It is possible to specify multiple triggers for the same rule. Once a trigger starts, Home Assistant will validate the conditions, if any, and call the action.</p>
|
||||
|
||||
<h4><a class="title-link" name="event-trigger" href="#event-trigger"></a> Event trigger</h4>
|
||||
<p>Triggers when an event is being processed. Events are the raw building blocks of Home Assistant. You can match events on just the event name or also require specific event data to be present.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">event</span></span>
|
||||
<span class="key">event_type</span>: <span class="string"><span class="content">MY_CUSTOM_EVENT</span></span>
|
||||
<span class="comment"># optional</span>
|
||||
<span class="key">event_data</span>:
|
||||
<span class="key">mood</span>: <span class="string"><span class="content">happy</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="mqtt-trigger" href="#mqtt-trigger"></a> MQTT trigger</h4>
|
||||
<p>Triggers when a specific message is received on given topic. Optionally can match on the payload being sent over the topic.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">mqtt</span></span>
|
||||
<span class="key">topic</span>: <span class="string"><span class="content">living_room/switch/ac</span></span>
|
||||
<span class="comment"># Optional</span>
|
||||
<span class="key">payload</span>: <span class="string"><span class="content">'on'</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="numeric-state-trigger" href="#numeric-state-trigger"></a> Numeric state trigger</h4>
|
||||
<p>On state change of a specified entity, attempts to parse the state as a number and triggers if value is above and/or below a threshold.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">numeric_state</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">sensor.temperature</span></span>
|
||||
<span class="comment"># Optional</span>
|
||||
<span class="key">value_template</span>: <span class="string"><span class="content">'{{ state.attributes.battery }}'</span></span>
|
||||
<span class="comment"># At least one of the following required</span>
|
||||
<span class="key">above</span>: <span class="string"><span class="content">17</span></span>
|
||||
<span class="key">below</span>: <span class="string"><span class="content">25</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="state-trigger" href="#state-trigger"></a> State trigger</h4>
|
||||
|
||||
<p>Triggers when the state of an entity changes. If only entity_id given will match all state changes.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">state</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">device_tracker.paulus</span></span>
|
||||
<span class="comment"># Optional</span>
|
||||
<span class="key">from</span>: <span class="string"><span class="content">'not_home'</span></span>
|
||||
<span class="key">to</span>: <span class="string"><span class="content">'home'</span></span>
|
||||
<span class="comment"># If given, will trigger when state has been the to state for X time.</span>
|
||||
<span class="key">for</span>:
|
||||
<span class="key">hours</span>: <span class="string"><span class="content">1</span></span>
|
||||
<span class="key">minutes</span>: <span class="string"><span class="content">10</span></span>
|
||||
<span class="key">seconds</span>: <span class="string"><span class="content">5</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="note warning">
|
||||
Use quotes around your values for <code>from</code> and <code>to</code> to avoid the YAML parser interpreting values as booleans.
|
||||
</p>
|
||||
|
||||
<h4><a class="title-link" name="sun-trigger" href="#sun-trigger"></a> Sun trigger</h4>
|
||||
<p>Trigger when the sun is setting or rising. An optional time offset can be given to have it trigger for example 45 minutes before sunset, when dusk is setting in.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">sun</span></span>
|
||||
<span class="comment"># Possible values: sunset, sunrise</span>
|
||||
<span class="key">event</span>: <span class="string"><span class="content">sunset</span></span>
|
||||
<span class="comment"># Optional time offset. This example is 45 minutes.</span>
|
||||
<span class="key">offset</span>: <span class="string"><span class="content">'-00:45:00'</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="template-trigger" href="#template-trigger"></a> Template trigger</h4>
|
||||
|
||||
<p>Template triggers work by evaluating a [template] on each state change. The trigger will fire if the state change caused the template to render ‘true’. This is achieved by having the template result in a true boolean expression (<code>{{ is_state('device_tracker.paulus', 'home') }}</code>) or by having the template render ‘true’ (example below).</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">template</span></span>
|
||||
<span class="key">value_template</span>: <span class="string"><span class="content">'{% if is_state('device_tracker.paulus', 'home') %}true{% endif %}'</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="time-trigger" href="#time-trigger"></a> Time trigger</h4>
|
||||
|
||||
<p>Time can be triggered in many ways. The most common is to specify <code>after</code> and trigger at a specific point in time each day. Alternatively, you can also match if the hour, minute or second of the current time has a specific value. You can prefix the value with a <code>/</code> to match whenever the value is divisible by that number. You cannot use <code>after</code> together with hour, minute or second.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">time</span></span>
|
||||
<span class="comment"># Matches every hour at 5 minutes past whole</span>
|
||||
<span class="key">minutes</span>: <span class="string"><span class="content">5</span></span>
|
||||
<span class="key">seconds</span>: <span class="string"><span class="content">0</span></span>
|
||||
|
||||
<span class="key">automation 2</span>:
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">time</span></span>
|
||||
<span class="comment"># When 'after' is used, you cannot also match on hour, minute, seconds.</span>
|
||||
<span class="comment"># Military time format.</span>
|
||||
<span class="key">after</span>: <span class="string"><span class="content">'15:32:00'</span></span>
|
||||
|
||||
<span class="key">automation 3</span>:
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">time</span></span>
|
||||
<span class="comment"># You can also match on interval. This will match every 5 minutes</span>
|
||||
<span class="key">minutes</span>: <span class="string"><span class="content">'/5'</span></span>
|
||||
<span class="key">seconds</span>: <span class="string"><span class="content">0</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a class="title-link" name="zone-trigger" href="#zone-trigger"></a> Zone trigger</h4>
|
||||
|
||||
<p>Zone triggers can trigger when an entity is entering or leaving the zone. For zone automation to work, you need to have setup a device tracker platform that supports reporting GPS coordinates. Currently this is limited to the <a href="/components/device_tracker.owntracks/">OwnTracks platform</a> as well as the <a href="/components/device_tracker.icloud/">iCloud platform</a>.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="key">automation</span>:
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">zone</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">device_tracker.paulus</span></span>
|
||||
<span class="key">zone</span>: <span class="string"><span class="content">zone.home</span></span>
|
||||
<span class="comment"># Event is either enter or leave</span>
|
||||
<span class="key">event</span>: <span class="string"><span class="content">enter</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">
|
||||
<div class="grid">
|
||||
|
||||
|
||||
<section class="aside-module grid__item one-whole lap-one-half">
|
||||
<div class='edit-github'><a href='https://github.com/home-assistant/home-assistant.io/tree/master/source/getting-started/automation-trigger.markdown'>Edit this page on GitHub</a></div>
|
||||
<div class='section'>
|
||||
<h1 class="title delta">Getting Started Guide</h1>
|
||||
<ul class='divided sidebar-menu'>
|
||||
<li>
|
||||
<a href='/getting-started/'>Installation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/installation-raspberry-pi/'>Raspberry Pi </a></li>
|
||||
<li><a href='/getting-started/installation-docker/'>Docker </a></li>
|
||||
<li><a href='/getting-started/installation-synology/'>Synology NAS </a></li>
|
||||
<li><a href='/getting-started/installation-virtualenv/'>VirtualEnv Linux Instructions </a></li>
|
||||
<li><a href='/getting-started/troubleshooting/'>Troubleshooting </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
Configuration
|
||||
<ul>
|
||||
<li><a href='/getting-started/configuration/'>Configuration.yaml </a></li>
|
||||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a class='active' href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/autostart-systemd/'>Linux - SystemD </a></li>
|
||||
<li><a href='/getting-started/autostart-upstart/'>Linux - Upstart </a></li>
|
||||
<li><a href='/getting-started/autostart-macos/'>macOS </a></li>
|
||||
<li><a href='/getting-started/autostart-synology/'>Synology NAS </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href='/topics/'>Advanced Topics</a></li>
|
||||
<li><a href='/getting-started/android/'>Add to Android Homescreen </a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<div class="grid-wrapper">
|
||||
<div class="grid">
|
||||
<div class="grid__item">
|
||||
<div class="copyright">
|
||||
<a rel="me" href='https://twitter.com/home_assistant'><i class="icon-twitter"></i></a>
|
||||
<a rel="me" href='https://github.com/home-assistant/home-assistant'><i class="icon-github"></i></a>
|
||||
|
||||
<div class="credit">
|
||||
Website powered by <a href='http://jekyllrb.com/'>Jekyll</a> and the <a href='https://github.com/coogie/oscailte'>Oscalite theme</a>.<br />
|
||||
Hosted by <a href='https://pages.github.com/'>GitHub</a> and served by <a href='https://cloudflare.com'>CloudFlare</a>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
var _gaq=[['_setAccount','UA-57927901-1'],['_trackPageview']];
|
||||
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
||||
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
|
||||
s.parentNode.insertBefore(g,s)}(document,'script'));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
199
getting-started/automation-troubleshooting/index.html
Normal file
199
getting-started/automation-troubleshooting/index.html
Normal file
|
@ -0,0 +1,199 @@
|
|||
<!doctype html>
|
||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
||||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
||||
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<title>Troubleshooting Automations - Home Assistant</title>
|
||||
<meta name="author" content="Paulus Schoutsen">
|
||||
<meta name="description" content="Tips on how to troubleshoot your automations.">
|
||||
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="canonical" href="https://home-assistant.io/getting-started/automation-troubleshooting/">
|
||||
|
||||
<meta property="fb:app_id" content="338291289691179">
|
||||
<meta property="og:title" content="Troubleshooting Automations">
|
||||
<meta property="og:site_name" content="Home Assistant">
|
||||
<meta property="og:url" content="https://home-assistant.io/getting-started/automation-troubleshooting/">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:description" content="Tips on how to troubleshoot your automations.">
|
||||
<meta property="og:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
|
||||
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:site" content="@home_assistant">
|
||||
|
||||
<meta name="twitter:title" content="Troubleshooting Automations">
|
||||
<meta name="twitter:description" content="Tips on how to troubleshoot your automations.">
|
||||
<meta name="twitter:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
|
||||
|
||||
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet">
|
||||
<link href="/atom.xml" rel="alternate" title="Home Assistant" type="application/atom+xml">
|
||||
<link rel='shortcut icon' href='/images/favicon.ico' />
|
||||
<link rel='icon' type='image/png' href='/images/favicon-192x192.png' sizes='192x192' />
|
||||
</head>
|
||||
|
||||
<body >
|
||||
|
||||
<header>
|
||||
<div class="grid-wrapper">
|
||||
<div class="grid">
|
||||
|
||||
<div class="grid__item three-tenths lap-two-sixths palm-one-whole ha-title">
|
||||
<a href="/" class="site-title">
|
||||
<img width='40' src='/demo/favicon-192x192.png'>
|
||||
<span>Home Assistant</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="grid__item seven-tenths lap-four-sixths palm-one-whole">
|
||||
<nav>
|
||||
<input type="checkbox" id="toggle">
|
||||
<label for="toggle" class="toggle" data-open="Main Menu" data-close="Close Menu"></label>
|
||||
<ul class="menu pull-right">
|
||||
|
||||
<li><a href='/getting-started/'>Getting started</a></li>
|
||||
<li><a href='/components/'>Components</a></li>
|
||||
<li><a href='/cookbook/'>Examples</a></li>
|
||||
<li><a href="/developers/">Developers</a></li>
|
||||
<li><a href="/blog/">Blog</a></li>
|
||||
<li><a href="/help/">Need help?</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
<div class="grid-wrapper">
|
||||
<div class="grid grid-center">
|
||||
|
||||
<div class="grid__item two-thirds lap-one-whole palm-one-whole">
|
||||
|
||||
|
||||
<article class="page">
|
||||
|
||||
|
||||
|
||||
|
||||
<header>
|
||||
<h1 class="title indent">
|
||||
Troubleshooting Automations
|
||||
</h1>
|
||||
</header>
|
||||
<hr class="divider">
|
||||
|
||||
|
||||
<p>You can verify that your automation rules are being initialized correctly by watching both the realtime logs (<code>homeassistant.log</code> in the configuration directory) and also the <a href="/components/logbook/">Logbook</a>. The realtime logs will show the rules being initialized (once for each trigger), example:</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre>INFO [homeassistant.components.automation] Initialized rule Rainy Day
|
||||
INFO [homeassistant.components.automation] Initialized rule Rainy Day
|
||||
INFO [homeassistant.components.automation] Initialized rule Rainy Day
|
||||
INFO [homeassistant.components.automation] Initialized rule Rain is over
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>The Logbook component will show a line entry when an automation is triggered. You can look at the previous entry to determine which trigger in the rule triggered the event.</p>
|
||||
|
||||
<p><img src="/images/components/automation/logbook.png" alt="Logbook example" /></p>
|
||||
|
||||
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">
|
||||
<div class="grid">
|
||||
|
||||
|
||||
<section class="aside-module grid__item one-whole lap-one-half">
|
||||
<div class='edit-github'><a href='https://github.com/home-assistant/home-assistant.io/tree/master/source/getting-started/automation-troubleshooting.markdown'>Edit this page on GitHub</a></div>
|
||||
<div class='section'>
|
||||
<h1 class="title delta">Getting Started Guide</h1>
|
||||
<ul class='divided sidebar-menu'>
|
||||
<li>
|
||||
<a href='/getting-started/'>Installation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/installation-raspberry-pi/'>Raspberry Pi </a></li>
|
||||
<li><a href='/getting-started/installation-docker/'>Docker </a></li>
|
||||
<li><a href='/getting-started/installation-synology/'>Synology NAS </a></li>
|
||||
<li><a href='/getting-started/installation-virtualenv/'>VirtualEnv Linux Instructions </a></li>
|
||||
<li><a href='/getting-started/troubleshooting/'>Troubleshooting </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
Configuration
|
||||
<ul>
|
||||
<li><a href='/getting-started/configuration/'>Configuration.yaml </a></li>
|
||||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/autostart-systemd/'>Linux - SystemD </a></li>
|
||||
<li><a href='/getting-started/autostart-upstart/'>Linux - Upstart </a></li>
|
||||
<li><a href='/getting-started/autostart-macos/'>macOS </a></li>
|
||||
<li><a href='/getting-started/autostart-synology/'>Synology NAS </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href='/topics/'>Advanced Topics</a></li>
|
||||
<li><a href='/getting-started/android/'>Add to Android Homescreen </a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<div class="grid-wrapper">
|
||||
<div class="grid">
|
||||
<div class="grid__item">
|
||||
<div class="copyright">
|
||||
<a rel="me" href='https://twitter.com/home_assistant'><i class="icon-twitter"></i></a>
|
||||
<a rel="me" href='https://github.com/home-assistant/home-assistant'><i class="icon-github"></i></a>
|
||||
|
||||
<div class="credit">
|
||||
Website powered by <a href='http://jekyllrb.com/'>Jekyll</a> and the <a href='https://github.com/coogie/oscailte'>Oscalite theme</a>.<br />
|
||||
Hosted by <a href='https://pages.github.com/'>GitHub</a> and served by <a href='https://cloudflare.com'>CloudFlare</a>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
var _gaq=[['_setAccount','UA-57927901-1'],['_trackPageview']];
|
||||
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
||||
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
|
||||
s.parentNode.insertBefore(g,s)}(document,'script'));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -89,7 +89,7 @@
|
|||
<hr class="divider">
|
||||
|
||||
|
||||
<p>When all your devices are set up it’s time to put the cherry on the pie: automation. Home Assistant offers <a href="/components/#automation">a few built-in automations</a> but mainly you’ll be using <a href="/components/automation/">the automation component</a> to set up your own rules.</p>
|
||||
<p>When all your devices are set up it’s time to put the cherry on the pie: automation. Home Assistant offers <a href="/components/#automation">a few built-in automations</a> but mainly you’ll be using the automation component to set up your own rules.</p>
|
||||
|
||||
<h3><a class="title-link" name="the-basics-of-automation" href="#the-basics-of-automation"></a> The basics of automation</h3>
|
||||
|
||||
|
@ -138,113 +138,13 @@
|
|||
|
||||
<p>A service can be called to have Home Assistant perform an action. Turn on a light, run a script or enable a scene. Each service has a domain and a name. For example the service <code>light.turn_on</code> is capable of turning on any light device in your system. Services can be passed parameters to for example tell which device to turn on or what color to use.</p>
|
||||
|
||||
<h2><a class="title-link" name="creating-your-first-automation-rule" href="#creating-your-first-automation-rule"></a> Creating your first automation rule</h2>
|
||||
|
||||
<p>Before we dive deeper into what every piece of automation <em>can</em> do, let’s look at a simple automation rule: <strong>Turn on the lights when the sun sets</strong></p>
|
||||
|
||||
<p>In this example, we are defining a trigger to track the sunset and tell it to fire when the sun is setting. When this event is triggered, the service <code>light.turn_on</code> is called without any parameters. Because we specify no parameters, it will turn on all the lights.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="comment"># Example configuration.yaml entry</span>
|
||||
<span class="key">automation</span>:
|
||||
<span class="key">alias</span>: <span class="string"><span class="content">Turn on light when sun sets</span></span>
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">sun</span></span>
|
||||
<span class="key">event</span>: <span class="string"><span class="content">sunset</span></span>
|
||||
<span class="key">action</span>:
|
||||
<span class="key">service</span>: <span class="string"><span class="content">light.turn_on</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>After a few days of running this automation rule you come to realize that this automation rule is not good enough. It was already dark when the lights went on and the one day you weren’t home, the lights turned on anyway. Time for some tweaking. Let’s add an offset to the sunset trigger and a condition to only turn on the lights if anyone is home.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="comment"># Example configuration.yaml entry</span>
|
||||
<span class="key">automation</span>:
|
||||
<span class="key">alias</span>: <span class="string"><span class="content">Turn on light when sun sets</span></span>
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">sun</span></span>
|
||||
<span class="key">event</span>: <span class="string"><span class="content">sunset</span></span>
|
||||
<span class="key">offset</span>: <span class="string"><span class="delimiter">"</span><span class="content">-01:00:00</span><span class="delimiter">"</span></span>
|
||||
<span class="key">condition</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">state</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">group.all_devices</span></span>
|
||||
<span class="key">state</span>: <span class="string"><span class="content">home</span></span>
|
||||
<span class="key">action</span>:
|
||||
<span class="key">service</span>: <span class="string"><span class="content">light.turn_on</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>Now you’re happy and all is good. You start to like this automation business and buy some more lights, this time you put them in the bedroom. But what you now realize is that when the sun is setting, the lights in the bedroom are also being turned on! Time to tweak the automation to only turn on the living room lights.</p>
|
||||
|
||||
<p>The first thing you do is to look at the entities in the developer tools (second icon) in the app. You see the names of your lights and you write them down: <code>light.table_lamp</code>, <code>light.bedroom</code>, <code>light.ceiling</code>.</p>
|
||||
|
||||
<p>Instead of hard coding the entity IDs of the lights in the automation rule, we will set up a group. This will allow us to see the living room separate in the app and be able to address it from automation rules.</p>
|
||||
|
||||
<p>So we tweak the config to add the group and have the automation rule only turn on the group.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="comment"># Example configuration.yaml entry</span>
|
||||
<span class="key">group</span>:
|
||||
<span class="key">living_room</span>:
|
||||
- <span class="string"><span class="content">light.table_lamp</span></span>
|
||||
- <span class="string"><span class="content">light.ceiling</span></span>
|
||||
|
||||
<span class="key">automation</span>:
|
||||
<span class="key">alias</span>: <span class="string"><span class="content">Turn on light when sun sets</span></span>
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">sun</span></span>
|
||||
<span class="key">event</span>: <span class="string"><span class="content">sunset</span></span>
|
||||
<span class="key">offset</span>: <span class="string"><span class="delimiter">"</span><span class="content">-01:00:00</span><span class="delimiter">"</span></span>
|
||||
<span class="key">condition</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">state</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">group.all_devices</span></span>
|
||||
<span class="key">state</span>: <span class="string"><span class="content">home</span></span>
|
||||
<span class="key">action</span>:
|
||||
<span class="key">service</span>: <span class="string"><span class="content">light.turn_on</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">group.living_room</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>Christmas is coming along and you decide to buy a remote switch to control the Christmas lights from Home Assistant. You can’t claim to live in the house of the future if you’re still manually turning on your Christmas lights!</p>
|
||||
|
||||
<p>We hook the switch up to Home Assistant and grab the entity ID0 from the developer tools: <code>switch.christmas_lights</code>. We will update the group to include the switch and will change our action. We are no longer able to call <code>light.turn_on</code> because we also want to turn on a switch. This is where <code>homeassistant.turn_on</code> comes to the rescue. This service is capable of turning any entity on.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="comment"># Example configuration.yaml entry</span>
|
||||
<span class="key">group</span>:
|
||||
<span class="key">living_room</span>:
|
||||
- <span class="string"><span class="content">light.table_lamp</span></span>
|
||||
- <span class="string"><span class="content">light.ceiling</span></span>
|
||||
- <span class="string"><span class="content">switch.christmas_lights</span></span>
|
||||
|
||||
<span class="key">automation</span>:
|
||||
<span class="key">alias</span>: <span class="string"><span class="content">Turn on light when sun sets</span></span>
|
||||
<span class="key">trigger</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">sun</span></span>
|
||||
<span class="key">event</span>: <span class="string"><span class="content">sunset</span></span>
|
||||
<span class="key">offset</span>: <span class="string"><span class="delimiter">"</span><span class="content">-01:00:00</span><span class="delimiter">"</span></span>
|
||||
<span class="key">condition</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">state</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">group.all_devices</span></span>
|
||||
<span class="key">state</span>: <span class="string"><span class="content">home</span></span>
|
||||
<span class="key">action</span>:
|
||||
<span class="key">service</span>: <span class="string"><span class="content">homeassistant.turn_on</span></span>
|
||||
<span class="key">entity_id</span>: <span class="string"><span class="content">group.living_room</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3><a class="title-link" name="further-reading" href="#further-reading"></a> Further reading</h3>
|
||||
|
||||
<p>We went over the basics of creating a home automation rule. Now, go automate!</p>
|
||||
|
||||
<ul>
|
||||
<li>Learn about the available <a href="/components/automation/#triggers">automation triggers</a></li>
|
||||
<li>Learn about the available <a href="/components/automation/#conditions">automation conditions</a></li>
|
||||
<li>Learn about the available <a href="/getting-started/automation-trigger/">automation triggers</a></li>
|
||||
<li>Learn about the available <a href="/getting-started/automation-condition/">automation conditions</a></li>
|
||||
<li>Learn about <a href="/components/script/">scripts</a> to help you trigger multiple actions and delays</li>
|
||||
<li>Learn about <a href="/components/scene/">scenes</a> to help you set many entities at once to your liking</li>
|
||||
<li>Setup a <a href="/components/#notifications">notification platform</a> to sent yourself messages</li>
|
||||
|
@ -290,10 +190,18 @@
|
|||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a class='active' href='/getting-started/automation/'>Automation </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a class='active' href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
|
|
|
@ -146,10 +146,18 @@ Home Assistant has been uninstalled.
|
|||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/automation/'>Automation </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
|
|
|
@ -169,10 +169,18 @@ exec /bin/sh /volume1/homeassistant/hass-daemon start
|
|||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/automation/'>Automation </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
|
|
|
@ -194,10 +194,18 @@ $ sudo systemctl start home-assistant@[your user]
|
|||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/automation/'>Automation </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
|
|
|
@ -147,10 +147,18 @@ $ sudo service hass-daemon stop
|
|||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/automation/'>Automation </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
|
|
|
@ -131,10 +131,18 @@
|
|||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/automation/'>Automation </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a class='active' href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
|
|
|
@ -244,10 +244,18 @@ The other properties (like name) are specified using mappings. Note that the sec
|
|||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/automation/'>Automation </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
|
|
|
@ -156,10 +156,18 @@ You may have to create the <code>www</code> directory yourself as it is not made
|
|||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a class='active' href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/automation/'>Automation </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
|
|
|
@ -192,10 +192,18 @@ Each group exists of a name and a list of entity IDs. Entity IDs can be retrieve
|
|||
<li><a class='active' href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/automation/'>Automation </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
|
|
|
@ -178,10 +178,18 @@ $ hass --open-ui
|
|||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/automation/'>Automation </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
|
|
|
@ -150,10 +150,18 @@ When using boot2docker on OS X you are unable to map the local time to your Dock
|
|||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/automation/'>Automation </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
|
|
|
@ -168,10 +168,18 @@ $ hass
|
|||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/automation/'>Automation </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
|
|
|
@ -373,10 +373,18 @@ That’s it… you’re all set to go</p>
|
|||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/automation/'>Automation </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
|
|
|
@ -268,10 +268,18 @@ sudo chown hass /srv/hass
|
|||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/automation/'>Automation </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
|
|
|
@ -121,7 +121,7 @@ OwnTracks communicates directly with your MQTT broker, no data will pass through
|
|||
|
||||
<p><img src="/images/screenshots/badges-zone.png" style="float: right; margin-left: 8px; height: 100px;" /></p>
|
||||
|
||||
<p>Home Assistant will know the location of your device if you are using OwnTracks. By <a href="/components/zone/">setting up zones</a> you will be able to add names to the locations of your devices. This way you can easily spot on the state page where the people in your house are and use it as <a href="/components/automation/#zone-trigger">triggers</a> and <a href="/components/automation/#zone-condition">conditions</a> for automation.</p>
|
||||
<p>Home Assistant will know the location of your device if you are using OwnTracks. By <a href="/components/zone/">setting up zones</a> you will be able to add names to the locations of your devices. This way you can easily spot on the state page where the people in your house are and use it as <a href="/getting-started/automation-trigger/#zone-trigger">triggers</a> and <a href="/getting-started/automation-condition/#zone-condition">conditions</a> for automation.</p>
|
||||
|
||||
<h3><a href="/getting-started/automation/">Next step: Setting up automation »</a></h3>
|
||||
|
||||
|
@ -159,10 +159,18 @@ OwnTracks communicates directly with your MQTT broker, no data will pass through
|
|||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a class='active' href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/automation/'>Automation </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
|
|
|
@ -207,10 +207,18 @@ Whenever you report an issue, be aware that we are volunteers who do not have ac
|
|||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/automation/'>Automation </a></li>
|
||||
<li><a class='active' href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
|
|
|
@ -195,10 +195,18 @@ $ iptables-save > /etc/network/iptables.rules # your rules may be saved else
|
|||
<li><a href='/getting-started/devices/'>Setting up devices </a></li>
|
||||
<li><a href='/getting-started/customizing-devices/'>Customizing devices and services </a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence Detection </a></li>
|
||||
<li><a href='/getting-started/automation/'>Automation </a></li>
|
||||
<li><a href='/getting-started/troubleshooting-configuration/'>Troubleshooting configuration.yaml </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/automation/'>Automation </a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/automation-create-first/'>Tutorial </a></li>
|
||||
<li><a href='/getting-started/automation-trigger/'>Triggers </a></li>
|
||||
<li><a href='/getting-started/automation-condition/'>Conditions </a></li>
|
||||
<li><a href='/getting-started/automation-action/'>Actions </a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/getting-started/autostart/'>Auto-start Home Assistant </a>
|
||||
<ul>
|
||||
|
|
26
sitemap.xml
26
sitemap.xml
|
@ -232,6 +232,24 @@
|
|||
<url>
|
||||
<loc>https://home-assistant.io/developers/architecture_components/</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://home-assistant.io/getting-started/automation-action/</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://home-assistant.io/getting-started/automation-condition/</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://home-assistant.io/getting-started/automation-create-first/</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://home-assistant.io/getting-started/automation-examples/</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://home-assistant.io/getting-started/automation-trigger/</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://home-assistant.io/getting-started/automation-troubleshooting/</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://home-assistant.io/getting-started/automation/</loc>
|
||||
</url>
|
||||
|
@ -1491,18 +1509,18 @@
|
|||
</url>
|
||||
<url>
|
||||
<loc>https://home-assistant.io/demo/frontend.html</loc>
|
||||
<lastmod>2016-04-23T18:30:05+00:00</lastmod>
|
||||
<lastmod>2016-04-24T07:00:59+00:00</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://home-assistant.io/demo/index.html</loc>
|
||||
<lastmod>2016-04-23T18:30:05+00:00</lastmod>
|
||||
<lastmod>2016-04-24T07:00:59+00:00</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://home-assistant.io/googlef4f3693c209fe788.html</loc>
|
||||
<lastmod>2016-04-23T18:30:05+00:00</lastmod>
|
||||
<lastmod>2016-04-24T07:00:59+00:00</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://home-assistant.io/static/mdi-demo.html</loc>
|
||||
<lastmod>2016-04-23T18:30:05+00:00</lastmod>
|
||||
<lastmod>2016-04-24T07:00:59+00:00</lastmod>
|
||||
</url>
|
||||
</urlset>
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue