Repository navigation
Add ability to check if device is in a disabled state and then perform action in an automation #651
Replies: 2 comments
|
I found a good work around. I used this python script. It lets me manually set the tv state to playing when it switches on, this I can set the state based on my automations |
0 replies
|
I found a good work around. I used this python script. It lets me manually set the tv state to playing when it switches on, this I can set the state based on my automations |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I really like Spook a lot, it adds some great features that should be fully integrated into home assistant. I would like to request a feature add:
My scenario:
I have 2 motion sensors that control my tv and if both are detected as on they pause or resume the TV. I have a Sony Android a90k TV
I use Google Cast to detect the state of the TV, eg Playing or Paused and it then performs an action based on the state.
It works well, but I have noticed looking at my logs, if I pause the TV using the automation and leave the room, the sensor group changes to off as expected. Randomly Google Cast will send a play command to the TV and it will start playing with me not in the room.
What I would like to be able to do,
Automation is triggered by the motion sensor group turning to on
It detects TV is in a playing state and pauses the TV
It then disables the TV so the Google Cast cant send any random requests
Then I go back into the room
Automation is triggered by the motion sensor group turning to on
It detects the TV is in a disabled state - (cant work out how to do this in an automation)
It enables the TV
It detects the TV is in a paused state and starts playing the TV
Really what I want to do is when the automation pauses the TV it manually changes the status to paused, then when it plays the TV it changes the status to playing.
All reactions