From f6b1e6aa8c519b47fb15cce55928cb8ef1118f6d Mon Sep 17 00:00:00 2001 From: Oncleben31 Date: Fri, 23 Feb 2018 00:05:08 +0100 Subject: [PATCH 1/2] `automation` and `automation old` in the same time Additional comment and example to explain we can use the both sections in the same time. --- source/_docs/automation/editor.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/_docs/automation/editor.markdown b/source/_docs/automation/editor.markdown index b0f16e14450..d91f7c55621 100644 --- a/source/_docs/automation/editor.markdown +++ b/source/_docs/automation/editor.markdown @@ -65,6 +65,14 @@ automation old: platform: ... ``` +You can use the `automation:` and `automation old:` sections in the same time to keep yout manual designed automations and use the editor for next ones: + +```yaml +automation: !include automations.yaml +automation old: !include_dir_merge_list automations +``` + + ## {% linkable_title Migrating your automations to `automations.yaml` %} If you want to migrate your old automations to use the editor, you'll have to copy them to `automations.yaml`. Make sure that `automations.yaml` remains a list! For each automation that you copy over you'll have to add an `id`. This can be any string as long as it's unique. From a08e94f7890216b00412a31836ad238918e4ed6d Mon Sep 17 00:00:00 2001 From: Oncleben31 Date: Mon, 26 Feb 2018 19:03:44 +0100 Subject: [PATCH 2/2] Update editor.markdown --- source/_docs/automation/editor.markdown | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/_docs/automation/editor.markdown b/source/_docs/automation/editor.markdown index d91f7c55621..3788800fd14 100644 --- a/source/_docs/automation/editor.markdown +++ b/source/_docs/automation/editor.markdown @@ -65,7 +65,9 @@ automation old: platform: ... ``` -You can use the `automation:` and `automation old:` sections in the same time to keep yout manual designed automations and use the editor for next ones: +You can use the `automation:` and `automation old:` sections in the same time: + - `automation old:` to keep your manual designed automations + - `automation:` to save the automation created by the online editor ```yaml automation: !include automations.yaml