Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nest thermostat fan mode SetTimer command not honored by API #100954

Closed
yohaoquan opened this issue Sep 26, 2023 · 2 comments
Closed

Nest thermostat fan mode SetTimer command not honored by API #100954

yohaoquan opened this issue Sep 26, 2023 · 2 comments
Assignees

Comments

@yohaoquan
Copy link

The problem

Hi all.

I have recently set up the nest integration for my thermostat. While testing the functionalities, I found that everything else works except the fan mode settings:

  • Turning on/off the fan in the nest app will cause the fan status to be updated to ON/OFF correctly in HA
  • Changing the fan settings in HA will show initial success, but settings is reverted after 5 seconds.

Looking at the log(debug logging enabled) shows that the nest_sdm API is called successfully but after a few seconds, a device event is received that shows the device status not updated. Logs are provided in relevant section:

I have followed all the procedures outlined in the setup guide, and from the looks of it, it's more likely a Google API issue. Is anyone else experiencing this?

API Doc: Fan Schema

What version of Home Assistant Core has the issue?

core-2023.9.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-7f71c9d81a7d0c2b49efe393b64c004d.json.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Issuing timerMode OFF while the fan is on:

2023-09-26 14:22:09.594 DEBUG (MainThread) [google_nest_sdm.auth] request[post]=https://smartdevicemanagement.googleapis.com/v1/enterprises/personal-project-id/devices/personal-device-id:executeCommand
2023-09-26 14:22:09.594 DEBUG (MainThread) [google_nest_sdm.auth] request[post json]={'command': 'sdm.devices.commands.Fan.SetTimer', 'params': {'timerMode': 'OFF'}}
2023-09-26 14:22:11.546 DEBUG (MainThread) [google_nest_sdm.event] EventMessage raw_data={'eventId': 'personal-event-id', 'timestamp': '2023-09-26T18:22:10.586466Z', 'resourceUpdate': {'name': 'enterprises/personal-project-id/devices/personal-device-id', 'traits': {'sdm.devices.traits.Fan': {'timerMode': 'ON', 'timerTimeout': '2023-09-26T19:20:38Z'}}}, 'userId': 'personal-user-id', 'resourceGroup': ['enterprises/personal-project-id/devices/personal-device-id']}

and issuing timerMode ON while the fan is off:

2023-09-26 14:05:00.320 DEBUG (MainThread) [google_nest_sdm.auth] request[post]=https://smartdevicemanagement.googleapis.com/v1/enterprises/personal-project-id/devices/personal-device-id:executeCommand
2023-09-26 14:05:00.320 DEBUG (MainThread) [google_nest_sdm.auth] request[post json]={'command': 'sdm.devices.commands.Fan.SetTimer', 'params': {'timerMode': 'ON', 'duration': '43200s'}}
2023-09-26 14:05:03.237 DEBUG (MainThread) [google_nest_sdm.event] EventMessage raw_data={'eventId': 'personal-event-id', 'timestamp': '2023-09-26T18:05:01.048700Z', 'resourceUpdate': {'name': 'enterprises/personal-project-id/devices/personal-device-id', 'traits': {'sdm.devices.traits.Fan': {'timerMode': 'OFF'}}}, 'userId': 'personal-user-id', 'resourceGroup': ['enterprises/personal-project-id/devices/personal-device-id']}


### Additional information

_No response_
@home-assistant
Copy link

Hey there @allenporter, mind taking a look at this issue as it has been labeled with an integration (nest) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of nest can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign nest Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


nest documentation
nest source
(message by IssueLinks)

@allenporter
Copy link
Contributor

Thank you for the issue report, and detailed logging. This seems similar to #96180 -- I recommend reporting the issue to Google given this detail as discussed in that other thread.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants