I installed samsungctl on my RPi4B running Raspbian Buster with updated software and newest version of Domoticz (2020.2 build 12.497) following the guide in the Wiki.
After installing, I entered the following command in the CLI:
Code: Select all
samsungctl -i --host 192.168.1.234 --port 8002 --method websocket
Code: Select all
Traceback (most recent call last):
File "/home/pi/.local/bin/samsungctl", line 8, in <module>
sys.exit(main())
File "/home/pi/.local/lib/python3.7/site-packages/samsungctl/__main__.py", line 110, in main
with Remote(config) as remote:
File "/home/pi/.local/lib/python3.7/site-packages/samsungctl/remote.py", line 11, in __init__
self.remote = RemoteWebsocket(config)
File "/home/pi/.local/lib/python3.7/site-packages/samsungctl/remote_websocket.py", line 28, in __init__
self.connection = websocket.create_connection(url, config["timeout"])
File "/usr/local/lib/python3.7/dist-packages/websocket/_core.py", line 515, in create_connection
websock.connect(url, **options)
File "/usr/local/lib/python3.7/dist-packages/websocket/_core.py", line 226, in connect
self.handshake_response = handshake(self.sock, *addrs, **options)
File "/usr/local/lib/python3.7/dist-packages/websocket/_handshake.py", line 80, in handshake
status, resp = _get_resp_headers(sock)
File "/usr/local/lib/python3.7/dist-packages/websocket/_handshake.py", line 163, in _get_resp_headers
status, resp_headers, status_message = read_headers(sock)
File "/usr/local/lib/python3.7/dist-packages/websocket/_http.py", line 309, in read_headers
line = recv_line(sock)
File "/usr/local/lib/python3.7/dist-packages/websocket/_socket.py", line 123, in recv_line
c = recv(sock, 1)
File "/usr/local/lib/python3.7/dist-packages/websocket/_socket.py", line 115, in recv
"Connection is already closed.")
websocket._exceptions.WebSocketConnectionClosedException: Connection is already closed.
Next I put the plugin.py in the domoticz/plugins/SamsungTV folder and rebooted. After that, the Samsung TV hardware showed up in Domoticz, so I entered the TV's IP and created a couple of devices with it, but it was no surprise that they do nothing...
Am I missing something? Or is this plugin not compatible anymore with 2020.2 Domoticz and 2020 TV's? Can it be fixed or do we need to look at a cloud based solution like SmartThings?