mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 00:06:51 +00:00
Proposed update to yaml config (#2706)
I have not read the docs extensively but the yaml config example given seems incorrect. It have adjusted to to what I believe is the correct config for the automation example given. I am not sure if things changed with the new Automation editor but I don't want people struggling with configs due to bad documentation.
This commit is contained in:
parent
bcc73bf124
commit
61a7f421db
@ -69,15 +69,15 @@ If you want to migrate your old automations to use the editor, you'll have to co
|
||||
- id: my_unique_id # <-- Required for editor to work.
|
||||
alias: Hello world
|
||||
trigger:
|
||||
- entity_id: sun.sun
|
||||
- platform: state
|
||||
entity_id: sun.sun
|
||||
from: below_horizon
|
||||
platform: state
|
||||
to: above_horizon
|
||||
condition:
|
||||
- above: 17
|
||||
below: 25
|
||||
condition: numeric_state
|
||||
- condition: numeric state
|
||||
entity_id: sensor.temperature
|
||||
above: 17
|
||||
below: 25
|
||||
value_template: '{% raw %}{{ float(state.state) + 2 }}{% endraw %}'
|
||||
action:
|
||||
- service: light.turn_on
|
||||
|
Loading…
x
Reference in New Issue
Block a user