automation:
- alias: "Media player paused/stopped"
trigger:
- platform: state
entity_id: media_player.stue
from: 'playing'
to: 'paused'
action:
service: scene.turn_on
entity_id: scene.livingroom_normal
- alias: "Media player playing"
trigger:
- platform: state
entity_id: media_player.stue
to: 'playing'
from: 'paused'
action:
service: scene.turn_on
entity_id: scene.livingroom_dim
That’s the code i have. It works as intended when i cast Youtube to the Chromecast, but not with Plex? With plex it only dims the lights, it does not turn the brightness up again when i pause.
Thanks.