With the new features of 2022.10, I have had a thought but not sure if it is a good one.
All of my automations are in an automations folder with sub-folders for zones and device types. Is it possible to add a random -id to them and now edit them in the automation editor in the front end?
I do see a migrate button now as well, but something tells me that with a couple of hundred automations that my configuration.yaml file would quickly get out of control. Not to mention my switch and sensor folders.
You can add an id but it won’t make them editable in the Automation Editor because they’re not located in automations.yaml which is the only file the Automation Editor uses (or configuration.yaml if the automation key is not redirected to another file).
So I do have an automations.yaml file with a couple of things in it that I created as a test. They are editable in the automation editor, confirmed. So, if I do a migrate will the automations migrate into that file and not the configuration.yaml file?
I’ve been hand-creating my own automations in automations.yaml, and adding an arbitary but unique GUID myself. In fact, automations created in the editor have had more than format of GUID added but the editor itself (was 16 digits, currently 13).
It’s not documented, and the process might explode and attack your house plants , but I’ve been doing this for over a year.
- id: '1234567890123'
alias: Hand-edited automation added in a text editor
description: ''
trigger:
This is ideal for similar automations - such as IKEA remote actions. Create one in the GUI, then copy/paste/increment the GUID manually.
“Migrate” is for migrating automations that are located in files beyond the Automation Editor’s control.
If you have this in your configuration.yaml file:
automation: !include automations.yaml
then the Automation Editor has control of automations.yaml and that’s where it stores automations you create/modify using the Automation Editor. You can’t migrate an automation that’s already there.
Migration is for moving automations you create in other files that are referenced by a split configuration.