Ape / samsungctl

Remote control Samsung televisions via a TCP/IP connection
MIT License
711 stars 191 forks source link

Series 7 tv #89

Open tomas316 opened 5 years ago

tomas316 commented 5 years ago

I can't control a series 7 TV with samsungctl(UN65NU710D). Is there a new handshake required by the TV? If I type this url in a browser, it will prompt for authentication on the tv and I can add it to the authorized list of devices. http://10.10.0.10:8001/api/v3/ It returns <html><body>404</body></html>

But samsungctl returns an error with no notification popping up on the TV.

File "/usr/bin/samsungctl", line 11, in <module> sys.exit(main()) File "/usr/lib/python2.7/site-packages/samsungctl/__main__.py", line 110, in main with Remote(config) as remote: File "/usr/lib/python2.7/site-packages/samsungctl/remote.py", line 11, in __init__ self.remote = RemoteWebsocket(config) File "/usr/lib/python2.7/site-packages/samsungctl/remote_websocket.py", line 30, in __init__ self._read_response() File "/usr/lib/python2.7/site-packages/samsungctl/remote_websocket.py", line 72, in _read_response raise exceptions.UnhandledResponse(response) samsungctl.exceptions.UnhandledResponse: {u'event': u'ms.channel.unauthorized'}

rodneymt commented 5 years ago

I had been using this through Home Assistant as a custom component to operate my UE55NU7300, it stopped working a couple of weeks ago. I pretty much get the same results as the OP.

File "/home/pi/.homeassistant/deps/lib/python3.5/site-packages/samsungctl/remote.py", line 11, in __init__ self.remote = RemoteWebsocket(config) File "/home/pi/.homeassistant/deps/lib/python3.5/site-packages/samsungctl/remote_websocket.py", line 30, in __init__ self._read_response() File "/home/pi/.homeassistant/deps/lib/python3.5/site-packages/samsungctl/remote_websocket.py", line 72, in _read_response raise exceptions.UnhandledResponse(response) samsungctl.exceptions.UnhandledResponse: {'event': 'ms.channel.unauthorized'}

mattmickeyj commented 5 years ago

Has anyone got this working? I’m using Home assistant too. I had to rely on sending http requests instead to launch apps (setup as a switch).