-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HomeKit (Apple Home App) - Automation - Samsung TV state #598
Comments
I have this exact same problem and it seems relatively recent. This automation was stable before, but now the Govee LEDs are constantly turning on and off, because the TV’s state is constantly fluctuating. But those fluctuations aren’t recorded in the Homebridge logs, like they are when the TV actually changes state. |
Hi! Im also experiencing this behaviour. It's true that I've always had it, but usually had a work around of using a dummy switch to allow the enough time for the TV to be back on and not trigger my lights and accessories accidentally. But since a few weeks ago, not even with the dummy switch im able to get things to work. In my case, even when the TV is off, there must be some packages being sent that makes homebridge think the TV is on and triggers my automations. |
Samsung don't offer us any valid option to check the real state of TV. So we make improvisations trying to get a state close to the real state of TV. How we check if the TV is on. That's great, but sometimes the TV don't respond to the HTTP request and it's failing, and if it does, as fallback the TV will have the state of the ping. One scenario is that sometimes the TV wakes up to do stuff in the background even if it's OFF. If it wakes up then it will respond to ping, but at the beginning there may not respond to the HTTP request, and it will fallback to the ping status which is The default timeout for the request is set to 250ms, that should be enough if there are no problems. The TV responds in approximate 5ms. If you want to have 100% working automations the only option with Samsung TVs are to buy a power plug which reports the power consumption in real time. Then you will be able to monitor the power consumption and see if the TV is actually ON :) |
Thanks for your reply, I have already tested it with different timeout values, issue is still occurring. As you mentioned I think I will get a "smart power adapter". |
For me, adjusting that timeout to 1000 as advised has corrected the issue perfectly! There's a slight delay when actually turning the TV on now, which is acceptable. The Govee lights don't flap anymore and that's what counts. I'll experiment with tuning that timeout downwards to see if I can strike a better balance but this is fine as is if need be. Thanks for the tip. |
Ah I was also going to report this. I will run the recommended steps and hopefully that will solve the issue 🤞 |
Hi,
I'm using an automation on my HomePod Mini to turn the LEDs (Govee) on/off when the Samsung TV get turned on/off.
But now comes the strange part ... sometimes the LEDs are turning off for like 2-3 seconds and then back on even when TV is still on.
I found out how to determine the cause of that issue:
Option 1: When navigating through the TV (with remote control) the "state" never changes to "inactive" (obviously)
Option 2: I have turned off the automation for turning off the LEDs synchrone with my TV - Which also means that I have to turn off the LEDs manually.
It seems like the automation isn't using the "power state" of the TV.
Note:
Any idea how to solve that issue?
The text was updated successfully, but these errors were encountered: