core: Failed setup, will retry: Device manager error: Internal Server Error response from API (500): INTERNAL (500): Internal error encountered.
The problem
I’ve been using the nest integration for some time without issue. but following a HA restart on the 27th June, The integration is failing to load, giving the error “Failed setup, will retry: Device manager error: Internal Server Error response from API (500): INTERNAL (500): Internal error encountered.”. I’ve run through the setup process for developer project, pub/sub and device manager again to double check everything. The only thing that seemed to need updating was the topic, I think it was auto create previously but now needs to be specified. Following this change, I remove the devices/integration and ran back through setup in HA, it all auth’s fine, I select the new topic and looking at the debug it looks ok. but then the above.
Following this, I’ve tried to use google oauth playground to test that I can retrieve a device list, but here I’m getting Internal Server Error again. This would point me towards it not being the integration but more google but I’m really not sure what I’m going with the playground (I used GPT to help me through it).
Thought I’d give it a few days in case it resolved itself or someone else says there’s an issue. But still getting the problem and no one seems to have mentioned it, so thought I’d post.
What version of Home Assistant Core has the issue?
core-2025.6.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
nest
Link to integration documentation on our website
https://www.home-assistant.io/integrations/nest#troubleshooting
Diagnostics information
2025-06-30 04:34:14.492 DEBUG (MainThread) [google_nest_sdm.google_nest_subscriber] Starting subscription projects/home-assistant-nest-{possible identifier}/subscriptions/home-assistant-nest-sub 2025-06-30 04:34:14.492 DEBUG (MainThread) [google_nest_sdm.streaming_manager] Connecting with streaming pull 2025-06-30 04:34:14.492 DEBUG (MainThread) [google_nest_sdm.subscriber_client] Credentials refreshed, new expiry 2025-06-30 05:13:56.662782 2025-06-30 04:34:14.495 DEBUG (MainThread) [google_nest_sdm.subscriber_client] Sending streaming pull request for projects/home-assistant-nest-{possible identifier}/subscriptions/home-assistant-nest-sub 2025-06-30 04:34:14.530 DEBUG (MainThread) [google_nest_sdm.streaming_manager] Event stream connection established 2025-06-30 04:34:14.530 DEBUG (MainThread) [google_nest_sdm.subscriber_client] Starting streaming iterator 2025-06-30 04:34:14.530 DEBUG (MainThread) [google_nest_sdm.auth] request[get]=https://smartdevicemanagement.googleapis.com/v1/enterprises/{possible identifier 0a2d8…1561}/structures 2025-06-30 04:34:14.531 DEBUG (MainThread) [google_nest_sdm.subscriber_client] Sending streaming pull request (acking 0 messages) 2025-06-30 04:34:14.969 DEBUG (MainThread) [google_nest_sdm.streaming_manager] Received 2 messages 2025-06-30 04:34:14.969 DEBUG (MainThread) [google_nest_sdm.event] EventMessage raw_data={‘eventId’: ‘{possible identifier df70ab…20e6}’, ‘timestamp’: ‘2025-06-29T21:48:16.397Z’, ‘resourceUpdate’: {‘name’: ‘enterprises/{possible identifier 0a2d8…1561}/devices/{possible identifier AVPHw…CLAw}’, ‘traits’: {‘sdm.devices.traits.Temperature’: {‘ambientTemperatureCelsius’: 25.23}}}, ‘userId’: ‘{possible identifier AVPHw…fICSM}’, ‘resourceGroup’: [‘enterprises/{possible identifier 0a2d8…1561}/devices/{possible identifier AVPHw…CLAw}’]} 2025-06-30 04:34:14.970 DEBUG (MainThread) [google_nest_sdm.event] EventMessage raw_data={‘eventId’: ‘{possible identifier b3a0…e858}’, ‘timestamp’: ‘2025-06-30T03:10:46.213Z’, ‘resourceUpdate’: {‘name’: ‘enterprises/{possible identifier 0a2d8…1561}/devices/{possible identifier AVPHw…CLAw}’, ‘traits’: {‘sdm.devices.traits.Humidity’: {‘ambientHumidityPercent’: 70.0}}}, ‘userId’: ‘{possible identifier AVPHw…fICSM}’, ‘resourceGroup’: [‘enterprises/{possible identifier 0a2d8…1561}/devices/{possible identifier AVPHw…CLAw}’]} 2025-06-30 04:34:14.970 DEBUG (MainThread) [google_nest_sdm.streaming_manager] Received 1 messages 2025-06-30 04:34:14.970 DEBUG (MainThread) [google_nest_sdm.event] EventMessage raw_data={‘eventId’: ‘{possible identifier 9720…6e9f}’, ‘timestamp’: ‘2025-06-29T22:45:45.892Z’, ‘resourceUpdate’: {‘name’: ‘enterprises/{possible identifier 0a2d8…1561}/devices/{possible identifier AVPHw…CLAw}’, ‘traits’: {‘sdm.devices.traits.Temperature’: {‘ambientTemperatureCelsius’: 25.23999}}}, ‘userId’: ‘{possible identifier AVPHw…fICSM}’, ‘resourceGroup’: [‘enterprises/{possible identifier 0a2d8…1561}/devices/{possible identifier AVPHw…CLAw}’]} 2025-06-30 04:34:15.832 DEBUG (MainThread) [google_nest_sdm.auth] response={‘structures’: [{‘name’: ‘enterprises/{possible identifier 0a2d8…1561}/structures/{possible identifier AVPHw…ICHw}’, ‘traits’: {‘sdm.structures.traits.Info’: {‘customName’: ‘3’}}}, {‘name’: ‘enterprises/{possible identifier 0a2d8…1561}/structures/{possible identifier AVPHw…eVRQ}’, ‘traits’: {‘sdm.structures.traits.Info’: {‘customName’: ‘47’}}}]} 2025-06-30 04:34:15.832 DEBUG (MainThread) [google_nest_sdm.auth] request[get]=https://smartdevicemanagement.googleapis.com/v1/enterprises/{possible identifier 0a2d8…1561}/devices 2025-06-30 04:34:17.529 DEBUG (MainThread) [google_nest_sdm.streaming_manager] Stopping subscription projects/home-assistant-nest-{possible identifier}/subscriptions/home-assistant-nest-sub 2025-06-30 04:34:17.530 DEBUG (MainThread) [google_nest_sdm.streaming_manager] Subscription loop cancelled
Example YAML snippet
Anything in the logs that might be useful for us?
To eliminate the possibility of issues with the intgeration/setup I have tried to list the devices using the OAuth 2.0 playground. Below is what is returned when testing: GET /v1/enterprises/{possible identifier 0a2d....1561}/devices HTTP/1.1 Host: smartdevicemanagement.googleapis.com Content-length: 0 Authorization: Bearer {possible identifier ya29.a....RQ0175} HTTP/1.1 500 Internal Server Error Content-length: 109 X-xss-protection: 0 X-content-type-options: nosniff Transfer-encoding: chunked Vary: Origin, X-Origin, Referer Server: ESF -content-encoding: gzip Date: Mon, 30 Jun 2025 04:27:46 GMT User-id: {possible identifier AVPHw....ICSM} Alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 Content-type: application/json; charset=UTF-8 X-frame-options: SAMEORIGIN { "error": { "status": "INTERNAL", "message": "Internal error encountered.", "code": 500 } }
Additional information
I use the Nest integration on 2 installs of HA, the installs share the same project but are for different houses. Both have worked fine since setting it up (years ago but not exactly sure). Both HA were restart within a few mins of each other and both displaying the error. I have only removed the integration and reinstalled on the one so I can keep an eye if it just starts working again.
I’m not convinced it’s an integration issue, hoping if anyone else suddenly had the same problem it’s nothing in my setup.
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 2
- Comments: 18