I’m working on a fairly complex automation flow that requires the creation of a large number of entities (as well as automations and scripts).
Doing this manually through the GUI is quite time-consuming and not very efficient. On the other hand, when creating them via YAML files, I’m then locked into editing them through files only, losing the flexibility of managing them later via the UI.
So my questions are:
Is there any existing way to import and export entities, automations, and scripts in bulk, ideally allowing both file-based creation and later GUI management?
If such functionality doesn’t exist, would it make sense to create a custom HACS component to enable this kind of import/export workflow?
I’d love to hear if others have faced similar needs or if there’s a recommended approach I might have missed.
Yes, I do this. I use shell scripts to generate packages and then move the packages to the HA config directory. First step is to create a package and have it working in HA. Then use shell scripts to replicate - which is mostly search and replace of entities ids, names, etc. Whenever you change the master package, rerun the script to deploy changes to all instances.
Generates timestamped ZIP archives for easy backup management
It might be a good starting point if you’re looking for a more automated way to export your setup. Feel free to check it out and let me know if it helps with your workflow!