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.