Added initial_state instructions (#2167)

This commit is contained in:
Alok Saboo 2017-02-27 17:02:00 -05:00 committed by Andrey
parent 7c24c4512c
commit 1abf025881

View File

@ -19,12 +19,13 @@ Starting with 0.28 your automation rules can be controlled with the frontend.
<img src='{{site_root}}/images/screenshots/automation-switches.png' /> <img src='{{site_root}}/images/screenshots/automation-switches.png' />
</p> </p>
This allows one to reload the automation without restarting Home Assistant itself. If you don't want to see the automation rule in your frontend use `hide_entity: True` to hide it. This allows one to reload the automation without restarting Home Assistant itself. If you don't want to see the automation rule in your frontend use `hide_entity: True` to hide it. You can also use `initial_state: 'off'` so that the automation is not automatically turned on after a Home assistant reboot.
```yaml ```yaml
automation: automation:
- alias: Door alarm - alias: Door alarm
hide_entity: True hide_entity: True
initial_state: 'off'
trigger: trigger:
- platform: state - platform: state
... ...