Skip to content
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

State does not update properly? #309

Open
jockebq opened this issue Apr 15, 2024 · 25 comments
Open

State does not update properly? #309

jockebq opened this issue Apr 15, 2024 · 25 comments

Comments

@jockebq
Copy link

jockebq commented Apr 15, 2024

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!

@NuvioDev
Copy link

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.

@anthonymkz
Copy link

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

@ronyn77
Copy link

ronyn77 commented Apr 17, 2024

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.

@KimuraFTW
Copy link

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

@derekjwhitten
Copy link

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?

@jjavin
Copy link

jjavin commented Apr 18, 2024

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

@anthonymkz
Copy link

anthonymkz commented Apr 19, 2024

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.

@ronyn77
Copy link

ronyn77 commented Apr 19, 2024

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!

@edzards
Copy link

edzards commented Apr 21, 2024

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

@Uny02
Copy link

Uny02 commented Apr 23, 2024

Same here. Multiple requests from HA every few seconds.

@jockebq
Copy link
Author

jockebq commented May 2, 2024

Is there any solution to this?

@gaussey
Copy link

gaussey commented May 3, 2024

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.

@Seafo
Copy link

Seafo commented May 3, 2024

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.

@KimuraFTW
Copy link

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.

@jockebq
Copy link
Author

jockebq commented May 9, 2024

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!

@d4icon
Copy link

d4icon commented May 12, 2024

Same problem here.

Only work when restart integration

@webjib
Copy link

webjib commented May 21, 2024

Same here with a Frame 2022. I’ve stopped using the integration because of that :( can’t find a solution except reloading the integration constantly…

@madcowGit
Copy link

I have the same issue: Samsung The Frame 32LSO3B (2023)

@stibbzy
Copy link

stibbzy commented May 24, 2024

Same problem with my 2020 Frame TV, however my Samsung M7 Smart Monitor’s state is working fine with the integration.
EDIT: OK, seems I was able to resolve by removing the TV from the Smartthings app and re-adding it.

@skyw33
Copy link

skyw33 commented May 25, 2024

Same problem with my Frame TV. If I send a media_player.turn_on service to the tv, it will turn it on, but the status of the tv remains off. However, once the tv is on, if I send a "SamsungTV Smart: Set Art Mode" service, the entity remains off, but the entity attribute changes to "art_mode_status: on". If I then send another "media_player.turn_on" service when art mode is "on", then the samsung tv entity WILL update and show a status of "on". I.e. I am able to get the entity to update the power status, but it requires that the art mode is "on" first. Can others with Frame TVs confirm that this method works for them?

@ollo69 does this give any insight into what might be happening?

@madcowGit
Copy link

Or are there any logs I can provide or look into for clues?

@mytasker
Copy link

mytasker commented May 28, 2024

So, looks like I'm not alone on this.

My work around is to reload the integration (using the below)
If you manually reload the integration, it will show the correct entity state after that.

So, add the below to your automation script:

Replace the entity device name to your device - on mine I named it smarthingstv )

service: homeassistant.reload_config_entry
metadata: {}
data: {}
target:
  entity_id: media_player.smarthingstv 

@skyw33
Copy link

skyw33 commented May 28, 2024

Thank you @mytasker ! This workaround is working very well for me.

@bradnak
Copy link

bradnak commented Jun 1, 2024

I'm also seeing this issue on my S95BA. As others have noted, reloading the config correctly detects the state. Still, I would like it to update automatically because I have an energy consumption integration connected to the device's state.

@olythoreau
Copy link

Also have the mediaplayer for this integration incorrectly reporting as off when the TV is on for my S95B. Got rid of the problem by uninstalling and reinstalling all integrations related to Samsung TVs, and doing the trick with my "Allow Access" notifications mentioned above. However, when I use the Ambient mode, it breaks again. It also breaks my app buttons, which will turn the TV off if I press them. Strangely, if I press the app buttons again, they do not turn the TV on. I noticed one instance where ambient mode does not break the power status of the tv reporting correctly... If I initiate ambient mode using the app button in HA I created when the TV is already off, and then switch to another app, the powered on/off status still reports correctly. Naturally, I have get power status from SmartThings enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests