In the automation editor it is currently possible to pick only one state per entity state trigger or condition. Both the trigger and conditions become much more powerful when you add multiple states within them by editing the step in YAML. It’s a small, yet annoying step to toggle between UI and YAML.
I think the use case is easiest to explain through an example. I have input_select.home_state which can have states Home, Away, Night and Vacation. If I want to create automation to work only when someone is at home, regardless if awake, I need to add condition for state being Home or Night. In the UI editor I need use OR block and add these conditions separately:
condition: or
conditions:
- condition: state
entity_id: input_select.home_state
state: Home
- condition: state
entity_id: input_select.home_state
state: Night
The condition can be easily simplified with literally one line break and indentation for the step in YAML editor. I can list the states into one condition without using OR block at all:
condition: state
entity_id: input_select.presence
state:
- Home
- Night
Even the UI seems to understand this already and names the condition correctly:
It would be great to have a way to pick multiple states through the UI. The same applies also for the Triggers, though in there I feel having states separated makes more sense at least from the automation debugging perspective.