ZyberSE
November 23, 2016, 11:22am
1
- 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?
nbittmann
(Nils Bittmann)
November 23, 2016, 11:43am
2
Hi,
It’s OR I’ve got a similar automation and it definitely triggers on 1 OR 2.
ZyberSE
November 23, 2016, 11:50am
3
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.
turboc
(Chip Cox)
November 23, 2016, 1:48pm
4
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
ZyberSE
November 23, 2016, 2:09pm
5
Ahh, you can do that? Smart!!
Two triggers should work, and the automation trigger if any of them trigger.
Any errors if you run hass --script check_config
?