Automation: multiple triggers with OR statement?

Is it possible to use an OR statement with multiple triggers in an automation? For example if door-1 OR door-2 change state to “unlock” then do something. I realize I can create 2 separate automations and accomplish this, but wondering if it’s possible to combine under one. I tried creating a group for both doors, however it only trips on a state change when BOTH doors go to unlock. TIA!

you dont need an ‘OR’, just list them under the trigger heading and they will be ‘OR’d’ by default

trigger:
  - platform: state
    entity_id: media_player.lounge_speakers
    to: 'playing'
  - platform: state
    entity_id: media_player.house
    to: 'playing'
1 Like

In cases like the one shown by @sparkydave you can save yourself a few lines by using:

trigger:
  - platform: state
    entity_id: media_player.lounge_speakers, media_player.house, media_player.kitchen, media_player.basement
    to: 'playing'

The trigger entities will still be OR.

Triggers are always or as mentioned at the top of the trigger docs.