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:
SilvrrGIT 2017-05-25 03:26:15 -05:00 committed by Fabian Affolter
parent bcc73bf124
commit 61a7f421db

View File

@ -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. - id: my_unique_id # <-- Required for editor to work.
alias: Hello world alias: Hello world
trigger: trigger:
- entity_id: sun.sun - platform: state
entity_id: sun.sun
from: below_horizon from: below_horizon
platform: state
to: above_horizon to: above_horizon
condition: condition:
- above: 17 - condition: numeric state
below: 25
condition: numeric_state
entity_id: sensor.temperature entity_id: sensor.temperature
above: 17
below: 25
value_template: '{% raw %}{{ float(state.state) + 2 }}{% endraw %}' value_template: '{% raw %}{{ float(state.state) + 2 }}{% endraw %}'
action: action:
- service: light.turn_on - service: light.turn_on