-
Notifications
You must be signed in to change notification settings - Fork 55
Description
Hi,
I have new AC2729/10 device (AWS_Philips_AIR@54.2 Firmware). The android app is able to connect to the device. It has the fix IP 192.168.178.74 (host has the IP 192.168.178.11)
I tried to connect but get an error:
pi@192.168.178.11:~$ sudo airctrl --ipaddr 192.168.178.74
Exchanging secret key with the device ...
Traceback (most recent call last):
File "/usr/local/lib/python3.8/urllib/request.py", line 1317, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/usr/local/lib/python3.8/http/client.py", line 1230, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1276, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1225, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1004, in _send_output
self.send(msg)
File "/usr/local/lib/python3.8/http/client.py", line 944, in send
self.connect()
File "/usr/local/lib/python3.8/http/client.py", line 915, in connect
self.sock = self._create_connection(
File "/usr/local/lib/python3.8/socket.py", line 807, in create_connection
raise err
File "/usr/local/lib/python3.8/socket.py", line 796, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/airctrl", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.8/site-packages/pyairctrl/airctrl.py", line 444, in main
c = HTTPAirCli(device["ip"])
File "/usr/local/lib/python3.8/site-packages/pyairctrl/airctrl.py", line 100, in init
self._client = HTTPAirClient(host, debug)
File "/usr/local/lib/python3.8/site-packages/pyairctrl/http_client.py", line 108, in init
self.load_key()
File "/usr/local/lib/python3.8/site-packages/pyairctrl/http_client.py", line 156, in load_key
self._get_key()
File "/usr/local/lib/python3.8/site-packages/pyairctrl/http_client.py", line 119, in _get_key
with urllib.request.urlopen(req) as response:
File "/usr/local/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/lib/python3.8/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/usr/local/lib/python3.8/urllib/request.py", line 542, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/local/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.8/urllib/request.py", line 1346, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/local/lib/python3.8/urllib/request.py", line 1320, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 111] Connection refused>
I tried it with and without sudo.
Any explanation for this behavior?