home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.41k stars 30.3k forks source link

Google Nest - Setting temperature turns Thermostat off #82552

Closed duncan9562 closed 1 year ago

duncan9562 commented 1 year ago

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

guyroche commented 1 year ago

Add me to list of people having this issue since about a couple of days

joesilva101 commented 1 year ago

I am also experiencing the same issue. Just adding an entry to support the cause!!

japrichard commented 1 year ago

Fixed again for me. It's a pain because if it is not reliable it's not very useful. Fingers crossed this time. Thanks again to anyone who may have helped the cause.

tsaps-byte commented 1 year ago

The issue has not happened again for me after contacting google and disabling Home Assist and the Auto-Schedule.

On Tue, Mar 21, 2023 at 2:28 PM japrichard @.***> wrote:

Fixed again for me. It's a pain because if it is not reliable it's not very useful. Fingers crossed this time. Thanks again to anyone who may have helped the cause.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/82552#issuecomment-1478537723, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6M5RTTWXTPKKGGN63LC2I3W5IFNDANCNFSM6AAAAAASIKK454 . You are receiving this because you commented.Message ID: @.***>