Home Assistant Community

"ms.channel.unauthorized" when connecting to Samsung TV UE55NU6035

#1

Is it impossible to communicate with this Tizen-enabled TV?

I get this when pressing the on/off button in the UI:

2019-03-07 16:38:59 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.4552020656] {'event': 'ms.channel.unauthorized'}
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/websocket_api/commands.py", line 148, in handle_call_service
    connection.context(msg))
  File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1133, in async_call
    self._execute_service(handler, service_call))
  File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1155, in _execute_service
    await handler.func(service_call)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_component.py", line 188, in handle_service
    self._platforms.values(), func, call, service_name
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/service.py", line 278, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/service.py", line 292, in _handle_service_platform_call
    await getattr(entity, func)(**data)
  File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/media_player/samsungtv.py", line 214, in turn_off
    self.get_remote().close()
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/media_player/samsungtv.py", line 138, in get_remote
    self._remote = self._remote_class(self._config)
  File "/Users/henrik/.homeassistant/deps/lib/python/site-packages/samsungctl/remote.py", line 11, in __init__
    self.remote = RemoteWebsocket(config)
  File "/Users/henrik/.homeassistant/deps/lib/python/site-packages/samsungctl/remote_websocket.py", line 30, in __init__
    self._read_response()
  File "/Users/henrik/.homeassistant/deps/lib/python/site-packages/samsungctl/remote_websocket.py", line 72, in _read_response
    raise exceptions.UnhandledResponse(response)
samsungctl.exceptions.UnhandledResponse: {'event': 'ms.channel.unauthorized'}
2019-03-07 16:39:00 INFO (SyncWorker_6) [homeassistant.components.media_player.samsungtv] TV is powering off, not sending command: KEY
Control newer Samsung TVs
Samsung Smart TV - No control?
#2

Failed to call service media_player/turn_off. {'event': 'ms.channel.unauthorized'}

I got this as well when pressing the on/off.

Samsung Tv Nu8000 (2018)

media_player:
  - platform: samsungtv
    host: xxx.xxx.xxx.xxx
    port: 8001
    name: Samsung TV
    timeout: 30
    mac: 64:1c:ae:11:14:d5
#3

Same problem here. I have a NU8000 and this is my configuration.yaml :

media_player:
  - platform: samsungtv
    host: 192.168.0.4
    name: Samsung TV
    mac: 64:1b:ae:2w3:2b:3q
    port: 8001

I can switch on the TV (I supposed because of “wake on lan” and mac address), but can’t switch it off. I get the message:
Failed to call service media_player/turn_off. {'event': 'ms.channel.unauthorized'}

Have you figured out?

#4

Same problem here. I guess we need to allow the Raspberry Pi on the TV to permit it to send commands. I got a message on the TV asking if I want to allow my mobile phone, but not the HA so not sure how to do it.

The HA does not appear on the TV list for Denied devices nor allowed.