core: Can't turn off samsung tv anymore, logging says: Unknown power_off command ...
The problem
In previous versions of the samsungtv integration, I could turn my TV off, but since the last version(s) this isn’t working anymore. An error shows up in the HA logging:
Unknown power_off command for UE32K5600 (192.168.7.208): sending KEY_POWEROFF and KEY_POWER
What version of Home Assistant Core has the issue?
core-2022.4.7
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
samsungtv
Link to integration documentation on our website
https://www.home-assistant.io/integrations/samsungtv
Diagnostics information
config_entry-samsungtv-ff588055230ee3b951b123e81d302983.json.txt
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.components.samsungtv
Source: components/samsungtv/bridge.py:777
Integration: Samsung Smart TV (documentation, issues)
First occurred: 19:53:19 (1 occurrences)
Last logged: 19:53:19
Unknown power_off command for UE32K5600 (192.168.7.208): sending KEY_POWEROFF and KEY_POWER
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (8 by maintainers)
@epenet, I tested it, but did it by copying the changed
bridge.py&__init__.pyfrom your pull request to my version (did not want to upgrade to latest HA yet). After rebooting and without removing the integration, the power off still worked! (this was the result of the diagnostics: config_entry-samsungtv-ff588055230ee3b951b123e81d302983.json (2).txt at that time)Then I removed the integration, restarted HA, and samsungtv was rediscovered, so I configered it. And after that it also still worked!
So it seems your fix did the trick. Thanks for your quick response and fix!