ha-samsungtv-smart icon indicating copy to clipboard operation
ha-samsungtv-smart copied to clipboard

State does not update properly?

Open jockebq opened this issue 2 months ago • 11 comments

Renamed my TV from Samsung QN95B to just Samsung and since then I have been having problems with state not working as it should. Removed the TV from Home Assistant and added it once again. Still the same issue. Tried switching from WiFi to Ethernet and still having the same problem.

I don’t know why this started happening, and how to solve it? It was working good before!

jockebq avatar Apr 15 '24 18:04 jockebq

Same here, cannot update the tv on status since last 4 days. I have tried to change port settings but no luck. Seems there is a problem with the power on status.

NuvioDev avatar Apr 16 '24 14:04 NuvioDev

Same here. Recently power state has not been updating. I have to reload the integration to get it to update.

anthonymkz avatar Apr 17 '24 16:04 anthonymkz

Same here... 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.

ronyn77 avatar Apr 17 '24 18:04 ronyn77

NOTE: This proposes using an alternative integration. I realize this does not solve the problem with THIS integration, but it MAY work with this integration if you execute similar steps. I haven't tried (yet). I just wanted something that works for now and am posting this because someone else might as well.

Device: Samsung QN85B

I started having this problem after updating my Home Assistant and Home Assistant OS versions recently ( ~ last week or so ). My status stopped updating when the tv was turned on/off. Ultimately I ended up switching back to the Samsung integration, which had its own set of annoyances but is working ( for now, at least ).

After switching to the Samsung integration, I kept having an issue where notifications kept popping up for permission requests when (presumably) the state was being polled. This kept happening even after my HA instance was added as an allowed device and notifications were turned off. Here are the steps as I took them if anyone is interested. I just did this today so there could be unnecessary steps included. ( I didn't have issues beyond the tv connection, but you may want to back up your HA configuration before doing this just to be safe )

  1. Uninstalled the Samsung Tv Smart integration
  2. On my Samsung tv, navigated to Settings -> connection -> External Device manager -> Device Connect Manager -> Device List
  3. Deleted the Home Assistant device entry
  4. Restarted Home Assistant
  5. On the Samsung Tv, went back to the device connect manager and set "Access Notification" to "First Time Only"
  6. Installed the Samsung Smart Tv Integration ( be sure to keep the entity name(s) the same so you don't have any issues with any existing functionality related to your tv )
  7. Multiple notifications requesting permission(s) popped up on the tv, which I allowed
  8. Went back to the Device List and verified that Home Assistant showed up as an allowed device
  9. In the Device Connect Manager, I set the "Access Notification" to "Off"
  10. Restarted Home Assistant
  11. Was prompted for permission one more time ( not sure why )
  12. Turned off the tv and verified that the on/off state updated in HA
  13. Turned on the Tv and verified that the on/off state updated in HA without being prompted for permission

I understand that this is just an alternative and not a solution or even a workaround using this integration, but if you just want something that works for now, I suppose it's worth a shot. 🤷🏿‍♂️ Good luck! 👍🏿

I'll report back if I manage to figure out a way to get it working using the Samsung Tv Smart integration

KimuraFTW avatar Apr 18 '24 04:04 KimuraFTW

In the last few days I've been seeing different behaviour for my Samsung Frame. Previously the media_player would have a status of 'on' if art mode was on. Now the media_player is off but there's a new art_mode_status which toggles on/off. This is actually a good thing because it makes it easier to distinguish between art mode on vs TV on.

However, I've found that after the TV goes to sleep, next time art mode comes on the new art_mode_status stays off. It only works again after I've fully turned on the TV.

Not sure if this is the same issue you're reporting, and whether it is new intended behaviour or a change on the Samsung side?

derekjwhitten avatar Apr 18 '24 12:04 derekjwhitten

I have the same problem, after turning off the TV when I turn it on again it does not update the status. I have to restart the integration

jjavin avatar Apr 18 '24 22:04 jjavin

Just as an FYI, reloading the configuration does seem to update the status in the integration. Until this is fixed I've added the homeassistant.reload_config_entry Service at the beginning of all my automations so it will reload the integration before running the automation to avoid any issues.

anthonymkz avatar Apr 19 '24 16:04 anthonymkz

Just as an FYI, reloading the configuration does seem to update the status in the integration. Until this is fixed I've added the homeassistant.reload_config_entry Service at the beginning of all my automations I have using this integration telling it to reload the integration before running the automation to avoid any issues.

Great idea, I've used it before for different purposes, but I forgot about it. Thanks for the reminder!

ronyn77 avatar Apr 19 '24 16:04 ronyn77

I am facing exactly the same issue since the last update.

edzards avatar Apr 21 '24 18:04 edzards

Same here. Multiple requests from HA every few seconds.

Uny02 avatar Apr 23 '24 17:04 Uny02

Is there any solution to this?

jockebq avatar May 02 '24 06:05 jockebq

I’m having an issue with adjusting the volume which I think is related, I can turn the volume up or down a few ticks and then it stops responding and I have to mute and unmute for volume state to update again. Looking at the attribute states in developer tools volume level disappears at the same time as it stops responding.

gaussey avatar May 03 '24 06:05 gaussey

I had the same issue. But I installed Samsung smartthings integration. This gave me a reliable on/off switch for my Frame TV in HA. Then I made an automation that reload the custom TV integration every time smarthings tell HA that the TV turns on. Has worked very well so far.

Seafo avatar May 03 '24 06:05 Seafo

Just for the record, I have 6 Samsung Tvs running through a matrix at my house and the only affected tv has been the QN85B. The others are CU7000s, MU6300s, and NU6900s and they haven't shown any issues. So it seems that either some models are unaffected or that this issue is triggered somehow.

KimuraFTW avatar May 08 '24 23:05 KimuraFTW

Just for the record, I have 6 Samsung Tvs running through a matrix at my house and the only affected tv has been the QN85B. The others are CU7000s, MU6300s, and NU6900s and they haven't shown any issues. So it seems that either some models are unaffected or that this issue is triggered somehow.

I only have one, a QN95B, which is affected!

jockebq avatar May 09 '24 06:05 jockebq

Same problem here.

Only work when restart integration

d4icon avatar May 12 '24 19:05 d4icon