Open avbor opened 4 years ago
Same problem here. I'm on Homeassistant 0.112.4
Log Details (ERROR)
Logger: homeassistant.helpers.entity
Source: custom_components/samsungtv_custom/media_player.py:233
First occurred: July 14, 2020, 8:31:48 PM (17466 occurrences)
Last logged: 10:52:51 PM
Update for media_player.livingroom_television fails
Update for media_player.livingroom_bluray_player fails
Traceback (most recent call last):
File "/opt/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 272, in async_update_ha_state
await self.async_device_update()
File "/opt/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 466, in async_device_update
self.update # type: ignore
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/homeassistant/.homeassistant/custom_components/samsungtv_custom/media_player.py", line 227, in update
self.send_key("KEY")
File "/home/homeassistant/.homeassistant/custom_components/samsungtv_custom/media_player.py", line 248, in send_key
control_result = self.get_remote().control(key)
File "/home/homeassistant/.homeassistant/custom_components/samsungtv_custom/media_player.py", line 233, in get_remote
self._remote = self._remote_class(self._config)
File "/opt/homeassistant/lib/python3.7/site-packages/samsungctl/remote.py", line 13, in __init__
raise exceptions.UnknownMethod()
samsungctl.exceptions.UnknownMethod
Also having the same issue:
Logger: homeassistant.helpers.entity
Source: custom_components/samsungtv_custom/media_player.py:233
First occurred: 2:33:49 PM (43 occurrences)
Last logged: 2:41:31 PM
Update for media_player.samsung_tv_remote fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 272, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 466, in async_device_update
self.update # type: ignore
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/samsungtv_custom/media_player.py", line 227, in update
self.send_key("KEY")
File "/config/custom_components/samsungtv_custom/media_player.py", line 248, in send_key
control_result = self.get_remote().control(key)
File "/config/custom_components/samsungtv_custom/media_player.py", line 233, in get_remote
self._remote = self._remote_class(self._config)
File "/usr/local/lib/python3.7/site-packages/samsungctl/remote.py", line 13, in __init__
raise exceptions.UnknownMethod()
samsungctl.exceptions.UnknownMethod
Same issue here. Same stacktrace. Seems like the "encrypted" method in the configs is what's causing it.
First I would like to thank you for the effort you have gone to @roberodin - I know developing these custom components is not easy.
I am having the same issue as above - my setup is as follows:
Note: I also have the standard Samsung TV integration installed and confirmed the TVs work (on/off, volume up/down, etc)
I have created the devices as per below:
with each having the custom dropdown displaying correctly (such as below)
As you can see unfortunately the state of all three TV is "unknown" and none of the functionality actually works. EG - clicking the power button cause a pop up error "Failed to call service media.player/turn_on"
Log details after restart of HA look as follows (same as the above):
I do really like this component - I hope you'll be able to fix the issue soon.
Thanks
After update HA to v 0.112 i got a lot of errors: ровень: ERROR Logger: homeassistant.helpers.entity Source: custom_components/samsungtv_custom/media_player.py:233 First occurred: 11:20:55 (3 occurrences) Last logged: 11:20:55
Update for media_player.samsungtv_ue40c5100 fails Update for media_player.samsungtv_ue32es5500 fails Update for media_player.samsungtv_ue46es5507 fails Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 272, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 466, in async_device_update self.update # type: ignore File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/samsungtv_custom/media_player.py", line 227, in update self.send_key("KEY") File "/config/custom_components/samsungtv_custom/media_player.py", line 248, in send_key control_result = self.get_remote().control(key) File "/config/custom_components/samsungtv_custom/media_player.py", line 233, in get_remote self._remote = self._remote_class(self._config) File "/usr/local/lib/python3.7/site-packages/samsungctl/remote.py", line 13, in init raise exceptions.UnknownMethod() samsungctl.exceptions.UnknownMethod
TVs configured like this: