Google-Nest Offical Device Access Console Finally Released!

Thanks a lot! Changed the link to my Nabu Casa account, all seems to work well!

Wow, 1421 posts… nice…

I found a video that helped me through this and now I’m at the end, the very end,

“Go to ‘my nabu casa URL’ (unsafe)”

I choose the link….

……

………

Nothing ever happen, blank page.

If I open the integrations page on a new browser window, the Nest option is not there.

Any help is appreciated, I have gone back over all of the steps and I get to the end and nothing.

I would suggest:

  1. Check home assistant logs for an error or info msg
  2. Check developer tools network console e.g. in chrome and look for errors
    Happy to help ffrom there if you see anything so report back how it goes

Hi, I’m pretty happy with WWG on my Nest thermostat and google hub max. I was just wondering if anybody else experiences the token expiring? normally I have to reboot HA then I can reconfigure very easily in Integrations. my token expires either once a week or every 2 weeks.

Is there a way I can tell, use linux command to retrieve token expiration date, So i can somehow alert myself it is going to expire soon?

Is there a way to force token to be renewed, if I know it is going to expire shortly.
Thanks

Hi, check out Nest - Home Assistant under the section about requiring reauth often and the changes needed to the oauth consent page in the Google cloud console. Let us know if you still have issues.

Thanks, changed OATH consent screen Publishing status to In production.
will wait a week see if my oauth token will expire 1 more time.

Yeah, the setting will apply the next time you reauthorize. You can delete and re-add the integration if you want to speed up that process.

Hi everyone. About a week ago my thermostats disappeared from my app, Home Assistant, everything. So I reconnected all of my thermostats and now I’m trying to get them re-integrated into HA. I’ve started from scratch twice but I keep getting this error message → “Something went wrong Please contact the developer of this app if the issue persists.”
Can someone point me toward what I may have done wrong? Thanks!

Never mind, got it thanks to dbrunt’s post - Google-Nest Offical Device Access Console Finally Released! - #188 by dbrunt

Anyone care to speculate whether nest protect will be added to the API? I am looking to purchase Nest Protect Smoke but I feel a bit unsure… anyone seen any information if that is on the roadmap for Google?

1 Like

Thanks for the note Allen to check the logs.

It was a very busy week or two since I last had a minute to work on this.

I tried to set it up again this evening, tried the app on my iPhone, nothing and no log, an iPad in safari, also nothing and no log and then a Chrome browser on iPad. After trying the chrome browser I did get something in the logs.

Logger: aiohttp.server
Source: helpers/config_entry_oauth2_flow.py:205
First occurred: 6:01:49 PM (5 occurrences)
Last logged: 6:01:59 PM

Error handling request
Traceback (most recent call last):
File “/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py”, line 422, in _handle_request
resp = await self._request_handler(request)
File “/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py”, line 499, in _handle
resp = await handler(request)
File “/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py”, line 119, in impl
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/security_filter.py”, line 60, in security_filter_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/forwarded.py”, line 76, in forwarded_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/request_context.py”, line 24, in request_context_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/ban.py”, line 78, in ban_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/auth.py”, line 144, in auth_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/view.py”, line 135, in handle
result = await result
File “/usr/src/homeassistant/homeassistant/components/config/config_entries.py”, line 146, in get
return await super().get(request, flow_id)
File “/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py”, line 95, in get
result = await self._flow_mgr.async_configure(flow_id)
File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 202, in async_configure
result = await self._async_handle_step(flow, cur_step[“step_id”], user_input)
File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 260, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File “/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py”, line 297, in async_step_creation
token = await self.flow_impl.async_resolve_external_data(self.external_data)
File “/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py”, line 169, in async_resolve_external_data
return await self._token_request(
File “/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py”, line 205, in _token_request
resp.raise_for_status()
File “/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py”, line 1000, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 401, message=‘Unauthorized’, url=URL(‘https://www.googleapis.com/oauth2/v4/token’)

Any help is greatly appreciated.

It looks like it’s having a problem with oauth, but its not really giving details as to why. I would suggest double checking the oauth settings against the set up instructions, and making sure you are using the same account to login that is the same as the one with the nest device. Sorry I don’t have more ideas to help yet but will keep thinking about it.

1 Like

I have been trying to set up the integration since last week but I always land at the same error as you.

Logger: aiohttp.server
Source: helpers/config_entry_oauth2_flow.py:205
First occurred: 1:20:17 PM (1 occurrences)
Last logged: 1:20:17 PM
Error handling request

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 197, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 24, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 78, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 144, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 135, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 146, in get
    return await super().get(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 95, in get
    result = await self._flow_mgr.async_configure(flow_id)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 202, in async_configure
    result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 260, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 297, in async_step_creation
    token = await self.flow_impl.async_resolve_external_data(self.external_data)
  File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 169, in async_resolve_external_data
    return await self._token_request(
  File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 205, in _token_request
    resp.raise_for_status()
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1000, in raise_for_status
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 401, message='Unauthorized', url=URL('https://www.googleapis.com/oauth2/v4/token')

I have tried with three different browsers with no luck
I am on 2021.7.1

Thanks guys

1 Like

Thanks Allen for the suggestion and thanks Pirat for sharing that you are having the same trouble.

I did run the latest HA update last night after attempting this integration again. I didn’t have time to try after the update. I’ll try this evening, and then go back through the oauth as Allen suggested.

Unfortunately like Pirat, I’m on core-2021.7.1 now so that update likely won’t fix it.

@imola.zhp
@ThePirat I remember now i added some extra logging back in Add debug logging for failed OAuth token refreshes to help users diagnose by allenporter · Pull Request #44637 · home-assistant/core · GitHub to try to help dianose this type of issue:

If you add this in your configuration.yaml then it will add some extra error code details from the logs if it is available:

logger:
  default: info
  logs:
    homeassistant.helpers.config_entry_oauth2_flow: debug

However, usually this just ends up returning invalid_grant which isn’t the most helpful.

1 Like

I’m having the same problems with OAuth, which started with the 7.1 update. It had been working for 6 months or more, now it won’t load after the update.

1 Like

Interesting, the above symptoms were about initial set up and the oauth flow. Were you asked the reauthenticate?

Given it is a server side response from Google I can’t imagine if anything changed in 7.1 that could cause it. If you roll back to a previous home assistant does the problem go away? (No home assistant nest code has changed in this integration recently)

1 Like

No prompt to reauth, just a silent failure most of the time. Is not fixed by a rollback. When there’s an error at all, it’s basically the same one Marcus posted there. I’ve had to disable the integration, otherwise it eventually crashed the whole HA.

1 Like

I’m having trouble with that given that stack trace is in the config setup flow. Is it the same exact stack trace?

Since a week ago, when I record a video with my Nest Hello, the generated file is empty. Photos and live video work fine.

I’ve been using the Nest integration fine for past few months.

However, there appears to be omitting some data items from “Nest Thermostats”

The “Away Status” appears to be missing, as a result when the target temperature is set to “eco when away” - this means the target temperature is not truly reflected in the Climate entity
open to ideas