mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Added initial_state instructions (#2167)
This commit is contained in:
parent
7c24c4512c
commit
1abf025881
@ -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
|
||||||
...
|
...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user