One feature request related to the trigger IDs:
INTRODUCTION
One big advantage of trigger IDs is, to reduce the amount of automations basically doing the same thing (e. g. notify someone), but for different objects/devices/entities. I see trigger ID based “generic” automations as “Do same or similar things, regardless of the individual object/device/entity”.
E. g. before trigger IDs:
- Automation 1: Notify me “iPhone battery is fully charged”
- Automation 2: Notify me “iPad battery is fully charged”
- Automation 3: Notify me “Android tablet battery is fully charged”
- …
Now with trigger IDs:
- Automation 1: Notify me “[Device] battery is fully charged”
That´s phenomenal! For this I use trigger IDs as condition in the action part of the automation nested within a choose statement. So basically I combine several automations within a single one. Roughly related to above example here´s the action part of an automation using trigger IDs:
choose:
- conditions:
- condition: trigger
id: device_1
sequence:
- service: notify.all_devices
data:
...
- conditions:
- condition: trigger
id: device_2
sequence:
- service: notify.all_devices
data:
...
- conditions:
- condition: trigger
id: device_3
sequence:
- service: notify.all_devices
data:
...
default: []
PROBLEM
BUT here´s the (biggest, next to limitations when it comes to blueprint based automations) downside:
If I would like to disable one action (here one notification), I need to remove that full code of the automation, maybe even save it somewhere outside Home Assistant as a backup if it´s likely I´ll need it again in the future.
With single, individual automations you could just disable the single automation.
FEATURE REQUEST
Therefore I propose / request this feature:
Add ability to disable options in choose statement. This could be done by adding a checkbox to the UI, similar to what we already have for e. g. service automation.trigger (skip condition).
This way we can benefit from all the pro´s of using trigger IDs without loosing known features (like disabling an automation).
Knowing this is not a UI thing but a logical change, here´s a quick mock-up anyway:
Only other approach (more like a “not so smart” workaround) that came to my mind is to create input_boolean helper entities which are used in every choose option, those helper entities can be enabled/disabled like we do with automations - so I rebuild the native “enable/disable single automation” feature externally, probably with the need for an extra view to not get lost - because I would need A LOT of those helper entities, it would become quite painful really quickly.