I’m trying to write a automation to start my playstation and start Netflix when the playstation is started (state: idle). But I can’t figure out how to wait to check if the playstation is stared. I need some kind of loop or delay.
That is a fixed delay, right? It would probably work.
But it would be more elegant quicker and more reliable to be able to check when the playstation started after sending the command to start it.
I’m gonna try to write a loop that checks that and if I find a solution I’ll post it here.
I think you’ll have to drop to appdaemon to get a delay loop.
You could potentially do this with another automation that triggers on the state change of the playstation. You would probably need to add an input_boolean to indicate that the state change was triggered by your first automation. It may be more trouble than it is worth when you can set the fixed timer and achieve the desired results.