I have been trying to build an automation that triggers if an automation is enabled or disabled (any automation).
I have a working setup, but I am mainly worried about performance issues with this setup. The ony way I could get this to work was doing:
trigger:
- platform: event
event_type: state_changed
Which triggers like 10 times a second.
Is there any way to filter at the trigger level or trigger on in a better way for automations?
I tried something like:
trigger:
- platform: event
event_type: state_changed
event_data:
entity_id: automation.*
But HA doesn't like the asterisk.
trigger:
- platform: state
entity_id:
- automation.example1
- automation.example2
This isn't scalable. It's not really helpful to list everything manually, I would prefer labels/tags.
I already have a fast fail condition, but, am ony worried about the trigger situation.