Triggering automation based on automation creation

Hi,

Is it possible to trigger an automation when a new automation is created by the user ?

I’d like to get inspiration from Create a drop-down list from entities? where the use case is to populate an input_select based on switches that may evolve over time (as far as I understood).

Now, I’d like to do the same, but replacing switches by handmade automations within HA. Use case is basically for benchmarking temperature programs in my house, in a kinda-scientific way.
So I need a group of automations (so called programs) from which I can pick only one at a time. Hence the dropdown (I couldn’t find helper groups for automations).

So, when the user adds an automation, it triggers the refreshing of the automation dropdown.
Then, I can easily display at a time T which program had been selected, and I avoid any risk of misspelling or anything when adapting the automation name to the dropdown items.

I know I could just provide options like a time-pattern or just be satisfied with clicking on “Run Actions”, but if there is already an implementation of this, I’d like to learn more :smiley:

While I am sure you could find some workaround (I can think of a few ways) specifically to trigger only when a new automation is created, why bother? The creation of a new automation will trigger a reload of all automations, and it is much much simpler to just always trigger on that event instead.

- trigger: event
  event_type: automation_reloaded
1 Like