homebridge-samsungtv2016 icon indicating copy to clipboard operation
homebridge-samsungtv2016 copied to clipboard

Can we make it poll current status before it sends the command?

Open Cloudore opened this issue 7 years ago • 3 comments

Hey @kyleaa,

First of all thanks for the plug in! works great to both turn it on and off (I too have the tv connected through ethernet)

I have a "Movie Time" scene which essentially turns the lights off and the TV to "on". However, if I press the scene button when the TV is already on, it will turn it off. Is there a way to make it check if its already on before sending the command so it doesn't turn it off?

Cloudore avatar Mar 22 '17 16:03 Cloudore

Unfortunately I haven't found a good way to tell if the TV is on. I had a hack in there that sort-of did this, but I pulled it out because it was causing people more issues. It would try to connect to the API, and if it timed out, assume the TV was off. However, the API stays active for a good minute after it shuts off.

kyleaa avatar Mar 23 '17 14:03 kyleaa

@kyleaa Thanks for the answer, correct me if I'm wrong here (which I usually am tbh), but my TV seems to not respond to pings when it's powered off. Is it possible to ping and if the plugin receives an answer then set the tv to "on", is that what you referred to when you said connect to the API?

Cloudore avatar Mar 24 '17 11:03 Cloudore

I have exactly the same “problem” with exactly the same scene name. Did estou find any workaround?

neoTUGA avatar Jun 11 '17 20:06 neoTUGA