Add detail about hiding rules (fixes #1002)

This commit is contained in:
Fabian Affolter 2016-09-30 08:26:18 +02:00
parent 1d43a195f0
commit 4adaa72d8c
No known key found for this signature in database
GPG key ID: DDF3D6F44AAB1336
3 changed files with 18 additions and 1 deletions

View file

@ -17,6 +17,7 @@ In this example, we are defining a trigger to track the sunset and tell it to fi
# Example configuration.yaml entry
automation:
alias: Turn on light when sun sets
hide_entity: False
trigger:
platform: sun
event: sunset
@ -24,6 +25,8 @@ automation:
service: light.turn_on
```
Starting with 0.28 automation rules can be reloaded from the [frontend](/components/automation/) and are shown by default. With [`hide_entity:`](/components/automation/) you can control this behaviour. It's is very handy if you are working on your rules but when a rule is finished and you don't want to see that rule in your frontend, you can set `hide_entity:` to `True`.
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.
```yaml
@ -86,6 +89,7 @@ group:
automation:
alias: Turn on light when sun sets
hide_entity: True
trigger:
platform: sun
event: sunset