Nest does not confirm in Hass.IO

I can get Nest to show up in a window with a Configure button. But when I click it and try to authorize, it sits there for a while like it’s working, then it says “Called Configurator” and then just does nothing. No idea what is going on. Here are some details.

  • Port 9553 is forwarded from public 9553 to local 9553. (Incoming)
  • Port 9553 locally triggers listening for public port 9553. (Outgoing)
  • Nest worked just fine on the AIO installer
  • I already have the Client ID and Client Secret set up.
  • Hass.IO is set up to be accessible publicly and is encrypted.

Let me know of anything else you need. I just need to get my HVAC and automations working properly again. Mornings are freezing.

1 Like

I have the exact same issue.

Any solutions?

Error code;
Log Details (ERROR)
Tue Dec 19 2017 22:17:57 GMT-0600 (Central Standard Time)

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3.6/site-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, 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/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn
    conn.connect()
  File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 284, in connect
    conn = self._new_conn()
  File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x729130b0>: 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/lib/python3.6/site-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3.6/site-packages/urllib3/util/retry.py", line 388, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.home.nest.com', port=443): Max retries exceeded with url: /oauth2/access_token (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x729130b0>: 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/lib/python3.6/asyncio/tasks.py", line 182, in _step
    result = coro.throw(exc)
  File "/usr/lib/python3.6/site-packages/homeassistant/core.py", line 1031, in _event_to_service_call
    yield from service_handler.func(service_call)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/configurator.py", line 224, in async_handle_service_call
    call.data.get(ATTR_FIELDS, {}))
  File "/usr/lib/python3.6/asyncio/futures.py", line 332, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
    future.result()
  File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
    raise self._exception
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/nest.py", line 67, in nest_configuration_callback
    setup_nest(hass, nest, config, pin=pin)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/nest.py", line 85, in setup_nest
    nest.request_token(pin)
  File "/usr/lib/python3.6/site-packages/nest/nest.py", line 1551, in request_token
    self._session.auth.login()
  File "/usr/lib/python3.6/site-packages/nest/nest.py", line 138, in login
    response = post(ACCESS_TOKEN_URL, data=data, headers=headers)
  File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 555, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3.6/site-packages/requests/adapters.py", line 508, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.home.nest.com', port=443): Max retries exceeded with url: /oauth2/access_token (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x729130b0>: Failed to establish a new connection: [Errno -3] Try again',))

Turned off pi-hole and it worked. It doesn’t show that it is blocking it, but something is up with dns that prevents the connection.

Wiped the drive and started from scratch. I jumped into nest right away. Verified within a second.

Then setup DuckDNS and encryption to get Google Home going, Verified within 3 seconds.

Then tried installing PiHole. I can’t get it to load now. But the first time I tried, I got a nest error. Could have been a fluke, but I think PiHole is the culprit. I may hop on over to the git page and post an issue there. Though I’m not sure I can replicate the issue.