Maybe this already exists and I just couldn't find it in the docs.
Has there been any discussion on making switch programing style condition? My example would be for an alarm panel but could work for lots of other things. This could be blending the entity and choose condition:
Figured this could save in duplicating the condition entity_id, attributes, etc.
Ex:
switch:
condition: state
entity_id: alarm_control_panel.house_alarm
conditions:
- state: armed_away
sequence:
- action: switch.turn_off
- state: armed_night
sequence:
- action: switch.turn_off
- state: armed_home
sequence:
- action: switch.turn_on