Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 102819

Nanoleaf Elements Integration Failed to Connect

$
0
0

I’m trying to link Nanoleaf Elements to Home Assistant 2022.4.7 running on a Raspberrry Pi. Whenever I try and add either set of Elements, I get a Failed To Connect error:

I’ve been struggling because most help posts re: nanoleaf are quite old and reference solutions not currently in the documentation (one involves manual config and tokens, but the manual config in the current documentation is about adding the integration manually)
I found a similar sounding bug here. so I added the folder from that thread to my config folder but no joy.
I can connect to the Elements using the Nanoleaf Android app fine.
It’s worth mentioning I’m not particularly competent - HA is by far the most complex IT system I’ve had to engage with for over a decade.

Logs!

Traceback (most recent call last):

File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn

conn = connection.create_connection(

File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 95, in create_connection

raise err

File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 85, in create_connection

sock.connect(sa)

OSError: [Errno 101] Network unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen

httplib_response = self._make_request(

File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 398, in _make_request

conn.request(method, url, **httplib_request_kw)

File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 239, in request

super(HTTPConnection, self).request(method, url, body=body, headers=headers)

File "/usr/local/lib/python3.9/http/client.py", line 1285, in request

self._send_request(method, url, body, headers, encode_chunked)

File "/usr/local/lib/python3.9/http/client.py", line 1331, in _send_request

self.endheaders(body, encode_chunked=encode_chunked)

File "/usr/local/lib/python3.9/http/client.py", line 1280, in endheaders

self._send_output(message_body, encode_chunked=encode_chunked)

File "/usr/local/lib/python3.9/http/client.py", line 1040, in _send_output

self.send(msg)

File "/usr/local/lib/python3.9/http/client.py", line 980, in send

self.connect()

File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 205, in connect

conn = self._new_conn()

File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 186, in _new_conn

raise NewConnectionError(

urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8a59dd60>: Failed to establish a new connection: [Errno 101] Network unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 440, in send

resp = conn.urlopen(

File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 785, in urlopen

retries = retries.increment(

File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 592, in increment

raise MaxRetryError(_pool, url, error or ResponseError(cause))

urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.68.107', port=80): Max retries exceeded with url: /app (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8a59dd60>: Failed to establish a new connection: [Errno 101] Network unreachable'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform

await asyncio.shield(task)

File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run

result = self.fn(*self.args, **self.kwargs)

File "/config/custom_components/tapo_p100_control/switch.py", line 44, in setup_platform

add_entities([P100Plug(p100)])

File "/config/custom_components/tapo_p100_control/switch.py", line 53, in __init__

self.update()

File "/config/custom_components/tapo_p100_control/switch.py", line 83, in update

self._p100.handshake()

File "/usr/local/lib/python3.9/site-packages/PyP100/PyP100.py", line 122, in handshake

r = self.session.post(URL, json=Payload, timeout=2)

File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 577, in post

return self.request('POST', url, data=data, json=json, **kwargs)

File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 529, in request

resp = self.send(prep, **send_kwargs)

File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 645, in send

r = adapter.send(request, **kwargs)

File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 519, in send

raise ConnectionError(e, request=request)

requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.68.107', port=80): Max retries exceeded with url: /app (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8a59dd60>: Failed to establish a new connection: [Errno 101] Network unreachable'))

2022-04-30 00:27:33 ERROR (SyncWorker_3) [custom_components.tapo_p100_control.switch] Could not connect to plug. Possibly invalid credentials

2022-04-30 00:27:33 ERROR (MainThread) [homeassistant.components.switch] Error while setting up tapo_p100_control platform for switch

Traceback (most recent call last):

File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn

conn = connection.create_connection(

File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 95, in create_connection

raise err

File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 85, in create_connection

sock.connect(sa)

OSError: [Errno 101] Network unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen

httplib_response = self._make_request(

File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 398, in _make_request

conn.request(method, url, **httplib_request_kw)

File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 239, in request

super(HTTPConnection, self).request(method, url, body=body, headers=headers)

File "/usr/local/lib/python3.9/http/client.py", line 1285, in request

self._send_request(method, url, body, headers, encode_chunked)

File "/usr/local/lib/python3.9/http/client.py", line 1331, in _send_request

self.endheaders(body, encode_chunked=encode_chunked)

File "/usr/local/lib/python3.9/http/client.py", line 1280, in endheaders

self._send_output(message_body, encode_chunked=encode_chunked)

File "/usr/local/lib/python3.9/http/client.py", line 1040, in _send_output

self.send(msg)

File "/usr/local/lib/python3.9/http/client.py", line 980, in send

self.connect()

File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 205, in connect

conn = self._new_conn()

File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 186, in _new_conn

raise NewConnectionError(

urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f94f4ed60>: Failed to establish a new connection: [Errno 101] Network unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 440, in send

resp = conn.urlopen(

File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 785, in urlopen

retries = retries.increment(

File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 592, in increment

raise MaxRetryError(_pool, url, error or ResponseError(cause))

urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.68.108', port=80): Max retries exceeded with url: /app (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f94f4ed60>: Failed to establish a new connection: [Errno 101] Network unreachable'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform

await asyncio.shield(task)

File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run

result = self.fn(*self.args, **self.kwargs)

File "/config/custom_components/tapo_p100_control/switch.py", line 44, in setup_platform

add_entities([P100Plug(p100)])

File "/config/custom_components/tapo_p100_control/switch.py", line 53, in __init__

self.update()

File "/config/custom_components/tapo_p100_control/switch.py", line 83, in update

self._p100.handshake()

File "/usr/local/lib/python3.9/site-packages/PyP100/PyP100.py", line 122, in handshake

r = self.session.post(URL, json=Payload, timeout=2)

File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 577, in post

return self.request('POST', url, data=data, json=json, **kwargs)

File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 529, in request

resp = self.send(prep, **send_kwargs)

File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 645, in send

r = adapter.send(request, **kwargs)

File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 519, in send

raise ConnectionError(e, request=request)

requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.68.108', port=80): Max retries exceeded with url: /app (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f94f4ed60>: Failed to establish a new connection: [Errno 101] Network unreachable'))

2022-04-30 00:27:39 ERROR (MainThread) [aionanoleaf.nanoleaf] You are using a test version of aionanoleaf to fix issue 67816

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 102819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>