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

Errors after update HA to 0.112 #49

Open
avbor opened this issue Jul 3, 2020 · 4 comments
Open

Errors after update HA to 0.112 #49

avbor opened this issue Jul 3, 2020 · 4 comments

Comments

@avbor
Copy link

avbor commented Jul 3, 2020

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

image

TVs configured like this:

  • platform: samsungtv_custom
    name: SamsungTV-UE40C5100
    host:
    port: 5601
    mac:
  • platform: samsungtv_custom
    name: SamsungTV-UE32ES5500
    host:
    mac:
  • platform: samsungtv_custom
    name: SamsungTV-UE46ES5507
    host:
    mac:
@megapearl
Copy link

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

@ulnic
Copy link

ulnic commented Jul 19, 2020

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

@ImNightwing
Copy link

Same issue here. Same stacktrace. Seems like the "encrypted" method in the configs is what's causing it.

@Bsunshine18
Copy link

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:

  • HA: HassOS 4.12
  • HACS: v1.5.2
  • ha-samsuntv-custom: 3.0.5

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:

image

with each having the custom dropdown displaying correctly (such as below)

image

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):

image

I do really like this component - I hope you'll be able to fix the issue soon.

Thanks

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

5 participants