How can I get the playing status of plex?

I’ve just set up home assistant so I’m still trying to understand it but so far I’m loving it! I’ve managed to create an automation that turns my living room light red when I play something through Plex, which is running on a firestick.

platform: state
entity_id: sensor.plex_main
attribute: AJRobson1985 - FireStick4KROOM

I’m now trying to make my light go white when plex is paused. I’ve read a few things where people have done the same but I can’t get them to work for me, I’ve changed the script a bunch trying to get the correct entity ID but I can never get it to work.

platform: state
entity_id: media_player.plex_plex_for_android_tv_firestick4kroom
from: Playing
to: Paused

Can anybody please help me to get this working?

platform: state
entity_id: media_player.plex_plex_for_android_tv_firestick4kroom
from: "playing"
to: "paused"

Should be work. Maybe I have lag between pause and media_player state change?

1 Like

Thank you! that’s working perfectly!!