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
140 stars 17 forks source link

Error loading thermostat that's off #79

Closed getaaron closed 1 year ago

getaaron commented 1 year ago
[3/31/2023, 8:45:39 PM] [homebridge-google-nest-sdm] Restoring existing accessory from cache: Camera Doorbell

/usr/local/lib/node_modules/homebridge-google-nest-sdm/src/sdm/Thermostat.ts:124
                throw new Error('Cannot get a target temperature when the thermostat is off.');
                      ^
Error: Cannot get a target temperature when the thermostat is off.
    at Thermostat.getTargetTemperature (/usr/local/lib/node_modules/homebridge-google-nest-sdm/src/sdm/Thermostat.ts:124:23)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Doesn't seem like it should be an error to turn my thermostat off?

potmat commented 1 year ago

@getaaron: It looks like this happened when Homebridge was restarting. Does this happen every time it starts up with the Thermostat off? Or did you do something like shut down Homebridge, turn off the thermostat, then restart Homebridge?

potmat commented 1 year ago

Closing due to lack of activity.