I tried to change the port in philips.py to 1925
python3 philips.py --host 192.168.2.51 pair
Starting pairing request
Traceback (most recent call last):
File “/home/pc/.local/lib/python3.8/site-packages/requests/packages/urllib3/connectionpool.py”, line 597, in urlopen
httplib_response = self._make_request(conn, method, url,
File “/home/pc/.local/lib/python3.8/site-packages/requests/packages/urllib3/connectionpool.py”, line 345, in _make_request
self._validate_conn(conn)
File “/home/pc/.local/lib/python3.8/site-packages/requests/packages/urllib3/connectionpool.py”, line 844, in validate_conn
conn.connect()
File “/home/pc/.local/lib/python3.8/site-packages/requests/packages/urllib3/connection.py”, line 319, in connect
self.sock = ssl_wrap_socket(
File "/home/pc/.local/lib/python3.8/site-packages/requests/packages/urllib3/util/ssl.py", line 324, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File “/usr/lib/python3.8/ssl.py”, line 500, in wrap_socket
return self.sslsocket_class._create(
File “/usr/lib/python3.8/ssl.py”, line 1040, in _create
self.do_handshake()
File “/usr/lib/python3.8/ssl.py”, line 1309, in do_handshake
self._sslobj.do_handshake()
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:1131)During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/pc/.local/lib/python3.8/site-packages/requests/adapters.py”, line 413, in send
resp = conn.urlopen(
File “/home/pc/.local/lib/python3.8/site-packages/requests/packages/urllib3/connectionpool.py”, line 630, in urlopen
raise SSLError(e)
requests.packages.urllib3.exceptions.SSLError: EOF occurred in violation of protocol (_ssl.c:1131)During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “philips.py”, line 140, in
main()
File “philips.py”, line 90, in main
pair(config)
File “philips.py”, line 41, in pair
r = requests.post(“https://” + config[‘address’] + “:1925/6/pair/request”, json=data, verify=False)
File “/home/pc/.local/lib/python3.8/site-packages/requests/api.py”, line 110, in post
return request(‘post’, url, data=data, json=json, **kwargs)
File “/home/pc/.local/lib/python3.8/site-packages/requests/api.py”, line 56, in request
return session.request(method=method, url=url, **kwargs)
File “/home/pc/.local/lib/python3.8/site-packages/requests/sessions.py”, line 488, in request
resp = self.send(prep, **send_kwargs)
File “/home/pc/.local/lib/python3.8/site-packages/requests/sessions.py”, line 609, in send
r = adapter.send(request, **kwargs)
File “/home/pc/.local/lib/python3.8/site-packages/requests/adapters.py”, line 497, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: EOF occurred in violation of protocol (_ssl.c:1131)