Google Nest - Setting temperature turns Thermostat off
See original GitHub issueThe 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:
- Created 10 months ago
- Comments:22 (8 by maintainers)
Top GitHub Comments
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.
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