-
Notifications
You must be signed in to change notification settings - Fork 29
Home connect stops working after a few days #125
Comments
This means the integration cannot connect to the API server. Most likely an issue with the API server or your network. |
Thank you for the reply. No other connection issues with other integrations on homeassistant, and the “home connect” continues to function and report the dishwasher program time. When I restart the home assistant, the dishwasher reports to homeassistant again. `self._connect() During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
The thing with this issue is: even if it’s a connection issue. Shouldn’t this be handled gracefully and retried after say 5 |
In case it's useful, here's the latest logs from a home connect integration on Home Assistant that stopped working. It might be chance, but seems to happen ifthe door is opened during the program. During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): Does anyone have a hint for me? Everything else on my network e.g. Home Assistant is working fine reading URLs from other integrations. |
Still restarting HA because this integration fails with
I suspect the code needs to refresh the token, as per this issue - token not renewing #116 - lots of examples here of how to fix, if anyone has the ability/if David is accepting pull requests: |
Similar issues here. Seems to only work occasionally at best. Even when I now restart HA I directly receive an error regarding token expiration. No correct status is being delivered to my HA.
|
As stated in the other issue: token refresh is handled by Home Assistant core, so this repository is the wrong place to report issues with it, unless you have a reason to expect that something specific to this beta version is causing the issue. I'm still not closing this issue because the graceful reconnects suggested above would be a useful improvement. But I don't expect to have time working on it. |
Do you know where I could report this on the HA side? Is it the same as this issue ? |
No, looks like a different issue. Not sure what you mean be "where you could report it", as an issue obviously... |
I’m not sure how to report it. You say “it’s not an issue with my software, it’s home assistant core”. I just don’t know where to begin. Is there any chance you could create the correct issue with them and I could follow it up? All I know is that my dishwasher is saying “program ready to start”, and I’m getting lots of errors about tokens. |
I'm having this problem too. |
After a few days of working fine, I get:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/homeconnect/sseclient.py", line 81, in next
next_chunk = next(self.resp_iterator)
File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 760, in generate
raise ConnectionError(e)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.home-connect.com', port=443): Read timed out.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 169, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 73, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/local/lib/python3.8/socket.py", line 918, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again
During handling of the above exception, another exception occurred:
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 382, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 353, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 181, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0xac0b9700>: Failed to establish a new connection: [Errno -3] Try again
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 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.home-connect.com', port=443): Max retries exceeded with url: /api/homeappliances/400070520344025240/events (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xac0b9700>: Failed to establish a new connection: [Errno -3] Try again'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.8/site-packages/homeconnect/api.py", line 236, in _listen
self._listen(sse, callback=callback)
File "/usr/local/lib/python3.8/site-packages/homeconnect/api.py", line 236, in _listen
self._listen(sse, callback=callback)
File "/usr/local/lib/python3.8/site-packages/homeconnect/api.py", line 236, in _listen
self._listen(sse, callback=callback)
[Previous line repeated 8 more times]
File "/usr/local/lib/python3.8/site-packages/homeconnect/api.py", line 226, in _listen
for event in sse:
File "/usr/local/lib/python3.8/site-packages/homeconnect/sseclient.py", line 91, in next
self._connect()
File "/usr/local/lib/python3.8/site-packages/homeconnect/sseclient.py", line 56, in _connect
self.resp = requester.get(self.url, stream=True, **self.requests_kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests_oauthlib/oauth2_session.py", line 515, in request
return super(OAuth2Session, self).request(
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 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.home-connect.com', port=443): Max retries exceeded with url: /api/homeappliances/400070520344025240/events (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xac0b9700>: Failed to establish a new connection: [Errno -3] Try again'))
The only workaround I have found is to continually restart home assistant.
The text was updated successfully, but these errors were encountered: