Hello all.
I have the Plex app all set up and running, managed to find the player ID and ive got flows to work depending on which device i watch a film on.
In one room my flow dims certain lights and Alexa announces “enjoy your movie”
However, if i press pause and then play again. The flow re-triggers.
Thinking about it, id expect that behaviour and Homey is doing what its supposed to. But i dont want the flow to trigger each time. Just the first time.
Is that possible?
Likewise if I close plex or stop playback, i want rhe lights to come back on.
I think a yes/no variable could help. Like streamstarted, default value"no".
When a player started streaming and streamstarted equals “no” you can use the rest of the cards in your screenshot and add an action to also set streamstarted to “yes”.
Another flow would be when a player stopped streaming. You can set the variable back to “no” and set the lights how you’d like it.
A player started streaming will give you a “Media” tag containing the name of whatever you are playing. You can store this in a variable and then compare to only run the rest of the flow if the media name is different from the one in the variable. Alternatively you can store the last time this flow was run in a variable and check if it was already ran today (or in the last x hours or something).