OR two triggers possible?

- alias: 'Movie paused/stopped'
  trigger:
    - platform: state
      entity_id: media_player.rasplex
      from: 'playing'
    - platform: state
      entity_id: media_player.htpc
      from: 'playing'
  condition:
    - condition: state
      entity_id: sun.sun
      state: 'below_horizon'
  action:
    - service: script.kitchen_lights_on
    - service: script.livingroom_lights_on

Will that AND or OR the two triggers? I wan’t it to OR them, possible somehow?

Hi,

It’s OR I’ve got a similar automation and it definitely triggers on 1 OR 2.

That’s what I thought but it won’t trigger for me. If It split it up into two separate automation with just one trigger each, both work.

Try making a media player group and then referencing the group as the entity in the trigger. Something like
group
movieplayers:
entitiy_id: media_player.rasplex
entity_id: media_player.htpc

trigger:

  • platform: state
    entity_id: gropu.movieplayers
    from: ‘playing’
    condition:
    etc etc etc

Ahh, you can do that? Smart!! :slight_smile:

Two triggers should work, and the automation trigger if any of them trigger.

Any errors if you run hass --script check_config ?