From 61a7f421db171542b427cecdb00d819ccea609da Mon Sep 17 00:00:00 2001 From: SilvrrGIT Date: Thu, 25 May 2017 03:26:15 -0500 Subject: [PATCH] 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. --- source/_docs/automation/editor.markdown | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/_docs/automation/editor.markdown b/source/_docs/automation/editor.markdown index d084b6d9c52..83b1de0f29e 100644 --- a/source/_docs/automation/editor.markdown +++ b/source/_docs/automation/editor.markdown @@ -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