Have multiple states from one sensor trigger an automation

I tested and confirmed that this format will trigger when the state value changes to either A or B:

  to:
    - "A"
    - "B"

What also works is a comma-delimited string which is why the Visual Editor converts it into that (more compact) format.

1 Like