mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 13:26:54 +00:00
Merge pull request #4734 from oncleben31/patch-1
`automation` and `automation old` in the same time
This commit is contained in:
commit
284b67a47f
@ -65,6 +65,16 @@ automation old:
|
||||
platform: ...
|
||||
```
|
||||
|
||||
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
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user