core: Google Nest integration not updating thermostat

The problem

Regularly, but not consistently I lose updates on my nest thermostat in home assistant. I can still issue commands, but the result of those commands are not reflected in the home assistant ui, nor are changes that are made to the thermostat through the nest app or on the device itself. A restart of the nest integration restores functionality. This probably happens daily.

What version of Home Assistant Core has the issue?

Core 2024.12.5

What was the last working version of Home Assistant Core?

I’m a new user. It’s always had this problem.

What type of installation are you running?

Home Assistant OS

Integration causing the issue

google nest

Link to integration documentation on our website

https://www.home-assistant.io/integrations/nest

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2025-01-06 09:21:07.379 INFO (Thread-246 (_run)) [google.api_core.bidi] Re-established stream
2025-01-06 09:21:07.426 INFO (Thread-246 (_run)) [google.api_core.bidi] Re-established stream
2025-01-06 09:21:07.430 INFO (Thread-246 (_run)) [google.api_core.bidi] Re-established stream
2025-01-06 09:21:07.435 INFO (Thread-ConsumeBidirectionalStream) [google.api_core.bidi] Re-established stream
2025-01-06 09:21:07.439 INFO (Thread-246 (_run)) [google.api_core.bidi] Re-established stream
2025-01-06 09:21:10.107 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate_valve] VersatileThermostat-VT Guest2 - do not calculate TPI because regulation_period (2) is not exceeded
2025-01-06 09:21:17.379 INFO (Thread-246 (_run)) [google.api_core.bidi] Re-established stream
2025-01-06 09:21:17.426 INFO (Thread-246 (_run)) [google.api_core.bidi] Re-established stream
2025-01-06 09:21:17.430 INFO (Thread-246 (_run)) [google.api_core.bidi] Re-established stream
2025-01-06 09:21:17.435 INFO (Thread-246 (_run)) [google.api_core.bidi] Re-established stream
2025-01-06 09:21:17.439 INFO (Thread-246 (_run)) [google.api_core.bidi] Re-established stream
2025-01-06 09:21:27.379 INFO (Thread-246 (_run)) [google.api_core.bidi] Re-established stream
2025-01-06 09:21:27.426 INFO (Thread-246 (_run)) [google.api_core.bidi] Re-established stream
2025-01-06 09:21:27.430 INFO (Thread-246 (_run)) [google.api_core.bidi] Re-established stream
2025-01-06 09:21:27.435 INFO (Thread-246 (_run)) [google.api_core.bidi] Re-established stream
2025-01-06 09:21:27.439 INFO (Thread-246 (_run)) [google.api_core.bidi] Re-established stream
2025-01-06 09:21:27.596 INFO (Thread-24088 (_run)) [google.api_core.bidi] Re-established stream
2025-01-06 09:21:32.226 ERROR (Thread-ConsumeBidirectionalStream) [google.api_core.bidi] Thread-ConsumeBidirectionalStream caught unexpected exception  and will exit.
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/google/api_core/bidi.py", line 665, in _thread_main
    self._on_response(response)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/google/cloud/pubsub_v1/subscriber/_protocol/streaming_pull_manager.py", line 1102, in _on_response
    expired_ack_ids = self._send_lease_modacks(
        ack_id_gen, self.ack_deadline, warn_on_invalid=False
    )
  File "/usr/local/lib/python3.13/site-packages/google/cloud/pubsub_v1/subscriber/_protocol/streaming_pull_manager.py", line 1046, in _send_lease_modacks
    assert self._dispatcher is not None
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
2025-01-06 09:21:32.231 INFO (Thread-ConsumeBidirectionalStream) [google.api_core.bidi] Thread-ConsumeBidirectionalStream exiting
2025-01-06 09:21:37.379 INFO (Thread-246 (_run)) [google.api_core.bidi] Re-established stream
2025-01-06 09:21:37.426 INFO (Thread-246 (_run)) [google.api_core.bidi] Re-established stream
2025-01-06 09:21:37.430 INFO (Thread-246 (_run)) [google.api_core.bidi] Re-established stream

Additional information

not sure if the log snippet is helpful, but it’s the only error I could see. As you can see I’m also seeing a LOT of “re-established stream” entries - 66,000 of them in less than 2 days

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 51 (16 by maintainers)

Most upvoted comments

You folks are all commenting on a random GitHub issue that is not related to the top issue. Please don’t unless you are discussing something related to the original report. If you have a different error then create your own issue!

I also have the same issue. I can update the Nest Temp in Home Assistant. The temp does indeed update. But in HA, under the Controls page, the new temperature does not update. I have to reload the Nest Integration for the new temperature to populate.

@jouster1974 the issue described is not the same as what is described here, would you be up for posting your own issue report given this one is closed? From the description, it sounds like a nest side issue.

I’ve got this issue as well, but I don’t think it has anything to do with 2025.1.1… I’m running older:

Core: 2024.11.3 Supervisor: 2024.12.3 Operating System: 13.1 Frontend: 20241106.2

I noticed this first happen 6 Jan 2025 @ 0559Z. I could still control the thermostat but the updates would not be reflected in HA. It magically came back to life today, 8 Jan 2025 @ 1802Z. LR_error

Apologies for the unhelpful comment of “I have this issue too”, as I’ve just found this thread thinking I was going mad.

I’m on:

Core: 2025.1.1 Supervisor: 2024.12.3 Operating System: 14.1

It seems that the connection to Nest is going offline, but HA isn’t realising. So the logbook shows nothing useful. Reloading the extension seems to fix is for a little while.

It was working properly before the update to 2025.1.1, previously 2025.1.

I’ve enabled debug logging so hopefully I can add something helpful when it happens again.

Edit: I’ve had these appear in the logs:

Logger: google.cloud.pubsub_v1.subscriber._protocol.leaser
Source: /usr/local/lib/python3.13/site-packages/google/cloud/pubsub_v1/subscriber/_protocol/leaser.py:174
First occurred: 12:59:03 (28 occurrences)
Last logged: 21:15:05

Dropping 8 items because they were leased too long.
Dropping 1 items because they were leased too long.

You folks are all commenting on a random GitHub issue that is not related to the top issue. Please don’t unless you are discussing something related to the original report. If you have a different error then create your own issue!

Idk about that. Issues with changes not being reflected is what is described in the reported issue, which is what we’re also seeing, the other stuff regarding the topic, is generally unrelated aside from my suspicion that Google is making changes to require additional oauth scopes to have events enabled on the project, which, unless I’m mistaken, is how changes from the device are reflected back to HA.

No, not true.

Which part is untrue? You’ve absolutely failed to make that clear.

If the pub/sub topic isn’t used to communicate changes from nest back to HA then what’s the point of it (also, that’s different than what the documentation for the integration describes…)

Also, you’re not doing yourself any favors by marking all of my messages as off topic, just makes it look like you can’t play nicely with people that offering suggestions.

Good riddance and good bye

Failing to create a topic is because of an outage, unrelated to the python code error above. Please don’t confuse people by adding things unrelated. I hear you that you think it’s related but don’t believe me that it’s not, so not sure how you would be convinced. Like is said, please file your own issue and please stop adding unrelated information to this topic, even if you disagree with me. You gave people incorrect information and it is harmful as what you suggested to do CAUSES missing updates by using an incorrect topic such that they never receive updates. You need to use the topic in the SDM console only. Your theory about scopes isn’t related to the problem we are discussing.

You folks are all commenting on a random GitHub issue that is not related to the top issue. Please don’t unless you are discussing something related to the original report. If you have a different error then create your own issue!

Idk about that. Issues with changes not being reflected is what is described in the reported issue, which is what we’re also seeing, the other stuff regarding the topic, is generally unrelated aside from my suspicion that Google is making changes to require additional oauth scopes to have events enabled on the project, which, unless I’m mistaken, is how changes from the device are reflected back to HA.

No, not true.

Which part is untrue? You’ve absolutely failed to make that clear.

If the pub/sub topic isn’t used to communicate changes from nest back to HA then what’s the point of it (also, that’s different than what the documentation for the integration describes…)

Also, you’re not doing yourself any favors by marking all of my messages as off topic, just makes it look like you can’t play nicely with people that offering suggestions.

Good riddance and good bye.

OK, I’ve set the following in my configuration.yaml and restarted. Fingers crossed that we can catch it in the act! 😃

    homeassistant.components.nest: debug
    homeassistant.components.nest.climate_sdm: debug
    homeassistant.components.nest.camera_sdm: debug
    homeassistant.components.nest.sensor_sdm: debug
    homeassistant.helpers.config_entry_flow: debug
    homeassistant.helpers.config_entry_oauth2_flow: debug
    google_nest_sdm: debug
    google_nest_sdm.device: debug
    google_nest_sdm.device_manager: debug
    google_nest_sdm.google_nest_subscriber: debug
    google_nest_sdm.event: debug

I hear what you say about 2024.2.x, but I’ll wait and see if I can get some info before changing the playing field.