question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Google Nest - Setting temperature turns Thermostat off

See original GitHub issue

The problem

Hi guys,

I’ve been using the Nest integration for some time with no issues.

Back in October I went through the OAuth re-authentication and since then the Thermostat shows in Home Assistant but, when I set the temperature in the UI from 9oC to 10oC or any other modification, the thermostat completely turns off (heat mode is set to off in HA and the Nest app).

I have enabled logging and I can see the API call going out to Google, but then I can see the state gets updated to the Thermostat being ‘off’ and I cannot figure out why.

Request sent to Google to change temperature to 10oC:

2022-11-22 22:12:21.115 DEBUG (MainThread) [google_nest_sdm.auth] request[post]=https://smartdevicemanagement.googleapis.com/v1/enterprises/***executeCommand
2022-11-22 22:12:21.116 DEBUG (MainThread) [google_nest_sdm.auth] request[post json]={'command': 'sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat', 'params': {'heatCelsius': 10.0}}

Response that comes back from Google:

2022-11-22 22:12:25.245 DEBUG (Thread-ConsumeBidirectionalStream) [google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager] Processing 1 received message(s), currently on hold 0 (bytes 0).
2022-11-22 22:12:25.282 DEBUG (Thread-ConsumeBidirectionalStream) [google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager] Released held message, scheduling callback for it, still on hold 0 (bytes 0).
2022-11-22 22:12:25.288 DEBUG (MainThread) [google_nest_sdm.event] EventMessage raw_data={'eventId': '***', 'timestamp': '2022-11-22T22:12:22.788Z', 'resourceUpdate': {'name': 'enterprises/***', 'traits': {'sdm.devices.traits.ThermostatMode': {'mode': 'OFF', 'availableModes': ['HEAT', 'OFF']}, 'sdm.devices.traits.ThermostatEco': {'availableModes': ['OFF', 'MANUAL_ECO'], 'mode': 'OFF', 'heatCelsius': 9.00972, 'coolCelsius': 24.44444}, 'sdm.devices.traits.ThermostatTemperatureSetpoint': {}}}, 'userId': '***', 'resourceGroup': ['enterprises/***']}

The state history for the Nest device also shows:

Turned off triggered by service climate.set_temperature

I have been through 4 new projects with Google, updates to HA and everything I can think of.

I have spoken to Google via their support team and they stated that the Nest App was working fine and had no idea what an API was, so chances are I wasn’t talking to the right person! If this needs their input could you please point me in the direction of how to contact them 😃

Really appreciate your efforts with this and thank you in advance!

What version of Home Assistant Core has the issue?

Home Assistant 2022.11.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

Google Nest

Link to integration documentation on our website

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

Diagnostics information

config_entry-nest-8c5e5e0dff7e756bccede840da184d68.json.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:22 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
allenportercommented, Nov 22, 2022

The command to the server seems correct to me (and you seem to also agree) so this is pretty clearly a bug on the nest API side. I have a way to contact the nest API team to report issues like this, though they are a little hard to investigate given I don’t have a way to give them your personal information unless I can reproduce it myself.

1reaction
code-to-corecommented, Dec 21, 2022

I am having exactly the same issue with Alexa and with ha. Changing the temperature via either results in the heat being turned off. I have two Nest thermostats and the problem is reproducible on both. It would seem the problem is with SDM. I first noticed the issue about six weeks ago when the thermostat turned off and just found this thread. The two affected Nest thermostats are version Display-2.8 at 5.9.4-5. I have a third thermostat at a different location that works just fine, that is Display-4.8 at Software version 6.2-27. Sounds like an issue between SDM and the Nest version

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nest thermostat Off mode - Google Support
On the home screen, select your thermostat. Tap Settings . Select Temperature preferences. Tap Safety Temperatures. Tap the plus or minus symbols to...
Read more >
Answered: Nest randomly changes temp to 50 or 90 degrees
The thermostat is usually set to Eco mode, but it will randomly change temperature to 50 or 90 degrees on its own.
Read more >
Nest Thermostat, Fine-tune your comfort - Google Store
Save at home and away. It can turn down when you leave so you save energy. expand_more. expand_more. Control from anywhere. Change the...
Read more >
How to Turn Off a Nest Thermostat - Lifewire
Even if you turn your Nest thermostat off, the device has a feature called Safety Temperature. It's a set temperature that, even if...
Read more >
Turn Off Google Nest Smart Features - Vivint Support
Select the Mode option in the lower left and set the mode to Heat/Cool · Select the Eco option in the lower center...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found