-
Notifications
You must be signed in to change notification settings - Fork 58
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
Power State and Communication Issues #266
Comments
I'm having the same issue with regards to the media player not showing that the TV is on (Samsung BU8000). |
Hello @ollo69 , |
I do not understand on what that binary sensor is based. |
The sensor is based on the 'smartthing' entity switch, which is responsible for turning the TV on and off. I use this switch to determine the state of the TV and relay that to the binary sensor, which can be either 'on' or 'off'. I made another adjustment to the configuration, changing the TCP port to 0 (ICMP). In the past, without the binary sensor, it only worked intermittently; often, the media player entity would remain 'on' even if the TV was turned off, and vice versa. Now, with the sensor paired, it appears to be functioning correctly. I've been testing it for 10 hours, and so far, it's consistent: when the TV is off, the media player entity is also off, and vice versa. I hope this continues to be the case in the future. However, there is a slight delay in the time it takes for the TV to turn on and for the media player entity to register this change—it takes about 3 to 4 seconds. Turning it off is quicker, taking less than 2 seconds. |
I had the same issue, but the error was the IP address. in our initial setup, the integration requested an IP, the thing is maybe your TV is getting the IP via DHCP (Automatic) so the IP address could change, the TV turn on because it's using "smart_things" but it didn't refresh the status because it's pointing to that IP, my fix was setup a static IP in the tv , |
I am having the same issue! While it seems more stable by setting the TCP port to 0 (ICMP), it still detects the state of the TV wrong sometimes. While the solution proposed by @ronyn77 can work by linking the state directly to another integration (SmartThings), I'd prefer not to include my SmartThings integration in my Home Assistant setup. I'm using WOL packet and control web socket. Anyone an idea on how to make it more stable? |
I have the same issue also with a Samsung S95C. Would be great if this could be solved. |
@ollo69 I have a 2022 neo-qled tv and I am experiencing a similar problem, I think. When I send a command (tv on / off) one of the following outcomes is as likely as another:
On my previous try with home assistant I also had some apps defined and the commands to run them were susceptible to the same problems. Some details about my setup:
I would really appreciate if this could get resolved! |
Came here to check for issues like this as I have started experiencing this myself. As SmartThings was mentioned I went to check the SmartThings App to see if the tv still functioned through that. When I opened it I got a prompt saying something along the lines of "We've disconnected this device because you haven't used it in a while, tap here to reconnect". After doing that the Home Assistant status is reporting correctly again! Worth checking. |
We use the smartthings app daily to control the tv. I'm just fed up with mispressing buttons on it. I wish that was the fix for me, but alas no. :( |
I am experiancing the same issue since couple of weeks. |
Same setup here with the similar issue. Home Assistant reports the TV as "on" when it is turned off. The problem is produced either the TV is turned off by its physical remote or by Home Assistant. I tried to update the status manually in the developer tool but it resumes to "on" again after a few seconds. Although it reports the status as "on" already, I am still able to turn on the TV by sending a command.
|
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Commenting to keep this from being auto-closed - its still affecting me. |
I got the same problem here on my S90C. |
I have the same issue. From the logs it looks like the tv is on, but still registers as off
|
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
I also have the same issue (S89C). The default Samsung integration shows the correct status of the TV so I created a binary sensor based on it and added it in the configuration. However, the status still shows off even though the binary sensor is showing on. Does anything else need to be configured to ensure the binary sensor is used for status? |
Since a couple of weeks I have a new issue with the integration. I have an S95C. My configuration for the integration:
In general, it works rather well. However, when the TV is turned off, the state of the TV in Home Assistant changes from On and immediately to Off in 5 min periods. Any help is pretty much appreciated. |
Why don't you connect a sensor to SmartThings? In my case, it worked pretty well. Moreover, because I experienced some issues with the SmartThings integration in the past, I was forced to disable the sensor connection. After resolving the integration issue, I didn't re-enable the sensor, because it seems to still work fine today. I might have encountered a few problems a couple of times, but they could have been caused by many other factors as well. Give it a try. |
If you're comfortable with some light soldering/breadboarding and your Samsung TV has a headphone-jacked shaped service port marked "Ex-Link", you can use that as an alternative way to control the TV via Home Assistant without using the SmartThings API. It's much more limited in scope than this integration, since the ExLink port doesn't allow you to query the TV's current state or interact with any of the smart/homescreen features, but it provides some very rudimentary idempotent controls that satisfied my personal use cases of turning the TV on, off, and selecting the appropriate HDMI source explicitly. Dropping it here in case it might be useful for anyone |
....now the power state hasn't been updating anymore. I have a Samsung S95C, and until now it worked without any problems. However, after updating Home Assistant, the media player entity shows as turned off all the time. The only way to bring it back on is to restart Home Assistant. |
So, looks like I'm not alone on this. My work around is to reload the integration (using the below) So, add the below to your automation script: Replace the entity device name to your device - on mine I named it smarthingstv )
|
I've made multiple attempts to change the settings and troubleshoot the issue, but unfortunately, I haven't been able to solve the problem. Here's what I've done so far:
I added a media player widget for my Samsung S95C TV on the dashboard using the integration. However, I'm experiencing incorrect visualization of the integration's power state. Sometimes the TV is on and functioning, but the integration shows it as off, and vice versa. When the integration shows the TV as off, I can't access other options like changing the source or audio mode.
I've tried changing the ports as suggested, including 9110, 9119, and 9197. However, I didn't notice any significant differences in behavior. Initially, it appeared to work, but after a period (which varies from 5 minutes to a couple of hours or more), the issue returns, and changing ports doesn't seem to have any effect in the long run.
I also experimented with switching between "Control Web Socket Channel," "Remote Web Socket Channel," and "Rest API Call" options. While there were slight variations, I couldn't identify which one was better, and ultimately the problem persisted.
I attempted to use the "Use volume mute status to detect fake power ON" option, but it didn't change anything in terms of the issue.
In Node-RED, I created a function to send a WOL (Wake-on-LAN) packet using the TV's MAC address. However, this approach didn't work.
Interestingly, when I added specific code to my configuration.yaml file (noting that this configuration differs slightly from what's in the documentation), the sent WOL packet successfully turned on the TV.
However, this only works the first time after restarting HA. Subsequent attempts only turn on the Samsung media player widget, not the TV itself. This behavior is strange, and it suggests there might be communication problems between the TV and the integration.
The only reliable method to successfully enable the power-on function is by utilizing the SmartThings integration.
The text was updated successfully, but these errors were encountered: