Hi,
I tried to set up ubus but I finished with the errors below:
ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform ubus
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/requests/packages/urllib3/response.py”, line 298, in _error_catcher
yield
File “/srv/homeassistant/lib/python3.5/site-packages/requests/packages/urllib3/response.py”, line 590, in read_chunked
self._update_chunk_length()
File “/srv/homeassistant/lib/python3.5/site-packages/requests/packages/urllib3/response.py”, line 532, in _update_chunk_length
line = self._fp.fp.readline()
File “/usr/lib/python3.5/socket.py”, line 575, in readinto
return self._sock.recv_into(b)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/requests/models.py”, line 719, in generate
for chunk in self.raw.stream(chunk_size, decode_content=True):
File “/srv/homeassistant/lib/python3.5/site-packages/requests/packages/urllib3/response.py”, line 428, in stream
for line in self.read_chunked(amt, decode_content=decode_content):
File “/srv/homeassistant/lib/python3.5/site-packages/requests/packages/urllib3/response.py”, line 618, in read_chunked
self._original_response.close()
File “/usr/lib/python3.5/contextlib.py”, line 77, in exit
self.gen.throw(type, value, traceback)
File “/srv/homeassistant/lib/python3.5/site-packages/requests/packages/urllib3/response.py”, line 303, in _error_catcher
raise ReadTimeoutError(self._pool, None, ‘Read timed out.’)
requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host=‘192.168.1.1’, port=80): Read timed out.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/init.py”, line 154, in async_setup_platform
None, platform.get_scanner, hass, {DOMAIN: p_config})
File “/usr/lib/python3.5/asyncio/futures.py”, line 361, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 296, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 274, in result
raise self._exception
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/ubus.py”, line 36, in get_scanner
scanner = UbusDeviceScanner(config[DOMAIN])
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/ubus.py”, line 58, in init
self.session_id = _get_session_id(self.url, username, password)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/ubus.py”, line 156, in _get_session_id
password=password)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/ubus.py”, line 138, in _req_json_rpc
res = requests.post(url, data=data, timeout=5)
File “/srv/homeassistant/lib/python3.5/site-packages/requests/api.py”, line 110, in post
return request(‘post’, url, data=data, json=json, **kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/requests/api.py”, line 56, in request
return session.request(method=method, url=url, **kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/requests/sessions.py”, line 488, in request
resp = self.send(prep, **send_kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/requests/sessions.py”, line 641, in send
r.content
File “/srv/homeassistant/lib/python3.5/site-packages/requests/models.py”, line 797, in content
self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
File “/srv/homeassistant/lib/python3.5/site-packages/requests/models.py”, line 726, in generate
raise ConnectionError(e)
requests.exceptions.ConnectionError: HTTPConnectionPool(host=‘192.168.1.1’, port=80): Read timed out.
I followed the instuctions step by step, I installed the package and created the file.
Can someone please help?