potmat / homebridge-google-nest-sdm

A Homebridge plugin for Google Nest devices that uses the Google Smart Device Management API. Supports Cameras, Doorbells, Displays, and Thermostats. Includes support for HomeKit Secure Video.
ISC License
155 stars 17 forks source link

Unable to set temperature #7

Closed bradhs closed 2 years ago

bradhs commented 2 years ago

I am unable to adjust the temperature in Heat, Cool or Auto mode.

I have another module called "Nest" installed as well and have provided the log entries from both in case that his helpful.

[11/24/2021, 7:08:25 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatEco had value {"availableModes":["OFF","MANUAL_ECO"],"mode":"OFF","heatCelsius":16.66698,"coolCelsius":27.98012} [11/24/2021, 7:08:25 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatEco had value {"availableModes":["OFF","MANUAL_ECO"],"mode":"OFF","heatCelsius":16.66698,"coolCelsius":27.98012} [11/24/2021, 7:08:25 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"OFF","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/24/2021, 7:08:25 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"OFF","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/24/2021, 7:08:31 AM] [homebridge-google-nest-sdm] Triggered SET TargetHeatingCoolingState:2 [11/24/2021, 7:08:31 AM] [homebridge-google-nest-sdm] Triggered SET TargetHeatingCoolingState:2 [11/24/2021, 7:08:31 AM] [homebridge-google-nest-sdm] Executing command sdm.devices.commands.ThermostatMode.SetMode with parameters {"mode":"COOL"} [11/24/2021, 7:08:31 AM] [homebridge-google-nest-sdm] Executing command sdm.devices.commands.ThermostatMode.SetMode with parameters {"mode":"COOL"} [11/24/2021, 7:08:32 AM] [Nest] Target heating/cooling state for North Thermostat is: Cool [11/24/2021, 7:08:32 AM] [Nest] Target heating/cooling state for North Thermostat is: Cool [11/24/2021, 7:08:32 AM] [homebridge-google-nest-sdm] Execution of command sdm.devices.commands.ThermostatMode.SetMode returned undefined [11/24/2021, 7:08:32 AM] [homebridge-google-nest-sdm] Execution of command sdm.devices.commands.ThermostatMode.SetMode returned undefined [11/24/2021, 7:08:35 AM] [homebridge-google-nest-sdm] Triggered SET TargetTemperature:23.3 [11/24/2021, 7:08:35 AM] [homebridge-google-nest-sdm] Triggered SET TargetTemperature:23.3 [11/24/2021, 7:08:35 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatEco had value {"availableModes":["OFF","MANUAL_ECO"],"mode":"OFF","heatCelsius":16.66698,"coolCelsius":27.98012} [11/24/2021, 7:08:35 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatEco had value {"availableModes":["OFF","MANUAL_ECO"],"mode":"OFF","heatCelsius":16.66698,"coolCelsius":27.98012} [11/24/2021, 7:08:35 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"OFF","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/24/2021, 7:08:35 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"OFF","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/24/2021, 7:08:36 AM] [Nest] Target temperature for North Thermostat is: 23.889 °C / 75 °F [11/24/2021, 7:08:36 AM] [Nest] Target temperature for North Thermostat is: 23.889 °C / 75 °F [11/24/2021, 7:08:38 AM] [homebridge-google-nest-sdm] Triggered SET TargetHeatingCoolingState:3 [11/24/2021, 7:08:38 AM] [homebridge-google-nest-sdm] Triggered SET TargetHeatingCoolingState:3 [11/24/2021, 7:08:38 AM] [homebridge-google-nest-sdm] Executing command sdm.devices.commands.ThermostatMode.SetMode with parameters {"mode":"HEATCOOL"} [11/24/2021, 7:08:38 AM] [homebridge-google-nest-sdm] Executing command sdm.devices.commands.ThermostatMode.SetMode with parameters {"mode":"HEATCOOL"} [11/24/2021, 7:08:38 AM] [Nest] Target heating/cooling state for North Thermostat is: Auto [11/24/2021, 7:08:38 AM] [Nest] Target heating/cooling state for North Thermostat is: Auto [11/24/2021, 7:08:38 AM] [homebridge-google-nest-sdm] Execution of command sdm.devices.commands.ThermostatMode.SetMode returned undefined [11/24/2021, 7:08:38 AM] [homebridge-google-nest-sdm] Execution of command sdm.devices.commands.ThermostatMode.SetMode returned undefined [11/24/2021, 7:08:43 AM] [Nest] Current heating/cooling state for North Thermostat is: Heating [11/24/2021, 7:08:43 AM] [Nest] Current heating/cooling state for North Thermostat is: Heating [11/24/2021, 7:08:46 AM] [homebridge-google-nest-sdm] Triggered SET TargetHeatingCoolingState:0 [11/24/2021, 7:08:46 AM] [homebridge-google-nest-sdm] Triggered SET TargetHeatingCoolingState:0 [11/24/2021, 7:08:46 AM] [homebridge-google-nest-sdm] Executing command sdm.devices.commands.ThermostatMode.SetMode with parameters {"mode":"OFF"} [11/24/2021, 7:08:46 AM] [homebridge-google-nest-sdm] Executing command sdm.devices.commands.ThermostatMode.SetMode with parameters {"mode":"OFF"} [11/24/2021, 7:08:47 AM] [Nest] Target temperature for North Thermostat is: 20.556 °C / 69 °F [11/24/2021, 7:08:47 AM] [Nest] Target temperature for North Thermostat is: 20.556 °C / 69 °F [11/24/2021, 7:08:47 AM] [Nest] Target heating/cooling state for North Thermostat is: Off [11/24/2021, 7:08:47 AM] [Nest] Target heating/cooling state for North Thermostat is: Off [11/24/2021, 7:08:47 AM] [homebridge-google-nest-sdm] Execution of command sdm.devices.commands.ThermostatMode.SetMode returned undefined [11/24/2021, 7:08:47 AM] [homebridge-google-nest-sdm] Execution of command sdm.devices.commands.ThermostatMode.SetMode returned undefined [11/24/2021, 7:08:47 AM] [homebridge-google-nest-sdm] Triggered SET TargetHeatingCoolingState:1 [11/24/2021, 7:08:47 AM] [homebridge-google-nest-sdm] Triggered SET TargetHeatingCoolingState:1 [11/24/2021, 7:08:47 AM] [homebridge-google-nest-sdm] Executing command sdm.devices.commands.ThermostatMode.SetMode with parameters {"mode":"HEAT"} [11/24/2021, 7:08:47 AM] [homebridge-google-nest-sdm] Executing command sdm.devices.commands.ThermostatMode.SetMode with parameters {"mode":"HEAT"} [11/24/2021, 7:08:47 AM] [Nest] Target temperature for North Thermostat is: 23.889 °C / 75 °F [11/24/2021, 7:08:47 AM] [Nest] Target temperature for North Thermostat is: 23.889 °C / 75 °F [11/24/2021, 7:08:47 AM] [Nest] Target heating/cooling state for North Thermostat is: Heat [11/24/2021, 7:08:47 AM] [Nest] Target heating/cooling state for North Thermostat is: Heat [11/24/2021, 7:08:47 AM] [homebridge-google-nest-sdm] Execution of command sdm.devices.commands.ThermostatMode.SetMode returned undefined [11/24/2021, 7:08:47 AM] [homebridge-google-nest-sdm] Execution of command sdm.devices.commands.ThermostatMode.SetMode returned undefined

potmat commented 2 years ago

The important lines are this one [11/24/2021, 7:08:35 AM] [homebridge-google-nest-sdm] Triggered SET TargetTemperature:23.31 which is followed close behind by this one [11/24/2021, 7:08:35 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"OFF","availableModes":["HEAT","COOL","HEATCOOL","OFF"]}

For some reason you're thermostat is showing as OFF ("mode":"OFF"), so naturally the request to set a temperature is ignored.... Why your thermostat is always OFF is puzzling... I'll have to look into it.

bradhs commented 2 years ago

I was turning it off then back on again to test the modes. That part works well.

potmat commented 2 years ago

@bradhs : Are you subscribed to events? That is, do you see errors on startup that look like There was a failure with event subscription.?

bradhs commented 2 years ago

I am subscribed to events. that error does not exist in my logs. I restarted a few times to make sure as well.

potmat commented 2 years ago

@bradhs : Just pushed a new version (v.1.0.14) that will hopefully fix the issue, let me know.

bradhs commented 2 years ago

No luck.

[11/26/2021, 11:35:03 AM] [homebridge-google-nest-sdm] Restoring existing accessory from cache: Hallway Thermostat [11/26/2021, 11:35:03 AM] [homebridge-google-nest-sdm] Restoring existing accessory from cache: Hallway Thermostat [11/26/2021, 11:35:03 AM] [homebridge-google-nest-sdm] Restoring existing accessory from cache: Outside Camera [11/26/2021, 11:35:03 AM] [homebridge-google-nest-sdm] Restoring existing accessory from cache: Garage Camera [11/26/2021, 11:35:03 AM] [homebridge-google-nest-sdm] Restoring existing accessory from cache: Outside Camera [11/26/2021, 11:35:03 AM] [homebridge-google-nest-sdm] Restoring existing accessory from cache: Outside Camera [11/26/2021, 11:35:03 AM] [homebridge-google-nest-sdm] Restoring existing accessory from cache: Outside Camera [11/26/2021, 11:35:03 AM] [homebridge-google-nest-sdm] Restoring existing accessory from cache: Outside Camera [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Triggered GET CurrentHeatingCoolingState [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatHvac had value {"status":"OFF"} [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Triggered GET TargetHeatingCoolingState [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"HEAT","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Triggered GET CurrentTemperature [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.Temperature had value {"ambientTemperatureCelsius":21.25} [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Triggered GET TargetTemperature [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatEco had value {"availableModes":["OFF","MANUAL_ECO"],"mode":"OFF","heatCelsius":16.66698,"coolCelsius":27.98012} [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Triggered GET TemperatureDisplayUnits [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.Settings had value {"temperatureScale":"FAHRENHEIT"} [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Triggered GET CurrentTemperature [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.Humidity had value {"ambientHumidityPercent":38} [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Triggered GET CurrentHeatingCoolingState [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatHvac had value {"status":"OFF"} [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Triggered GET TargetHeatingCoolingState [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"OFF","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Triggered GET CurrentTemperature [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.Temperature had value {"ambientTemperatureCelsius":21.40999} [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Triggered GET TargetTemperature [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatEco had value {"availableModes":["OFF","MANUAL_ECO"],"mode":"OFF","heatCelsius":16.66997,"coolCelsius":27.87894} [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Triggered GET TemperatureDisplayUnits [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.Settings had value {"temperatureScale":"FAHRENHEIT"} [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Triggered GET CurrentTemperature [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.Humidity had value {"ambientHumidityPercent":39} [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatTemperatureSetpoint had value {"heatCelsius":21.1} [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatTemperatureSetpoint had value {} [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"HEAT","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"OFF","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/26/2021, 11:35:04 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.Temperature had value {"ambientTemperatureCelsius":21.40999} [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Triggered GET CurrentHeatingCoolingState [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatHvac had value {"status":"OFF"} [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Triggered GET TargetHeatingCoolingState [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"HEAT","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Triggered GET CurrentTemperature [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.Temperature had value {"ambientTemperatureCelsius":21.25} [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Triggered GET TargetTemperature [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatEco had value {"availableModes":["OFF","MANUAL_ECO"],"mode":"OFF","heatCelsius":16.66698,"coolCelsius":27.98012} [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Triggered GET TemperatureDisplayUnits [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.Settings had value {"temperatureScale":"FAHRENHEIT"} [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Triggered GET CurrentTemperature [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.Humidity had value {"ambientHumidityPercent":38} [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Triggered GET CurrentHeatingCoolingState [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatHvac had value {"status":"OFF"} [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Triggered GET TargetHeatingCoolingState [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"OFF","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Triggered GET CurrentTemperature [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.Temperature had value {"ambientTemperatureCelsius":21.40999} [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Triggered GET TargetTemperature [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatEco had value {"availableModes":["OFF","MANUAL_ECO"],"mode":"OFF","heatCelsius":16.66997,"coolCelsius":27.87894} [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Triggered GET TemperatureDisplayUnits [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.Settings had value {"temperatureScale":"FAHRENHEIT"} [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Triggered GET CurrentTemperature [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.Humidity had value {"ambientHumidityPercent":39} [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatTemperatureSetpoint had value {"heatCelsius":21.1} [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatTemperatureSetpoint had value {} [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"HEAT","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"OFF","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/26/2021, 11:35:11 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.Temperature had value {"ambientTemperatureCelsius":21.40999} [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Triggered GET CurrentHeatingCoolingState [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatHvac had value {"status":"OFF"} [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Triggered GET TargetHeatingCoolingState [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"OFF","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Triggered GET TargetTemperature [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatEco had value {"availableModes":["OFF","MANUAL_ECO"],"mode":"OFF","heatCelsius":16.66997,"coolCelsius":27.87894} [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Triggered GET CurrentTemperature [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.Temperature had value {"ambientTemperatureCelsius":21.40999} [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Triggered GET CurrentTemperature [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.Temperature had value {"ambientTemperatureCelsius":21.25} [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Triggered GET TargetHeatingCoolingState [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"HEAT","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Triggered GET TargetTemperature [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatEco had value {"availableModes":["OFF","MANUAL_ECO"],"mode":"OFF","heatCelsius":16.66698,"coolCelsius":27.98012} [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Triggered GET CurrentHeatingCoolingState [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatHvac had value {"status":"OFF"} [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatTemperatureSetpoint had value {} [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatTemperatureSetpoint had value {"heatCelsius":21.1} [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"OFF","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"HEAT","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.Temperature had value {"ambientTemperatureCelsius":21.40999} [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Triggered GET TemperatureDisplayUnits [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.Settings had value {"temperatureScale":"FAHRENHEIT"} [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Triggered GET TemperatureDisplayUnits [11/26/2021, 11:35:25 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.Settings had value {"temperatureScale":"FAHRENHEIT"} [11/26/2021, 11:35:28 AM] [Nest] Occupancy Detected for North is: 1 [11/26/2021, 11:35:32 AM] [homebridge-google-nest-sdm] Triggered GET CurrentTemperature [11/26/2021, 11:35:32 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.Humidity had value {"ambientHumidityPercent":39} [11/26/2021, 11:35:40 AM] [homebridge-google-nest-sdm] Triggered SET TargetHeatingCoolingState:1 [11/26/2021, 11:35:40 AM] [homebridge-google-nest-sdm] Executing command sdm.devices.commands.ThermostatMode.SetMode with parameters {"mode":"HEAT"} [11/26/2021, 11:35:40 AM] [Nest] Target heating/cooling state for South Thermostat is: Heat [11/26/2021, 11:35:40 AM] [homebridge-google-nest-sdm] Execution of command sdm.devices.commands.ThermostatMode.SetMode returned undefined [11/26/2021, 11:35:44 AM] [Nest] Target temperature for South Thermostat is: 20.556 °C / 69 °F [11/26/2021, 11:35:46 AM] [homebridge-google-nest-sdm] Triggered SET TargetTemperature:22.8 [11/26/2021, 11:35:46 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatEco had value {"availableModes":["OFF","MANUAL_ECO"],"mode":"OFF","heatCelsius":16.66997,"coolCelsius":27.87894} [11/26/2021, 11:35:46 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"OFF","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/26/2021, 11:35:53 AM] [homebridge-google-nest-sdm] Triggered SET TargetTemperature:22.200000000000003 [11/26/2021, 11:35:53 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatEco had value {"availableModes":["OFF","MANUAL_ECO"],"mode":"OFF","heatCelsius":16.66997,"coolCelsius":27.87894} [11/26/2021, 11:35:53 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"OFF","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/26/2021, 11:35:55 AM] [homebridge-google-nest-sdm] Triggered SET TargetTemperature:21.700000000000003 [11/26/2021, 11:35:55 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatEco had value {"availableModes":["OFF","MANUAL_ECO"],"mode":"OFF","heatCelsius":16.66997,"coolCelsius":27.87894} [11/26/2021, 11:35:55 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"OFF","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/26/2021, 11:35:57 AM] [homebridge-google-nest-sdm] Triggered SET TargetTemperature:22.200000000000003 [11/26/2021, 11:35:57 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatEco had value {"availableModes":["OFF","MANUAL_ECO"],"mode":"OFF","heatCelsius":16.66997,"coolCelsius":27.87894} [11/26/2021, 11:35:57 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"OFF","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/26/2021, 11:35:58 AM] [homebridge-google-nest-sdm] Triggered SET TargetTemperature:21.700000000000003 [11/26/2021, 11:35:58 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatEco had value {"availableModes":["OFF","MANUAL_ECO"],"mode":"OFF","heatCelsius":16.66997,"coolCelsius":27.87894} [11/26/2021, 11:35:58 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"OFF","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/26/2021, 11:35:59 AM] [homebridge-google-nest-sdm] Triggered SET TargetTemperature:22.200000000000003 [11/26/2021, 11:35:59 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatEco had value {"availableModes":["OFF","MANUAL_ECO"],"mode":"OFF","heatCelsius":16.66997,"coolCelsius":27.87894} [11/26/2021, 11:35:59 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"OFF","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/26/2021, 11:36:00 AM] [homebridge-google-nest-sdm] Triggered SET TargetTemperature:22.8 [11/26/2021, 11:36:00 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatEco had value {"availableModes":["OFF","MANUAL_ECO"],"mode":"OFF","heatCelsius":16.66997,"coolCelsius":27.87894} [11/26/2021, 11:36:00 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"OFF","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/26/2021, 11:36:02 AM] [homebridge-google-nest-sdm] Triggered SET TargetTemperature:21.700000000000003 [11/26/2021, 11:36:02 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatEco had value {"availableModes":["OFF","MANUAL_ECO"],"mode":"OFF","heatCelsius":16.66997,"coolCelsius":27.87894} [11/26/2021, 11:36:02 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"OFF","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/26/2021, 11:36:06 AM] [homebridge-google-nest-sdm] Triggered SET TargetTemperature:22.8 [11/26/2021, 11:36:06 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatEco had value {"availableModes":["OFF","MANUAL_ECO"],"mode":"OFF","heatCelsius":16.66997,"coolCelsius":27.87894} [11/26/2021, 11:36:06 AM] [homebridge-google-nest-sdm] Request for trait sdm.devices.traits.ThermostatMode had value {"mode":"OFF","availableModes":["HEAT","COOL","HEATCOOL","OFF"]} [11/26/2021, 11:36:11 AM] [homebridge-google-nest-sdm] Triggered SET TargetHeatingCoolingState:0 [11/26/2021, 11:36:11 AM] [homebridge-google-nest-sdm] Executing command sdm.devices.commands.ThermostatMode.SetMode with parameters {"mode":"OFF"} [11/26/2021, 11:36:12 AM] [Nest] Target temperature for South Thermostat is: 21.667 °C / 71 °F [11/26/2021, 11:36:12 AM] [Nest] Target heating/cooling state for South Thermostat is: Off [11/26/2021, 11:36:12 AM] [homebridge-google-nest-sdm] Execution of command sdm.devices.commands.ThermostatMode.SetMode returned undefined

potmat commented 2 years ago

I'm not really sure what's going on... I'll try adding some more logging.

potmat commented 2 years ago

Hi @bradhs, ok, I've changed some thermostat stuff around and added more logging, might as well try again.

bradhs commented 2 years ago

Much better!! It's still a little finicky at times, I need to do more testing though to see what steps causes it to stop functioning for a little. Might be a rate limit? See logs below:

[11/29/2021, 11:35:27 PM] [homebridge-google-nest-sdm] Could not execute device command: {"response":{"config":{"url":"https://smartdevicemanagement.googleapis.com/v1/enterprises/asdfasdfadfsadfs:executeCommand","method":"POST","userAgentDirectives":[{"product":"google-api-nodejs-client","version":"5.0.5","comment":"gzip"}],"data":{"command":"sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat","params":{"heatCelsius":21.700000000000003}},"headers":{"x-goog-api-client":"gdcl/5.0.5 gl-node/16.13.0 auth/7.10.2","Accept-Encoding":"gzip","User-Agent":"google-api-nodejs-client/5.0.5 (gzip)","Authorization":"Bearer ya29.asdfasdfadfsadfs-asdfasdfadfsadfs","Content-Type":"application/json","Accept":"application/json"},"params":{},"retry":true,"body":"{\"command\":\"sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat\",\"params\":{\"heatCelsius\":21.700000000000003}}","responseType":"json","retryConfig":{"currentRetryAttempt":0,"retry":3,"httpMethodsToRetry":["GET","HEAD","PUT","OPTIONS","DELETE"],"noResponseRetries":2,"statusCodesToRetry":[[100,199],[429,429],[500,599]]}},"data":{"error":{"code":429,"message":"Rate limited for the Thermostat.","errors":[{"message":"Rate limited for the Thermostat.","domain":"global","reason":"rateLimitExceeded"}],"status":"RESOURCE_EXHAUSTED"}},"headers":{"alt-svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","cache-control":"private","connection":"close","content-encoding":"gzip","content-type":"application/json; charset=UTF-8","date":"Tue, 30 Nov 2021 07:35:27 GMT","server":"ESF","transfer-encoding":"chunked","user-id":"asdfasdfadfsadfs","vary":"Origin, X-Origin, Referer","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","x-xss-protection":"0"},"status":429,"statusText":"Too Many Requests","request":{"responseURL":"https://smartdevicemanagement.googleapis.com/v1/enterprises/asdfasdfadfsadfs:executeCommand"}},"config":{"url":"https://smartdevicemanagement.googleapis.com/v1/enterprises/asdfasdfadfsadfs:executeCommand","method":"POST","userAgentDirectives":[{"product":"google-api-nodejs-client","version":"5.0.5","comment":"gzip"}],"data":{"command":"sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat","params":{"heatCelsius":21.700000000000003}},"headers":{"x-goog-api-client":"gdcl/5.0.5 gl-node/16.13.0 auth/7.10.2","Accept-Encoding":"gzip","User-Agent":"google-api-nodejs-client/5.0.5 (gzip)","Authorization":"Bearer ya29.asdfasdfadfsadfs-asdfasdfadfsadfs","Content-Type":"application/json","Accept":"application/json"},"params":{},"retry":true,"body":"{\"command\":\"sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat\",\"params\":{\"heatCelsius\":21.700000000000003}}","responseType":"json","retryConfig":{"currentRetryAttempt":0,"retry":3,"httpMethodsToRetry":["GET","HEAD","PUT","OPTIONS","DELETE"],"noResponseRetries":2,"statusCodesToRetry":[[100,199],[429,429],[500,599]]}},"code":429,"errors":[{"message":"Rate limited for the Thermostat.","domain":"global","reason":"rateLimitExceeded"}]} Hallway Thermostat [11/29/2021, 11:35:45 PM] [homebridge-google-nest-sdm] Could not execute device command: {"response":{"config":{"url":"https://smartdevicemanagement.googleapis.com/v1/enterprises/asdfasdfadfsadfs:executeCommand","method":"POST","userAgentDirectives":[{"product":"google-api-nodejs-client","version":"5.0.5","comment":"gzip"}],"data":{"command":"sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat","params":{"heatCelsius":22.200000000000003}},"headers":{"x-goog-api-client":"gdcl/5.0.5 gl-node/16.13.0 auth/7.10.2","Accept-Encoding":"gzip","User-Agent":"google-api-nodejs-client/5.0.5 (gzip)","Authorization":"Bearer ya29.asdfasdfadfsadfs-asdfasdfadfsadfs","Content-Type":"application/json","Accept":"application/json"},"params":{},"retry":true,"body":"{\"command\":\"sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat\",\"params\":{\"heatCelsius\":22.200000000000003}}","responseType":"json","retryConfig":{"currentRetryAttempt":0,"retry":3,"httpMethodsToRetry":["GET","HEAD","PUT","OPTIONS","DELETE"],"noResponseRetries":2,"statusCodesToRetry":[[100,199],[429,429],[500,599]]}},"data":{"error":{"code":429,"message":"Rate limited for the Thermostat.","errors":[{"message":"Rate limited for the Thermostat.","domain":"global","reason":"rateLimitExceeded"}],"status":"RESOURCE_EXHAUSTED"}},"headers":{"alt-svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","cache-control":"private","connection":"close","content-encoding":"gzip","content-type":"application/json; charset=UTF-8","date":"Tue, 30 Nov 2021 07:35:45 GMT","server":"ESF","transfer-encoding":"chunked","user-id":"asdfasdfadfsadfs","vary":"Origin, X-Origin, Referer","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","x-xss-protection":"0"},"status":429,"statusText":"Too Many Requests","request":{"responseURL":"https://smartdevicemanagement.googleapis.com/v1/enterprises/asdfasdfadfsadfs:executeCommand"}},"config":{"url":"https://smartdevicemanagement.googleapis.com/v1/enterprises/asdfasdfadfsadfs:executeCommand","method":"POST","userAgentDirectives":[{"product":"google-api-nodejs-client","version":"5.0.5","comment":"gzip"}],"data":{"command":"sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat","params":{"heatCelsius":22.200000000000003}},"headers":{"x-goog-api-client":"gdcl/5.0.5 gl-node/16.13.0 auth/7.10.2","Accept-Encoding":"gzip","User-Agent":"google-api-nodejs-client/5.0.5 (gzip)","Authorization":"Bearer ya29.asdfasdfadfsadfs-asdfasdfadfsadfs","Content-Type":"application/json","Accept":"application/json"},"params":{},"retry":true,"body":"{\"command\":\"sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat\",\"params\":{\"heatCelsius\":22.200000000000003}}","responseType":"json","retryConfig":{"currentRetryAttempt":0,"retry":3,"httpMethodsToRetry":["GET","HEAD","PUT","OPTIONS","DELETE"],"noResponseRetries":2,"statusCodesToRetry":[[100,199],[429,429],[500,599]]}},"code":429,"errors":[{"message":"Rate limited for the Thermostat.","domain":"global","reason":"rateLimitExceeded"}]} Hallway Thermostat [11/29/2021, 11:35:49 PM] [homebridge-google-nest-sdm] Could not execute device command: {"response":{"config":{"url":"https://smartdevicemanagement.googleapis.com/v1/enterprises/asdfasdfadfsadfs:executeCommand","method":"POST","userAgentDirectives":[{"product":"google-api-nodejs-client","version":"5.0.5","comment":"gzip"}],"data":{"command":"sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat","params":{"heatCelsius":20}},"headers":{"x-goog-api-client":"gdcl/5.0.5 gl-node/16.13.0 auth/7.10.2","Accept-Encoding":"gzip","User-Agent":"google-api-nodejs-client/5.0.5 (gzip)","Authorization":"Bearer ya29.asdfasdfadfsadfs-asdfasdfadfsadfs","Content-Type":"application/json","Accept":"application/json"},"params":{},"retry":true,"body":"{\"command\":\"sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat\",\"params\":{\"heatCelsius\":20}}","responseType":"json","retryConfig":{"currentRetryAttempt":0,"retry":3,"httpMethodsToRetry":["GET","HEAD","PUT","OPTIONS","DELETE"],"noResponseRetries":2,"statusCodesToRetry":[[100,199],[429,429],[500,599]]}},"data":{"error":{"code":429,"message":"Rate limited for the Thermostat.","errors":[{"message":"Rate limited for the Thermostat.","domain":"global","reason":"rateLimitExceeded"}],"status":"RESOURCE_EXHAUSTED"}},"headers":{"alt-svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","cache-control":"private","connection":"close","content-encoding":"gzip","content-type":"application/json; charset=UTF-8","date":"Tue, 30 Nov 2021 07:35:49 GMT","server":"ESF","transfer-encoding":"chunked","user-id":"asdfasdfadfsadfs","vary":"Origin, X-Origin, Referer","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","x-xss-protection":"0"},"status":429,"statusText":"Too Many Requests","request":{"responseURL":"https://smartdevicemanagement.googleapis.com/v1/enterprises/asdfasdfadfsadfs:executeCommand"}},"config":{"url":"https://smartdevicemanagement.googleapis.com/v1/enterprises/asdfasdfadfsadfs:executeCommand","method":"POST","userAgentDirectives":[{"product":"google-api-nodejs-client","version":"5.0.5","comment":"gzip"}],"data":{"command":"sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat","params":{"heatCelsius":20}},"headers":{"x-goog-api-client":"gdcl/5.0.5 gl-node/16.13.0 auth/7.10.2","Accept-Encoding":"gzip","User-Agent":"google-api-nodejs-client/5.0.5 (gzip)","Authorization":"Bearer ya29.asdfasdfadfsadfs-asdfasdfadfsadfs","Content-Type":"application/json","Accept":"application/json"},"params":{},"retry":true,"body":"{\"command\":\"sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat\",\"params\":{\"heatCelsius\":20}}","responseType":"json","retryConfig":{"currentRetryAttempt":0,"retry":3,"httpMethodsToRetry":["GET","HEAD","PUT","OPTIONS","DELETE"],"noResponseRetries":2,"statusCodesToRetry":[[100,199],[429,429],[500,599]]}},"code":429,"errors":[{"message":"Rate limited for the Thermostat.","domain":"global","reason":"rateLimitExceeded"}]} Hallway Thermostat [11/29/2021, 11:35:54 PM] [homebridge-google-nest-sdm] Could not execute device command: {"response":{"config":{"url":"https://smartdevicemanagement.googleapis.com/v1/enterprises/asdfasdfadfsadfs:executeCommand","method":"POST","userAgentDirectives":[{"product":"google-api-nodejs-client","version":"5.0.5","comment":"gzip"}],"data":{"command":"sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat","params":{"heatCelsius":22.8}},"headers":{"x-goog-api-client":"gdcl/5.0.5 gl-node/16.13.0 auth/7.10.2","Accept-Encoding":"gzip","User-Agent":"google-api-nodejs-client/5.0.5 (gzip)","Authorization":"Bearer ya29.asdfasdfadfsadfs-asdfasdfadfsadfs","Content-Type":"application/json","Accept":"application/json"},"params":{},"retry":true,"body":"{\"command\":\"sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat\",\"params\":{\"heatCelsius\":22.8}}","responseType":"json","retryConfig":{"currentRetryAttempt":0,"retry":3,"httpMethodsToRetry":["GET","HEAD","PUT","OPTIONS","DELETE"],"noResponseRetries":2,"statusCodesToRetry":[[100,199],[429,429],[500,599]]}},"data":{"error":{"code":429,"message":"Rate limited for the SetThermostatTemperatureHeat command for the user.","errors":[{"message":"Rate limited for the SetThermostatTemperatureHeat command for the user.","domain":"global","reason":"rateLimitExceeded"}],"status":"RESOURCE_EXHAUSTED"}},"headers":{"alt-svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","cache-control":"private","connection":"close","content-encoding":"gzip","content-type":"application/json; charset=UTF-8","date":"Tue, 30 Nov 2021 07:35:53 GMT","server":"ESF","transfer-encoding":"chunked","user-id":"asdfasdfadfsadfs","vary":"Origin, X-Origin, Referer","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","x-xss-protection":"0"},"status":429,"statusText":"Too Many Requests","request":{"responseURL":"https://smartdevicemanagement.googleapis.com/v1/enterprises/asdfasdfadfsadfs:executeCommand"}},"config":{"url":"https://smartdevicemanagement.googleapis.com/v1/enterprises/asdfasdfadfsadfs:executeCommand","method":"POST","userAgentDirectives":[{"product":"google-api-nodejs-client","version":"5.0.5","comment":"gzip"}],"data":{"command":"sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat","params":{"heatCelsius":22.8}},"headers":{"x-goog-api-client":"gdcl/5.0.5 gl-node/16.13.0 auth/7.10.2","Accept-Encoding":"gzip","User-Agent":"google-api-nodejs-client/5.0.5 (gzip)","Authorization":"Bearer ya29.asdfasdfadfsadfs-asdfasdfadfsadfs","Content-Type":"application/json","Accept":"application/json"},"params":{},"retry":true,"body":"{\"command\":\"sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat\",\"params\":{\"heatCelsius\":22.8}}","responseType":"json","retryConfig":{"currentRetryAttempt":0,"retry":3,"httpMethodsToRetry":["GET","HEAD","PUT","OPTIONS","DELETE"],"noResponseRetries":2,"statusCodesToRetry":[[100,199],[429,429],[500,599]]}},"code":429,"errors":[{"message":"Rate limited for the SetThermostatTemperatureHeat command for the user.","domain":"global","reason":"rateLimitExceeded"}]} Hallway Thermostat [11/29/2021, 11:35:58 PM] [homebridge-google-nest-sdm] Could not execute device command: {"response":{"config":{"url":"https://smartdevicemanagement.googleapis.com/v1/enterprises/asdfasdfadfsadfs:executeCommand","method":"POST","userAgentDirectives":[{"product":"google-api-nodejs-client","version":"5.0.5","comment":"gzip"}],"data":{"command":"sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat","params":{"heatCelsius":21.700000000000003}},"headers":{"x-goog-api-client":"gdcl/5.0.5 gl-node/16.13.0 auth/7.10.2","Accept-Encoding":"gzip","User-Agent":"google-api-nodejs-client/5.0.5 (gzip)","Authorization":"Bearer ya29.asdfasdfadfsadfs--Q_O-,"Content-Type":"application/json","Accept":"application/json"},"params":{},"retry":true,"body":"{\"command\":\"sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat\",\"params\":{\"heatCelsius\":21.700000000000003}}","responseType":"json","retryConfig":{"currentRetryAttempt":0,"retry":3,"httpMethodsToRetry":["GET","HEAD","PUT","OPTIONS","DELETE"],"noResponseRetries":2,"statusCodesToRetry":[[100,199],[429,429],[500,599]]}},"data":{"error":{"code":429,"message":"Rate limited for the SetThermostatTemperatureHeat command for the user.","errors":[{"message":"Rate limited for the SetThermostatTemperatureHeat command for the user.","domain":"global","reason":"rateLimitExceeded"}],"status":"RESOURCE_EXHAUSTED"}},"headers":{"alt-svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","cache-control":"private","connection":"close","content-encoding":"gzip","content-type":"application/json; charset=UTF-8","date":"Tue, 30 Nov 2021 07:35:57 GMT","server":"ESF","transfer-encoding":"chunked","user-id":"asdfasdfadfsadfs","vary":"Origin, X-Origin, Referer","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","x-xss-protection":"0"},"status":429,"statusText":"Too Many Requests","request":{"responseURL":"https://smartdevicemanagement.googleapis.com/v1/"}},"config":{"url":"https://","method":"POST","userAgentDirectives":[{"product":"google-api-nodejs-client","version":"5.0.5","comment":"gzip"}],"data":{"command":"sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat","params":{"heatCelsius":21.700000000000003}},"headers":{"x-goog-api-client":"gdcl/5.0.5 gl-node/16.13.0 auth/7.10.2","Accept-Encoding":"gzip","User-Agent":"google-api-nodejs-client/5.0.5 (gzip)","Authorization":"Bearer ya29.asdfasdfadfsadfs-asdfasdfadfsadfs","Content-Type":"application/json","Accept":"application/json"},"params":{},"retry":true,"body":"{\"command\":\"sdm.devices.commands.ThermostatTemperatureSetpoint.SetHeat\",\"params\":{\"heatCelsius\":21.700000000000003}}","responseType":"json","retryConfig":{"currentRetryAttempt":0,"retry":3,"httpMethodsToRetry":["GET","HEAD","PUT","OPTIONS","DELETE"],"noResponseRetries":2,"statusCodesToRetry":[[100,199],[429,429],[500,599]]}},"code":429,"errors":[{"message":"Rate limited for the SetThermostatTemperatureHeat command for the user.","domain":"global","reason":"rateLimitExceeded"}]} Hallway Thermostat [11/29/2021, 11:35:59 PM] [homebridge-google-nest-sdm] Could not execute device command: {"response":{"config":{"url":"https://smartdevicemanagement.googleapis.com/v1/enterprises/---","method":"POST","userAgentDirectives":[{"product":"google-api-nodejs-client","version":"5.0.5","comment":"gzip"}],"data":{"command":"sdm.devices.commands.ThermostatMode.SetMode","params":{"mode":"OFF"}},"headers":{"x-goog-api-client":"gdcl/5.0.5 gl-node/16.13.0 auth/7.10.2","Accept-Encoding":"gzip","User-Agent":"google-api-nodejs-client/5.0.5 (gzip)","Authorization":"Bearer ya29.asdfasdfadfsadfs--Q_O-","Content-Type":"application/json","Accept":"application/json"},"params":{},"retry":true,"body":"{\"command\":\"sdm.devices.commands.ThermostatMode.SetMode\",\"params\":{\"mode\":\"OFF\"}}","responseType":"json","retryConfig":{"currentRetryAttempt":0,"retry":3,"httpMethodsToRetry":["GET","HEAD","PUT","OPTIONS","DELETE"],"noResponseRetries":2,"statusCodesToRetry":[[100,199],[429,429],[500,599]]}},"data":{"error":{"code":429,"message":"Rate limited for the ExecuteDeviceCommand API for the user.","errors":[{"message":"Rate limited for the ExecuteDeviceCommand API for the user.","domain":"global","reason":"rateLimitExceeded"}],"status":"RESOURCE_EXHAUSTED"}},"headers":{"alt-svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","cache-control":"private","connection":"close","content-encoding":"gzip","content-type":"application/json; charset=UTF-8","date":"Tue, 30 Nov 2021 07:35:59 GMT","server":"ESF","transfer-encoding":"chunked","user-id":"","vary":"Origin, X-Origin, Referer","x-content-type-options":"nosniff","x-frame-options":"SAMEORIGIN","x-xss-protection":"0"},"status":429,"statusText":"Too Many Requests","request":{"responseURL":"https://smartdevicemanagement.googleapis.com/v1/enterprises/--/devices/"}},"config":{"url":"https://smartdevicemanagement.googleapis.com/v1/-:executeCommand","method":"POST","userAgentDirectives":[{"product":"google-api-nodejs-client","version":"5.0.5","comment":"gzip"}],"data":{"command":"sdm.devices.commands.ThermostatMode.SetMode","params":{"mode":"OFF"}},"headers":{"x-goog-api-client":"gdcl/5.0.5 gl-node/16.13.0 auth/7.10.2","Accept-Encoding":"gzip","User-Agent":"google-api-nodejs-client/5.0.5 (gzip)","Authorization":"Bearer ya29.asdfasdfadfsadfs--Q_O-","Content-Type":"application/json","Accept":"application/json"},"params":{},"retry":true,"body":"{\"command\":\"sdm.devices.commands.ThermostatMode.SetMode\",\"params\":{\"mode\":\"OFF\"}}","responseType":"json","retryConfig":{"currentRetryAttempt":0,"retry":3,"httpMethodsToRetry":["GET","HEAD","PUT","OPTIONS","DELETE"],"noResponseRetries":2,"statusCodesToRetry":[[100,199],[429,429],[500,599]]}},"code":429,"errors":[{"message":"Rate limited for the ExecuteDeviceCommand API for the user.","domain":"global","reason":"rateLimitExceeded"}]} Hallway Thermostat [11/29/2021, 11:38:14 PM] [homebridge-google-nest-sdm] FFmpeg exited with code: 1 and signal: null (Error) Garage Camera

potmat commented 2 years ago

"reason":"rateLimitExceeded"

Yup, the API is telling you you're making too many requests. I've never seen this in normal usage, I assume you were pressing a lot of buttons?