Followed this guide: OpenWrt (luci) - Home Assistant
, but I get these errors;
(sorry for the messy pasting)
Logger: homeassistant.components.device_tracker
Source: components/luci/device_tracker.py:50
Integration: Enhetssporing (documentation, issues)
First occurred: 18:46:14 (1 occurrences)
Last logged: 18:46:14
Error setting up platform legacy luci
Traceback (most recent call last):
File “/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py”, line 699, in urlopen
httplib_response = self._make_request(
File “/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py”, line 445, in _make_request
six.raise_from(e, None)
File “”, line 3, in raise_from
File “/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py”, line 440, in _make_request
httplib_response = conn.getresponse()
File “/usr/local/lib/python3.8/http/client.py”, line 1344, in getresponse
response.begin()
File “/usr/local/lib/python3.8/http/client.py”, line 331, in begin
self.headers = self.msg = parse_headers(self.fp)
File “/usr/local/lib/python3.8/http/client.py”, line 216, in parse_headers
line = fp.readline(_MAXLINE + 1)
File “/usr/local/lib/python3.8/socket.py”, line 669, in readinto
return self._sock.recv_into(b)
ConnectionResetError: [Errno 104] Connection reset by peer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.8/site-packages/requests/adapters.py”, line 439, in send
resp = conn.urlopen(
File “/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py”, line 755, in urlopen
retries = retries.increment(
File “/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py”, line 532, in increment
raise six.reraise(type(error), error, _stacktrace)
File “/usr/local/lib/python3.8/site-packages/urllib3/packages/six.py”, line 734, in reraise
raise value.with_traceback(tb)
File “/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py”, line 699, in urlopen
httplib_response = self._make_request(
File “/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py”, line 445, in _make_request
six.raise_from(e, None)
File “”, line 3, in raise_from
File “/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py”, line 440, in _make_request
httplib_response = conn.getresponse()
File “/usr/local/lib/python3.8/http/client.py”, line 1344, in getresponse
response.begin()
File “/usr/local/lib/python3.8/http/client.py”, line 331, in begin
self.headers = self.msg = parse_headers(self.fp)
File “/usr/local/lib/python3.8/http/client.py”, line 216, in parse_headers
line = fp.readline(_MAXLINE + 1)
File “/usr/local/lib/python3.8/socket.py”, line 669, in readinto
return self._sock.recv_into(b)
urllib3.exceptions.ProtocolError: (‘Connection aborted.’, ConnectionResetError(104, ‘Connection reset by peer’))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py”, line 236, in async_setup_legacy
scanner = await hass.async_add_executor_job(
File “/usr/local/lib/python3.8/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/luci/device_tracker.py”, line 39, in get_scanner
scanner = LuciDeviceScanner(config[DOMAIN])
File “/usr/src/homeassistant/homeassistant/components/luci/device_tracker.py”, line 50, in init
self.router = OpenWrtRpc(
File “/usr/local/lib/python3.8/site-packages/openwrt_luci_rpc/init.py”, line 31, in init
self.router = OpenWrtLuciRPC(host_url, username, password,
File “/usr/local/lib/python3.8/site-packages/openwrt_luci_rpc/openwrt_luci_rpc.py”, line 61, in init
self._refresh_token()
File “/usr/local/lib/python3.8/site-packages/openwrt_luci_rpc/openwrt_luci_rpc.py”, line 69, in _refresh_token
self.token = self._call_json_rpc(auth_url, ‘login’,
File “/usr/local/lib/python3.8/site-packages/openwrt_luci_rpc/openwrt_luci_rpc.py”, line 210, in _call_json_rpc
res = self.session.post(url,
File “/usr/local/lib/python3.8/site-packages/requests/sessions.py”, line 590, in post
return self.request(‘POST’, url, data=data, json=json, **kwargs)
File “/usr/local/lib/python3.8/site-packages/requests/sessions.py”, line 542, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/lib/python3.8/site-packages/requests/sessions.py”, line 655, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python3.8/site-packages/requests/adapters.py”, line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: (‘Connection aborted.’, ConnectionResetError(104, ‘Connection reset by peer’))>