I have what should be a fairly basic thing to set up but I cannot get my head round the best way to do it.
In Home Assistant, I have my Firestick connected as an entity and it outputs six outputs (playing, paused, idle, sleep, off and unavailable).
I also have my TV connected to a smart switch.
What I want is the following:
If the Firestick outputs "playing", "pause" or "idle", turn the smart switch on.
If the Firestick outputs anything else, for one minute, turn off the smart switch.
If I did not need the one minute pause, it would be a simple case (I think) of just outputting the change of state to a switch and sending the first three outputs to trigger the smart switch on and then having an "otherwise" option to trigger the smart switch off.
Any advice for putting together and elegant solution would be much appreciated.
I don't know if a firestick sends it's status automatically or if you have to interrogate it?
Regarding turning off, there is a trigger node which you can set up to send nothing until 1 minute has elapsed and then send "OFF".
Probably you need to tick "Extend delay if new message arrives".