Can't get nest integration to work, maybe something with SSL?

I have been trying for a few days to get nest integration to work. I get through all of the steps in configuration, through linking my account via my.home-assist.io/redirect/oauth/, but after clicking Link Account I get a blank error:
image

In logs I have this error, which leads me to believe there is some issue with http vs https. I have configured duckdns reverse proxy, and have forwarded port 8123 to my home assistant instance. I regularly access the server through https://[mydomain].duckdns.org:8123/ with no problem.

I’ve tried recreating everything from scratch and deleting the credentials several times to no avail. I’ve also disabled ipv6.

Please help! Not sure where to turn next.

Logger: aiohttp.server
Source: /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:448
First occurred: 9:42:46 AM (2 occurrences)
Last logged: 9:54:01 AM

Error handling request
Traceback (most recent call last):
File “/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py”, line 477, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py”, line 559, in _handle
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py”, line 117, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/security_filter.py”, line 92, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/forwarded.py”, line 210, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/request_context.py”, line 26, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/ban.py”, line 86, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/auth.py”, line 242, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/headers.py”, line 32, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/http.py”, line 73, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/decorators.py”, line 81, in with_admin
return await func(self, request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/config/config_entries.py”, line 215, in get
return await super().get(request, flow_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py”, line 108, in get
result = await self._flow_mgr.async_configure(flow_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 367, in async_configure
result = await self._async_configure(flow_id, user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 414, in _async_configure
result = await self._async_handle_step(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 517, in _async_handle_step
result: _FlowResultT = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py”, line 361, in async_step_creation
return await self.async_oauth_create_entry(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/nest/config_flow.py”, line 133, in async_oauth_create_entry
return await self.async_step_pubsub()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/nest/config_flow.py”, line 261, in async_step_pubsub
eligible_topics = await self._admin_client.list_eligible_topics(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/google_nest_sdm/admin_client.py”, line 217, in list_eligible_topics
(sdm_topic_task, cloud_topics_task) = await asyncio.gather(
^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/google_nest_sdm/admin_client.py”, line 210, in get_cloud_topics
return await self.list_topics(f"projects/{self._cloud_project_id}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/google_nest_sdm/admin_client.py”, line 141, in list_topics
return [topic[“name”] for topic in response[“topics”]]
~~~~~~~~^^^^^^^^^^
KeyError: ‘topics’

I have the same exact issue. Do you by any chance have MFA enabled? I suspect it could be something to do with that

I have MFA enabled for google, not for home assistant. should i temporarily disable it for google to set up nest integration?

Just tried to disable MFA for google, which did not work.

I’m trying this now:

Ok, so apparently it will be fixed with an upcoming HA patch, or we could roll back to an older version. I assume you too are on 2024.11.0

ah, yes, also on 2024.11.0. Okay i’ll stop banging my head against the wall on this one and just wait for the update. thank you!!

just saw an update was pushed. was able to get through the blank screen but now seeing this error. the pub/sub topic name matches my device access console, but i still get unknown error occurred.

Same issue here. I thought there was something wrong with my HA install but this seems to be a bug.
image

For me I find a simple web page refresh helps a lot at the point of linking the account.
As you’re signed in to the developer pages of Google with your account, but the time you get to the link account part of the process, swapping from ha<>Web page etc, a page refresh is needed to get the correct page up to actually link your account and sign in and select permissions.
I’m not making any promises but I had a few funny pages/errors come up when I was doing my Google/Google nest integrations, and got rather confused at a couple of points, so it could just be as simple as tapping that F5/crtl & F5 combo to get you right, maybe!

Also, core 2024.11.1 had been pushed, so you should have an update available

Also same bug - Nest: Configure Cloud Pub/Sub topic: Unknown error occurred

Does Required Scopes = https://www.googleapis.com/auth/sdm.service matter?

I am having the same issue, for a few days now, and I just added the scope sdm.service and now I am waiting for google to respond (4-6 weeks)

HA:
Core 2024.11.1
Supervisor: 2024.11.2

Reported fix incoming with HA 2024.11.2 (expeced on November 15)

1 Like

Integration now works in 2024.11.2