Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tado integration returning errors #41233

Closed
marcgarciamarti opened this issue Oct 4, 2020 · 9 comments
Closed

Tado integration returning errors #41233

marcgarciamarti opened this issue Oct 4, 2020 · 9 comments

Comments

@marcgarciamarti
Copy link

marcgarciamarti commented Oct 4, 2020

My HA instance is being not very stable as described here: #40471
I'm trying to figure out whether my hardware is faulty or whether it is a specific component that is making my instance choke.
The last time I've encountered a instability (my HA instance went down) I managed to access the home-assistant.log file and spotted the error below, along with these other error messages: #41230

Environment

  • Home Assistant Core release with the issue: 0.115.2
  • Last working Home Assistant Core release (if known): unknown
  • Operating environment (OS/Container/Supervised/Core): Core
  • Integration causing this issue: tado
  • Link to integration documentation on our website:

Problem-relevant configuration.yaml

tado:
  username: !secret tado_username
  password: !secret tado_password

Traceback/Error logs

020-10-04 18:31:01 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 159, in _new_conn
    conn = connection.create_connection(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 61, 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 670, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 309, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 171, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x6af51040>: 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 726, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='auth.tado.com', port=443): Max retries exceeded with url: /oauth/token?client_id=public-api-preview&client_secret=xxxxx&grant_type=refresh_token&scope=home.user&refresh_token=XXXXXX.eyJhdWQiOlsicGFydG5lciJdLCJzdWIiOiI1YzAzMDRlNTRjZWRmZDAwMDg4NmJhMzQiLCJuYmYiOjE2MDE4Mjg0NzEsInRhZG9fc2NvcGUiOlsiaG9tZS51c2VyIl0sInRhZG9fdXNlcm5hbWUiOiJtYXJjLmdhcmNpYS5tYXJ0aUBnbWFpbC5jb20iLCJhdGkiOiJmNDdiNGMxNC01NmZlLTQ3MGMtYmI0Ni0xNWM5NmRmMjUwNmIiLCJpc3MiOiJ0YWRvIiwiZXhwIjoxNjA0NDIwNDcxLCJpYXQiOjE2MDE4Mjg0NzEsInRhZG9fY2xpZW50X2lkIjoicHVibGljLWFwaS1wcmV2aWV3IiwianRpIjoiMDc1M2JhMzAtMzE2Ni00ZTM3LThiYzMtODMzZWY3MTYyMmQwIn0.gjpoKc2aypBdpXrS9NdwpsOaRHZQxbEV540AaZa8KVL-XXXXX-b6oXVT7PxOHSHo9zcSF-nOJtBIrP38ma_ZhUuk0glPLRNew-XXXXX-Aq0O1L1yfJ65nGAUU-C5__i_2OfPXQB_mCyi0IAdmtpq-RFauQD-CAqBg (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x6af51040>: 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/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 108, in <lambda>
    lambda now: tadoconnector.update(),
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 239, in wrapper
    result = method(*args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 198, in update
    self.update_sensor("zone", zone["id"])
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 207, in update_sensor
    data = self.tado.getZoneState(sensor)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 176, in getZoneState
    return TadoZone(self.getState(zone), zone)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 183, in getState
    data = self._apiCall(cmd)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 60, in _apiCall
    self._refresh_token()
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 119, in _refresh_token
    response = self._http_session.request("post", url, params=data, timeout=self.timeout, data=json.dumps({}).encode('utf8'),
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, 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)


Additional information

@probot-home-assistant
Copy link

Hey there @michaelarnauts, @bdraco, mind taking a look at this issue as its been labeled with an integration (tado) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

@michaelarnauts
Copy link
Contributor

It indicates a connection error connecting to the Tado API. There have been recent downtime with the Tado service itself, so it might be related to that. This, or there is an issue with your internet connection (unstable?).

@marcgarciamarti
Copy link
Author

good point. I was aware of the downtime but I had not correlated the two in my head 👍

The reason why I'm opening this issue is because I'm experiencing instability with my HA (see the first issue number above). When my instance yesterday down I spotted this error along with some other error (see the issue number above).

My gut feeling is that my HA is having a hw problem (I run HA Core on a RPI 3B+ with SSD) and the consequence of this problem is being displayed in form of false positives like this very issue.

So this error in your opinion should not make an HA instance choke, right?

@marcgarciamarti
Copy link
Author

marcgarciamarti commented Oct 21, 2020

Hi again,

I keep seeing this kind of errors more and more. Yesterday and today things seem to have gone wild. These errors below seem to crash my environment.

Could you please help me out here? Is this normal at all? I have very decent internet connection so I would rule out any network related stuff on my end.

Please note that I've scrambled some of the tokens below for privacy purposes.

In line with my previous message, I've searching online and came around to finding this thread: https://community.home-assistant.io/t/hass-io-transfer-from-sd-card-to-ssd-or-usb/97452/555 I've so far extended my setup with a powered USB hub and I was positive I could have found the root cause of my problem, but between yesterday and today my monitoring system has spotted the system going down twice, but now that I review the logs in detail, I would swear it has rebooted more than twice. I really don't know where to continue looking or what to do.

Any help would be more than appreciated.

2020-10-20 16:04:39 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 159, in _new_conn
    conn = connection.create_connection(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 61, 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 670, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 309, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 171, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x5e257a78>: 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 726, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='auth.tado.com', port=443): Max retries exceeded with url: /oauth/token?client_id=public-api-preview&client_secret=yyyyyy&grant_type=refresh_token&scope=home.user&refresh_token=xxxxx.eyJhdWQiOlsicGFydG5lciJdLCJzdWIiOiI1YzAzMDRlNTRjZWRmZDAwMDg4NmJhMzQiLCJuYmYiOjE2MDMyMDIwOTIsInRhZG9fc2NvcGUiOlsiaG9tZS51c2VyIl0sInRhZG9fdXNlcm5hbWUiOiJtYXJjLmdhcmNpYS5tYXJ0aUBnbWFpbC5jb20iLCJhdGkiOiIxZDE1YTM1My0xYTExLTQwOGMtODg0NC0zMTI4NjQ2Zjc0NWUiLCJpc3MiOiJ0YWRvIiwiZXhwIjoxNjA1Nzk0MDkyLCJpYXQiOjE2MDMyMDIwOTIsInRhZG9fY2xpZW50X2lkIjoicHVibGljLWFwaS1wcmV2aWV3IiwianRpIjoiNDU2M2VjMzUtYzJmZS00Mjc3LWJhNGItZDFkYmEwMTU1NGUxIn0.1Ya_qwZA-fIro7GS6wADz1X-ufthfXkTZL2ihemx2V-gNyzHITJ3agaRStXwWMC3fX0fSUcrRYw4FUIj4-wM4JFBJGtzczoz5T92xMvUxTE8uqmR8QnV6E2pgFJ1p4M0PfKrps93zOiOzz6yIsCJ4tEvXWbrDcBms1mtqBoBsy2VaDVejredb-xxxxxx-yfUAnK-rjBsTttaAds2tAmSJJ7wO62q_xvGKTxv-rAGUWoZ2MJXD4jO72fFFVk-d46FAH64uOIH5m8E825w4oJ2F-qrGE2Jg (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x5e257a78>: 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/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 108, in <lambda>
    lambda now: tadoconnector.update(),
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 239, in wrapper
    result = method(*args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 198, in update
    self.update_sensor("zone", zone["id"])
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 207, in update_sensor
    data = self.tado.getZoneState(sensor)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 176, in getZoneState
    return TadoZone(self.getState(zone), zone)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 183, in getState
    data = self._apiCall(cmd)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 60, in _apiCall
    self._refresh_token()
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 119, in _refresh_token
    response = self._http_session.request("post", url, params=data, timeout=self.timeout, data=json.dumps({}).encode('utf8'),
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, 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='auth.tado.com', port=443): Max retries exceeded with url: /oauth/token?client_id=public-api-preview&client_secret=yyyyy&grant_type=refresh_token&scope=home.user&refresh_token=xxxxx.eyJhdWQiOlsicGFydG5lciJdLCJzdWIiOiI1YzAzMDRlNTRjZWRmZDAwMDg4NmJhMzQiLCJuYmYiOjE2MDMyMDIwOTIsInRhZG9fc2NvcGUiOlsiaG9tZS51c2VyIl0sInRhZG9fdXNlcm5hbWUiOiJtYXJjLmdhcmNpYS5tYXJ0aUBnbWFpbC5jb20iLCJhdGkiOiIxZDE1YTM1My0xYTExLTQwOGMtODg0NC0zMTI4NjQ2Zjc0NWUiLCJpc3MiOiJ0YWRvIiwiZXhwIjoxNjA1Nzk0MDkyLCJpYXQiOjE2MDMyMDIwOTIsInRhZG9fY2xpZW50X2lkIjoicHVibGljLWFwaS1wcmV2aWV3IiwianRpIjoiNDU2M2VjMzUtYzJmZS00Mjc3LWJhNGItZDFkYmEwMTU1NGUxIn0.1Ya_qwZA-fIro7GS6wADz1X-ufthfXkTZL2ihemx2V-xxxxx-xxxxxx-hKKXh70GIvuMj0ntQ4Xwbsg4vArpji7JUmUJg0KlhpwACViq3pSB_WH6zK_i1rX-yfUAnK-rjBsTttaAds2tAmSJJ7wO62q_xvGKTxv-rAGUWoZ2MJXD4jO72fFFVk-d46FAH64uOIH5m8E825w4oJ2F-qrGE2Jg (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x5e257a78>: Failed to establish a new connection: [Errno -3] Try again'))
2020-10-20 15:34:47 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 159, in _new_conn
    conn = connection.create_connection(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 61, 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 670, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 309, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 171, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x5bf7a790>: 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 726, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='auth.tado.com', port=443): Max retries exceeded with url: /oauth/token?client_id=public-api-preview&client_secret=zzzzz&grant_type=refresh_token&scope=home.user&refresh_token=zzzzz.eyJhdWQiOlsicGFydG5lciJdLCJzdWIiOiI1YzAzMDRlNTRjZWRmZDAwMDg4NmJhMzQiLCJuYmYiOjE2MDMyMDAyNzcsInRhZG9fc2NvcGUiOlsiaG9tZS51c2VyIl0sInRhZG9fdXNlcm5hbWUiOiJtYXJjLmdhcmNpYS5tYXJ0aUBnbWFpbC5jb20iLCJhdGkiOiIyMGUxOGM1NS0xNTllLTQ0MWItOGI0MS0zNzI4NGMyZTk1MzUiLCJpc3MiOiJ0YWRvIiwiZXhwIjoxNjA1NzkyMjc3LCJpYXQiOjE2MDMyMDAyNzcsInRhZG9fY2xpZW50X2lkIjoicHVibGljLWFwaS1wcmV2aWV3IiwianRpIjoiZjdmZjJiNmQtZWYyMS00YjE1LTkxNmMtODY5NDcxYjk1ZDZiIn0.n6YkyMNBQR0sdaltRO_MnTiVt95qiEnSQhlJWkLMY_ClB-xxxxx-1L1JvpJT7u8GHC7ZPOijAaL5DpUDxE8psxL8spVTke3uTJ8Q0CV6UF3wDxdWblmwBvMNv2Kds6VvM7mwhRkLBqr1QZktqjjqp9daxeTenj9InIQRFsnO74wC3t8fP9MJEHykE2zmXXOZ1r-MMRcQDHa0-lh8ayJ_UdIA (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x5bf7a790>: 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/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 108, in <lambda>
    lambda now: tadoconnector.update(),
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 239, in wrapper
    result = method(*args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 198, in update
    self.update_sensor("zone", zone["id"])
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 207, in update_sensor
    data = self.tado.getZoneState(sensor)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 176, in getZoneState
    return TadoZone(self.getState(zone), zone)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 183, in getState
    data = self._apiCall(cmd)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 60, in _apiCall
    self._refresh_token()
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 119, in _refresh_token
    response = self._http_session.request("post", url, params=data, timeout=self.timeout, data=json.dumps({}).encode('utf8'),
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, 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='auth.tado.com', port=443): Max retries exceeded with url: /oauth/token?client_id=public-api-preview&client_secret=xxxxx&grant_type=refresh_token&scope=home.user&refresh_token=yyyyy.eyJhdWQiOlsicGFydG5lciJdLCJzdWIiOiI1YzAzMDRlNTRjZWRmZDAwMDg4NmJhMzQiLCJuYmYiOjE2MDMyMDAyNzcsInRhZG9fc2NvcGUiOlsiaG9tZS51c2VyIl0sInRhZG9fdXNlcm5hbWUiOiJtYXJjLmdhcmNpYS5tYXJ0aUBnbWFpbC5jb20iLCJhdGkiOiIyMGUxOGM1NS0xNTllLTQ0MWItOGI0MS0zNzI4NGMyZTk1MzUiLCJpc3MiOiJ0YWRvIiwiZXhwIjoxNjA1NzkyMjc3LCJpYXQiOjE2MDMyMDAyNzcsInRhZG9fY2xpZW50X2lkIjoicHVibGljLWFwaS1wcmV2aWV3IiwianRpIjoiZjdmZjJiNmQtZWYyMS00YjE1LTkxNmMtODY5NDcxYjk1ZDZiIn0.xxxxxx-IBsqZpGJMJZG06wvZwJ10FNYLwPflbklFi9OTQUkthS2GxUwGkUQJcA7soHq525yv3gdaMrOzf_RZbmDn7H6p3n5vLzpMYSY3i77__Jcx3Bi6ABlgK36pOvEduXHy1eTtY0-1L1JvpJT7u8GHC7ZPOijAaL5DpUDxE8psxL8spVTke3uTJ8Q0CV6UF3wDxdWblmwBvMNv2Kds6VvM7mwhRkLBqr1QZktqjjqp9daxeTenj9InIQRFsnO74wC3t8fP9MJEHykE2zmXXOZ1r-MMRcQDHa0-lh8ayJ_UdIA (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x5bf7a790>: Failed to establish a new connection: [Errno -3] Try again'))
2020-10-20 14:17:09 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 159, in _new_conn
    conn = connection.create_connection(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 61, 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 670, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 309, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 171, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x5d2599b8>: 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 726, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='auth.tado.com', port=443): Max retries exceeded with url: /oauth/token?client_id=public-api-preview&client_secret=xxxxx&grant_type=refresh_token&scope=home.user&refresh_token=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsicGFydG5lciJdLCJzdWIiOiI1YzAzMDRlNTRjZWRmZDAwMDg4NmJhMzQiLCJuYmYiOjE2MDMxOTU2NDcsInRhZG9fc2NvcGUiOlsiaG9tZS51c2VyIl0sInRhZG9fdXNlcm5hbWUiOiJtYXJjLmdhcmNpYS5tYXJ0aUBnbWFpbC5jb20iLCJhdGkiOiI3ODNhMjZmMi1hNGZlLTQ2MWQtYWY5Yi0zNjAxMzJmYjE1NDQiLCJpc3MiOiJ0YWRvIiwiZXhwIjoxNjA1Nzg3NjQ3LCJpYXQiOjE2MDMxOTU2NDcsInRhZG9fY2xpZW50X2lkIjoicHVibGljLWFwaS1wcmV2aWV3IiwianRpIjoiMzFmODIwNzMtZThiMC00NmQwLWI4MTgtZTRjYzZiODlhNTg5In0.xxxx-5oKimoDmyUqg6JkAmegurG6gTYFMn2pCY9DfW-xxxxxx-9BeotQVnBS_gx6rRqOnRm2aMHNjgUXZmD-ej8gEGYy8jS8INUD5j4KEk020lR0Ktu2H_IVqUGbQ7zVwEfi5bweIiw-xUh7gRUDHxYGhU2IPwLd0rJPxPNZTKSmXswqJU6IMiT33dBX0JB7wn_LkBspzwIQj78Uhn0FKfXikMQ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x5d2599b8>: 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/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 108, in <lambda>
    lambda now: tadoconnector.update(),
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 239, in wrapper
    result = method(*args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 198, in update
    self.update_sensor("zone", zone["id"])
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 207, in update_sensor
    data = self.tado.getZoneState(sensor)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 176, in getZoneState
    return TadoZone(self.getState(zone), zone)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 183, in getState
    data = self._apiCall(cmd)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 60, in _apiCall
    self._refresh_token()
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 119, in _refresh_token
    response = self._http_session.request("post", url, params=data, timeout=self.timeout, data=json.dumps({}).encode('utf8'),
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, 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='auth.tado.com', port=443): Max retries exceeded with url: /oauth/token?client_id=public-api-preview&client_secret=yyyyyy&grant_type=refresh_token&scope=home.user&refresh_token=xxxxx.eyJhdWQiOlsicGFydG5lciJdLCJzdWIiOiI1YzAzMDRlNTRjZWRmZDAwMDg4NmJhMzQiLCJuYmYiOjE2MDMxOTU2NDcsInRhZG9fc2NvcGUiOlsiaG9tZS51c2VyIl0sInRhZG9fdXNlcm5hbWUiOiJtYXJjLmdhcmNpYS5tYXJ0aUBnbWFpbC5jb20iLCJhdGkiOiI3ODNhMjZmMi1hNGZlLTQ2MWQtYWY5Yi0zNjAxMzJmYjE1NDQiLCJpc3MiOiJ0YWRvIiwiZXhwIjoxNjA1Nzg3NjQ3LCJpYXQiOjE2MDMxOTU2NDcsInRhZG9fY2xpZW50X2lkIjoicHVibGljLWFwaS1wcmV2aWV3IiwianRpIjoiMzFmODIwNzMtZThiMC00NmQwLWI4MTgtZTRjYzZiODlhNTg5In0.Y8Ui7_2HTXZMM8veUsQ199kVHIT27F1nmKPzCYf1wbOu34HeJVJpVt50h9hmMlMK9qe-5oKimoDmyUqg6JkAmegurG6gTYFMn2pCY9DfW-xxxxx-9BeotQVnBS_gx6rRqOnRm2aMHNjgUXZmD-ej8gEGYy8jS8INUD5j4KEk020lR0Ktu2H_IVqUGbQ7zVwEfi5bweIiw-xUh7gRUDHxYGhU2IPwLd0rJPxPNZTKSmXswqJU6IMiT33dBX0JB7wn_LkBspzwIQj78Uhn0FKfXikMQ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x5d2599b8>: Failed to establish a new connection: [Errno -3] Try again'))
2020-10-20 13:19:10 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 159, in _new_conn
    conn = connection.create_connection(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 61, 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 670, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 309, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 171, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x5e6d5aa8>: 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 726, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='auth.tado.com', port=443): Max retries exceeded with url: /oauth/token?client_id=public-api-preview&client_secret=xxxxxxx&grant_type=refresh_token&scope=home.user&refresh_token=xxxxxx.eyJhdWQiOlsicGFydG5lciJdLCJzdWIiOiI1YzAzMDRlNTRjZWRmZDAwMDg4NmJhMzQiLCJuYmYiOjE2MDMxOTIxNjQsInRhZG9fc2NvcGUiOlsiaG9tZS51c2VyIl0sInRhZG9fdXNlcm5hbWUiOiJtYXJjLmdhcmNpYS5tYXJ0aUBnbWFpbC5jb20iLCJhdGkiOiIwMGI3NzNiMC04MWJhLTQzZGQtODdkZS1mYmE5ZDVjZmQ4YzkiLCJpc3MiOiJ0YWRvIiwiZXhwIjoxNjA1Nzg0MTY0LCJpYXQiOjE2MDMxOTIxNjQsInRhZG9fY2xpZW50X2lkIjoicHVibGljLWFwaS1wcmV2aWV3IiwianRpIjoiYjBiOTJkNzEtNjIzZi00YmM3LWI5ZTMtMTA5ZGE5NDIyMWFhIn0.w9x-KnwZ-6Xbn2bujJo0941rxi7Gd376pvOlBkpg2lwGBY5PheF0wXC6b4AneLo7xikzNkZVgte9w3kkVjur8XAgxfxhUpEkwc7dxuBG4naRsuDA0kpj_xJwavNP74GXu6XGMalXVRIy2E_Lj1lHTU10FihyRKk54F5y5cRWSWDq_TDvuTkTSRpwSKtgRjgEGN3_Bs_G33hwYm7mIecpUklWIe8Ech8xxxxxxdQ6P5JzjeiANPP9zT1xdtbycbwu8ROnTvFaOX9Z_OZtEeh1vGGQuJoI6rwds2PMnLcL6B8ydOC4UwqOm2zRgloG5R6CeXNw (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x5e6d5aa8>: 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/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 108, in <lambda>
    lambda now: tadoconnector.update(),
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 239, in wrapper
    result = method(*args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 198, in update
    self.update_sensor("zone", zone["id"])
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 207, in update_sensor
    data = self.tado.getZoneState(sensor)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 176, in getZoneState
    return TadoZone(self.getState(zone), zone)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 183, in getState
    data = self._apiCall(cmd)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 60, in _apiCall
    self._refresh_token()
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 119, in _refresh_token
    response = self._http_session.request("post", url, params=data, timeout=self.timeout, data=json.dumps({}).encode('utf8'),
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, 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)
2020-10-20 12:59:38 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 159, in _new_conn
    conn = connection.create_connection(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 61, 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 670, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 309, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 171, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x66a3b340>: 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 726, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='auth.tado.com', port=443): Max retries exceeded with url: /oauth/token?client_id=public-api-preview&client_secret=yyyyy&grant_type=refresh_token&scope=home.user&refresh_token=yyyyyyy.eyJhdWQiOlsicGFydG5lciJdLCJzdWIiOiI1YzAzMDRlNTRjZWRmZDAwMDg4NmJhMzQiLCJuYmYiOjE2MDMxOTA5OTMsInRhZG9fc2NvcGUiOlsiaG9tZS51c2VyIl0sInRhZG9fdXNlcm5hbWUiOiJtYXJjLmdhcmNpYS5tYXJ0aUBnbWFpbC5jb20iLCJhdGkiOiIzOGY1MGFlOC00NGMzLTQ3NmEtYmYyYy00ZTRkODFhZWE2MjEiLCJpc3MiOiJ0YWRvIiwiZXhwIjoxNjA1NzgyOTkyLCJpYXQiOjE2MDMxOTA5OTMsInRhZG9fY2xpZW50X2lkIjoicHVibGljLWFwaS1wcmV2aWV3IiwianRpIjoiOTM5MmNiMmItNDlmMS00OWNjLThmNWQtMTYzMjAwZmFiZmQwIn0.g_8tzHk2qYU--Qd3XoVFq2sSHuN5tnIDTospBaVZQ21Me8p5MIH-HciWZB4mQfSUrWjg4asBhROn5yL-evBTndHx7W239O54nEy7uQgTi05idL43klzmvWpsN3KkB-iv4GP2QpBykQAMhLDvCWXslsbIwfTsBY_rPk2eMiVxFXx7tok1pGeFDfvJXaMAIgPaPJfeFv2j6iA9RVBiSWLmoB38aWiHqDG1dQ7w91-FyG3_zPMF5FyxjWwDBvPLyTEIjC06Dg5ax-2roxNFGfLUmI_moMZgzzNGg7E3DlwJWCD9Fm-V5lOtfRckf7x9fo0_oGI1BiUSX197_X32NV4gQA (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x66a3b340>: 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/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 108, in <lambda>
    lambda now: tadoconnector.update(),
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 239, in wrapper
    result = method(*args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 198, in update
    self.update_sensor("zone", zone["id"])
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 207, in update_sensor
    data = self.tado.getZoneState(sensor)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 176, in getZoneState
    return TadoZone(self.getState(zone), zone)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 183, in getState
    data = self._apiCall(cmd)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 60, in _apiCall
    self._refresh_token()
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 119, in _refresh_token
    response = self._http_session.request("post", url, params=data, timeout=self.timeout, data=json.dumps({}).encode('utf8'),
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, 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='auth.tado.com', port=443): Max retries exceeded with url: /oauth/token?client_id=public-api-preview&client_secret=xxxxxxx&grant_type=refresh_token&scope=home.user&refresh_token=xxxxxxxx.eyJhdWQiOlsicGFydG5lciJdLCJzdWIiOiI1YzAzMDRlNTRjZWRmZDAwMDg4NmJhMzQiLCJuYmYiOjE2MDMxOTA5OTMsInRhZG9fc2NvcGUiOlsiaG9tZS51c2VyIl0sInRhZG9fdXNlcm5hbWUiOiJtYXJjLmdhcmNpYS5tYXJ0aUBnbWFpbC5jb20iLCJhdGkiOiIzOGY1MGFlOC00NGMzLTQ3NmEtYmYyYy00ZTRkODFhZWE2MjEiLCJpc3MiOiJ0YWRvIiwiZXhwIjoxNjA1NzgyOTkyLCJpYXQiOjE2MDMxOTA5OTMsInRhZG9fY2xpZW50X2lkIjoicHVibGljLWFwaS1wcmV2aWV3IiwianRpIjoiOTM5MmNiMmItNDlmMS00OWNjLThmNWQtMTYzMjAwZmFiZmQwIn0.g_8tzHk2qYU--xxxxxx-HciWZB4mQfSUrWjg4asBhROn5yL-evBTndHx7W239O54nEy7uQgTi05idL43klzmvWpsN3KkB-iv4GP2QpBykQAMhLDvCWXslsbIwfTsBY_rPk2eMiVxFXx7tok1pGeFDfvJXaMAIgPaPJfeFv2j6iA9RVBiSWLmoB38aWiHqDG1dQ7w91-FyG3_zPMF5FyxjWwDBvPLyTEIjC06Dg5ax-2roxNFGfLUmI_moMZgzzNGg7E3DlwJWCD9Fm-xxxxxx (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x66a3b340>: Failed to establish a new connection: [Errno -3] Try again'))
2020-10-20 12:01:39 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 159, in _new_conn
    conn = connection.create_connection(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 61, 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 670, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 309, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 171, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x5d104fe8>: 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 726, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='auth.tado.com', port=443): Max retries exceeded with url: /oauth/token?client_id=public-api-preview&client_secret=yyyyyy&grant_type=refresh_token&scope=home.user&refresh_token=xxxxxxxxx.eyJhdWQiOlsicGFydG5lciJdLCJzdWIiOiI1YzAzMDRlNTRjZWRmZDAwMDg4NmJhMzQiLCJuYmYiOjE2MDMxODc1MTUsInRhZG9fc2NvcGUiOlsiaG9tZS51c2VyIl0sInRhZG9fdXNlcm5hbWUiOiJtYXJjLmdhcmNpYS5tYXJ0aUBnbWFpbC5jb20iLCJhdGkiOiI1ZjIyMjEwYS0wMzQxLTQ1N2ItOWRlNS0zOTJlMTRkMjE1Y2EiLCJpc3MiOiJ0YWRvIiwiZXhwIjoxNjA1Nzc5NTE1LCJpYXQiOjE2MDMxODc1MTUsInRhZG9fY2xpZW50X2lkIjoicHVibGljLWFwaS1wcmV2aWV3IiwianRpIjoiNmZjZjE4NzUtZjYzYi00YTYwLTg3YzgtODU4NGU5ZTQ4MDk3In0.zzsm9QIY6MZ9v51x5dkX8QUc5X4WOxYG17pvONbSwv1x59csviZZnf0CTn_kgZzdRpUr0lCE-LeRaDSOu5lyu2JGYJugE6uBpOc_fTGSmU0eJ26DfF3ASin6qcITmfurdn_SF8BUEKrhfvRGGEK-KJHr_wZvzOZa6E3LEZdsLmi1HZxcxH2fi0agtIoPthvQYnTSdmSnBY5GiY_b39TcqAySF57AD0MVtv79im2MyQfW-ZcDKAShZ_Dd483ShAlaCNEM8-xxxxx (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x5d104fe8>: 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/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 108, in <lambda>
    lambda now: tadoconnector.update(),
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 239, in wrapper
    result = method(*args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 198, in update
    self.update_sensor("zone", zone["id"])
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 207, in update_sensor
    data = self.tado.getZoneState(sensor)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 176, in getZoneState
    return TadoZone(self.getState(zone), zone)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 183, in getState
    data = self._apiCall(cmd)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 60, in _apiCall
    self._refresh_token()
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 119, in _refresh_token
    response = self._http_session.request("post", url, params=data, timeout=self.timeout, data=json.dumps({}).encode('utf8'),
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, 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='auth.tado.com', port=443): Max retries exceeded with url: /oauth/token?client_id=public-api-preview&client_secret=zzzzzzz&grant_type=refresh_token&scope=home.user&refresh_token=yyyyyyy.eyJhdWQiOlsicGFydG5lciJdLCJzdWIiOiI1YzAzMDRlNTRjZWRmZDAwMDg4NmJhMzQiLCJuYmYiOjE2MDMxODc1MTUsInRhZG9fc2NvcGUiOlsiaG9tZS51c2VyIl0sInRhZG9fdXNlcm5hbWUiOiJtYXJjLmdhcmNpYS5tYXJ0aUBnbWFpbC5jb20iLCJhdGkiOiI1ZjIyMjEwYS0wMzQxLTQ1N2ItOWRlNS0zOTJlMTRkMjE1Y2EiLCJpc3MiOiJ0YWRvIiwiZXhwIjoxNjA1Nzc5NTE1LCJpYXQiOjE2MDMxODc1MTUsInRhZG9fY2xpZW50X2lkIjoicHVibGljLWFwaS1wcmV2aWV3IiwianRpIjoiNmZjZjE4NzUtZjYzYi00YTYwLTg3YzgtODU4NGU5ZTQ4MDk3In0.zzsm9QIY6MZ9v51x5dkX8QUc5X4WOxYG17pvONbSwv1x59csviZZnf0CTn_kgZzdRpUr0lCE-LeRaDSOu5lyu2JGYJugE6uBpOc_fTGSmU0eJ26DfF3ASin6qcITmfurdn_SF8BUEKrhfvRGGEK-zzzzziizz-ZcDKAShZ_Dd483ShAlaCNEM8-cK0sMuS1DAUK9Ww7YaO9OhVFHGTuSCgJ4CozhP0DJaHOSGIJ5dDc7LHpme_ZGhBC2ZXgaZuDncbFr59g (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x5d104fe8>: Failed to establish a new connection: [Errno -3] Try again'))
2020-10-20 10:44:43 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 159, in _new_conn
    conn = connection.create_connection(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 61, 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 670, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 309, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 171, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x66afcdd8>: 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 726, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='auth.tado.com', port=443): Max retries exceeded with url: /oauth/token?client_id=public-api-preview&client_secret=4HJGRffVR8xb3XdEUQpjgZ1VplJi6Xgw&grant_type=refresh_token&scope=home.user&refresh_token=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsicGFydG5lciJdLCJzdWIiOiI1YzAzMDRlNTRjZWRmZDAwMDg4NmJhMzQiLCJuYmYiOjE2MDMxODI4NTQsInRhZG9fc2NvcGUiOlsiaG9tZS51c2VyIl0sInRhZG9fdXNlcm5hbWUiOiJtYXJjLmdhcmNpYS5tYXJ0aUBnbWFpbC5jb20iLCJhdGkiOiJhZjAyM2JjYi1lN2UxLTQ5OWUtOTBjOS0zMjFiZDMzZDJlYzgiLCJpc3MiOiJ0YWRvIiwiZXhwIjoxNjA1Nzc0ODU0LCJpYXQiOjE2MDMxODI4NTQsInRhZG9fY2xpZW50X2lkIjoicHVibGljLWFwaS1wcmV2aWV3IiwianRpIjoiZThmYjk3YWMtYmMxYi00M2ZmLWJhNDUtZmViNTBkZjQxMzVkIn0.Urwe4Y40g9cyyCd8RKxzQAGadzflYUolbFncH-02i97rLY83ISLEhLytTvfzDcF5KPcCuTt5DNlWJ2MN7hNK9D_4ntW9DN-QJxk063snEbBzyEI9j9PP1VncLTob-sYv20rhAIbi_3iOOnnf5WYV4NqgT-arDifXaiJE1RHY-neZCm-I4ugXDrvRjrX9dkQTA3dwc3D8sLkqJidvWYopalRvU06il6ZuS0KCeyADgMjve2B9Yvhtd0yGUWZ5bsTL7_hOqPjWvp0RZOePrf2DOo53Pj_tpirlULEtAzF3seO5OTAQcwbOMCd80PC9J5yyC7bgg5ign4lVtk3ipfne_g (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x66afcdd8>: 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/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 108, in <lambda>
    lambda now: tadoconnector.update(),
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 239, in wrapper
    result = method(*args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 198, in update
    self.update_sensor("zone", zone["id"])
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 207, in update_sensor
    data = self.tado.getZoneState(sensor)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 176, in getZoneState
    return TadoZone(self.getState(zone), zone)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 183, in getState
    data = self._apiCall(cmd)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 60, in _apiCall
    self._refresh_token()
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 119, in _refresh_token
    response = self._http_session.request("post", url, params=data, timeout=self.timeout, data=json.dumps({}).encode('utf8'),
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, 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='auth.tado.com', port=443): Max retries exceeded with url: /oauth/token?client_id=public-api-preview&client_secret=yyyyyyy&grant_type=refresh_token&scope=home.user&refresh_token=yyyyyy.eyJhdWQiOlsicGFydG5lciJdLCJzdWIiOiI1YzAzMDRlNTRjZWRmZDAwMDg4NmJhMzQiLCJuYmYiOjE2MDMxODI4NTQsInRhZG9fc2NvcGUiOlsiaG9tZS51c2VyIl0sInRhZG9fdXNlcm5hbWUiOiJtYXJjLmdhcmNpYS5tYXJ0aUBnbWFpbC5jb20iLCJhdGkiOiJhZjAyM2JjYi1lN2UxLTQ5OWUtOTBjOS0zMjFiZDMzZDJlYzgiLCJpc3MiOiJ0YWRvIiwiZXhwIjoxNjA1Nzc0ODU0LCJpYXQiOjE2MDMxODI4NTQsInRhZG9fY2xpZW50X2lkIjoicHVibGljLWFwaS1wcmV2aWV3IiwianRpIjoiZThmYjk3YWMtYmMxYi00M2ZmLWJhNDUtZmViNTBkZjQxMzVkIn0.Urwe4Y40g9cyyCd8RKxzQAGadzflYUolbFncH-yyyyy-QJxk063snEbBzyEI9j9PP1VncLTob-sYv20rhAIbi_3iOOnnf5WYV4NqgT-yyyyy-neZCm-I4ugXDrvRjrX9dkQTA3dwc3D8sLkqJidvWYopalRvU06il6ZuS0KCeyADgMjve2B9Yvhtd0yGUWZ5bsTL7_hOqPjWvp0RZOePrf2DOo53Pj_tpirlULEtAzF3seO5OTAQcwbOMCd80PC9J5yyC7bgg5ign4lVtk3ipfne_g (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x66afcdd8>: Failed to establish a new connection: [Errno -3] Try again'))
2020-10-20 10:33:47 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 159, in _new_conn
    conn = connection.create_connection(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 61, 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 670, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 309, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 171, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x5d2bc220>: 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 726, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='auth.tado.com', port=443): Max retries exceeded with url: /oauth/token?client_id=public-api-preview&client_secret=yyyyyy&grant_type=refresh_token&scope=home.user&refresh_token=yyyyyy.eyJhdWQiOlsicGFydG5lciJdLCJzdWIiOiI1YzAzMDRlNTRjZWRmZDAwMDg4NmJhMzQiLCJuYmYiOjE2MDMxODIyNDEsInRhZG9fc2NvcGUiOlsiaG9tZS51c2VyIl0sInRhZG9fdXNlcm5hbWUiOiJtYXJjLmdhcmNpYS5tYXJ0aUBnbWFpbC5jb20iLCJhdGkiOiIzMzJmNzA2NC05NDQyLTQ2NzItYmNiYy1mM2UyYjFiYWI4YjQiLCJpc3MiOiJ0YWRvIiwiZXhwIjoxNjA1Nzc0MjQxLCJpYXQiOjE2MDMxODIyNDEsInRhZG9fY2xpZW50X2lkIjoicHVibGljLWFwaS1wcmV2aWV3IiwianRpIjoiYWIzY2VhNWItMTIyYy00ODVjLWJiZWYtN2I4YmE0ZGU3YmQ1In0.IiNJaew-exp27wUIziIj28WCSav-FgPFNw0H4IRRGrHZ0eTQECvldW5sEU7LQpMo5_DDSFgAZ_1U8iwepYEFaPx-yyyyy-5kVEfn4ufBoxJ_cKgOAnrff8oMAB9T-1eFISAWvAUkAppaiEi0vziYNg2RdtthVFlH2RBpUAeLnfhrl_D_XsJhDQ7RjTbZj_RdsQ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x5d2bc220>: 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/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 108, in <lambda>
    lambda now: tadoconnector.update(),
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 239, in wrapper
    result = method(*args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 198, in update
    self.update_sensor("zone", zone["id"])
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 207, in update_sensor
    data = self.tado.getZoneState(sensor)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 176, in getZoneState
    return TadoZone(self.getState(zone), zone)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 183, in getState
    data = self._apiCall(cmd)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 60, in _apiCall
    self._refresh_token()
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 119, in _refresh_token
    response = self._http_session.request("post", url, params=data, timeout=self.timeout, data=json.dumps({}).encode('utf8'),
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, 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='auth.tado.com', port=443): Max retries exceeded with url: /oauth/token?client_id=public-api-preview&client_secret=xxxxxxx&grant_type=refresh_token&scope=home.user&refresh_token=xxxxxxx.eyJhdWQiOlsicGFydG5lciJdLCJzdWIiOiI1YzAzMDRlNTRjZWRmZDAwMDg4NmJhMzQiLCJuYmYiOjE2MDMxODIyNDEsInRhZG9fc2NvcGUiOlsiaG9tZS51c2VyIl0sInRhZG9fdXNlcm5hbWUiOiJtYXJjLmdhcmNpYS5tYXJ0aUBnbWFpbC5jb20iLCJhdGkiOiIzMzJmNzA2NC05NDQyLTQ2NzItYmNiYy1mM2UyYjFiYWI4YjQiLCJpc3MiOiJ0YWRvIiwiZXhwIjoxNjA1Nzc0MjQxLCJpYXQiOjE2MDMxODIyNDEsInRhZG9fY2xpZW50X2lkIjoicHVibGljLWFwaS1wcmV2aWV3IiwianRpIjoiYWIzY2VhNWItMTIyYy00ODVjLWJiZWYtN2I4YmE0ZGU3YmQ1In0.IiNJaew-exp27wUIziIj28WCSav-FgPFNw0H4IRRGrHZ0eTQECvldW5sEU7LQpMo5_DDSFgAZ_1U8iwepYEFaPx-xxxxxx-5kVEfn4ufBoxJ_cKgOAnrff8oMAB9T-1eFISAWvAUkAppaiEi0vziYNg2RdtthVFlH2RBpUAeLnfhrl_D_XsJhDQ7RjTbZj_RdsQ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x5d2bc220>: Failed to establish a new connection: [Errno -3] Try again'))
2020-10-20 10:34:02 WARNING (SyncWorker_3) [homeassistant.components.efergy.sensor] Could not update status for Energy Usage
2020-10-20 10:34:03 ERROR (SyncWorker_28) [homeassistant] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 159, in _new_conn
    conn = connection.create_connection(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 61, 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 670, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 309, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 171, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x66afcb38>: 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 726, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='auth.tado.com', port=443): Max retries exceeded with url: /oauth/token?client_id=public-api-preview&client_secret=yyyyyyy&grant_type=refresh_token&scope=home.user&refresh_token=yyyyyyyy.eyJhdWQiOlsicGFydG5lciJdLCJzdWIiOiI1YzAzMDRlNTRjZWRmZDAwMDg4NmJhMzQiLCJuYmYiOjE2MDMxODIyNDEsInRhZG9fc2NvcGUiOlsiaG9tZS51c2VyIl0sInRhZG9fdXNlcm5hbWUiOiJtYXJjLmdhcmNpYS5tYXJ0aUBnbWFpbC5jb20iLCJhdGkiOiIzMzJmNzA2NC05NDQyLTQ2NzItYmNiYy1mM2UyYjFiYWI4YjQiLCJpc3MiOiJ0YWRvIiwiZXhwIjoxNjA1Nzc0MjQxLCJpYXQiOjE2MDMxODIyNDEsInRhZG9fY2xpZW50X2lkIjoicHVibGljLWFwaS1wcmV2aWV3IiwianRpIjoiYWIzY2VhNWItMTIyYy00ODVjLWJiZWYtN2I4YmE0ZGU3YmQ1In0.IiNJaew-exp27wUIziIj28WCSav-FgPFNw0H4IRRGrHZ0eTQECvldW5sEU7LQpMo5_DDSFgAZ_1U8iwepYEFaPx-HSOIQK9MINFBQvPGd4kTEfaoWFWteTBaR55f8xiQL35UdgtPdcbo5swjSibt4yiBwZJn7t3qQEvHmfxrRlOXkdyCvTZzD2r0_6Q1Rpl_RrORvIeW64z_LlbF8TT_zNcjCnmDN0oLWtq6BAwn8FnlodbBh-5kVEfn4ufBoxJ_cKgOAnrff8oMAB9T-uuuuu (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x66afcb38>: 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/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 108, in <lambda>
    lambda now: tadoconnector.update(),
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 239, in wrapper
    result = method(*args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 198, in update
    self.update_sensor("zone", zone["id"])
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 207, in update_sensor
    data = self.tado.getZoneState(sensor)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 176, in getZoneState
    return TadoZone(self.getState(zone), zone)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 183, in getState
    data = self._apiCall(cmd)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 60, in _apiCall
    self._refresh_token()
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 119, in _refresh_token
    response = self._http_session.request("post", url, params=data, timeout=self.timeout, data=json.dumps({}).encode('utf8'),
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, 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='auth.tado.com', port=443): Max retries exceeded with url: /oauth/token?client_id=public-api-preview&client_secret=xxxxxx&grant_type=refresh_token&scope=home.user&refresh_token=xxxxxx.eyJhdWQiOlsicGFydG5lciJdLCJzdWIiOiI1YzAzMDRlNTRjZWRmZDAwMDg4NmJhMzQiLCJuYmYiOjE2MDMxODIyNDEsInRhZG9fc2NvcGUiOlsiaG9tZS51c2VyIl0sInRhZG9fdXNlcm5hbWUiOiJtYXJjLmdhcmNpYS5tYXJ0aUBnbWFpbC5jb20iLCJhdGkiOiIzMzJmNzA2NC05NDQyLTQ2NzItYmNiYy1mM2UyYjFiYWI4YjQiLCJpc3MiOiJ0YWRvIiwiZXhwIjoxNjA1Nzc0MjQxLCJpYXQiOjE2MDMxODIyNDEsInRhZG9fY2xpZW50X2lkIjoicHVibGljLWFwaS1wcmV2aWV3IiwianRpIjoiYWIzY2VhNWItMTIyYy00ODVjLWJiZWYtN2I4YmE0ZGU3YmQ1In0.IiNJaew-exp27wUIziIj28WCSav-FgPFNw0H4IRRGrHZ0eTQECvldW5sEU7LQpMo5_DDSFgAZ_1U8iwepYEFaPx-HSOIQK9MINFBQvPGd4kTEfaoWFWteTBaR55f8xiQL35UdgtPdcbo5swjSibt4yiBwZJn7t3qQEvHmfxrRlOXkdyCvTZzD2r0_6Q1Rpl_RrORvIeW64z_LlbF8TT_zNcjCnmDN0oLWtq6BAwn8FnlodbBh-5kVEfn4ufBoxJ_cKgOAnrff8oMAB9T-xxxxx (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x66afcb38>: Failed to establish a new connection: [Errno -3] Try again'))

@marcgarciamarti
Copy link
Author

This keeps happening to me

2020-10-26 13:36:11 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 426, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 421, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/local/lib/python3.8/http/client.py", line 1347, in getresponse
    response.begin()
  File "/usr/local/lib/python3.8/http/client.py", line 307, in begin
    version, status, reason = self._read_status()
  File "/usr/local/lib/python3.8/http/client.py", line 268, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/local/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/usr/local/lib/python3.8/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/local/lib/python3.8/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
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 726, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 403, 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 670, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 426, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 421, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/local/lib/python3.8/http/client.py", line 1347, in getresponse
    response.begin()
  File "/usr/local/lib/python3.8/http/client.py", line 307, in begin
    version, status, reason = self._read_status()
  File "/usr/local/lib/python3.8/http/client.py", line 268, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/local/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/usr/local/lib/python3.8/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/local/lib/python3.8/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
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/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/tado/__init__.py", line 108, in <lambda>
    lambda now: tadoconnector.update(),
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 239, in wrapper
    result = method(*args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 198, in update
    self.update_sensor("zone", zone["id"])
  File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 207, in update_sensor
    data = self.tado.getZoneState(sensor)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 176, in getZoneState
    return TadoZone(self.getState(zone), zone)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 183, in getState
    data = self._apiCall(cmd)
  File "/usr/local/lib/python3.8/site-packages/PyTado/interface.py", line 76, in _apiCall
    response = self._http_session.request(method, url, timeout=self.timeout,
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, 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'))
2020-10-26 13:36:14 WARNING (MainThread) [homeassistant.components.onvif] Couldn't connect to camera 'HD IPC', but will retry later. Error: Cannot connect to host 192.168.1.34:80 ssl:default [Connect call failed ('192.168.1.34', 80)]
2020-10-26 13:36:14 WARNING (MainThread) [homeassistant.config_entries] Config entry for onvif not ready yet. Retrying in 80 seconds

@mountainsandcode
Copy link
Contributor

I had the same issue but realized I seemed to be having DNS issues in the Docker container I was using. Can you check if you can ping auth.tado.com?

@ManuelAbril
Copy link

I am having the same error. I checked the ping was successful

@Noltari
Copy link
Contributor

Noltari commented Feb 8, 2021

This should have been fixed with #44770

@github-actions
Copy link

github-actions bot commented May 9, 2021

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label May 9, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jun 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants