nest-api
nest-api copied to clipboard
Only one thermostat shows?
I've been using the php class for setting humidity, and can't move away from it because they never added setting humidity to the official API. It's been working fine up until now, now suddenly instead of my Living Room thermostat, it's defaulting to my Garage thermostat, and calling $nest->getDevices() only shows a single device, my garage thermostat; while in the browser I can clearly see both.
If I try to use $nest->getDeviceInfo('serialoflivingroomthermostat'), I get a lot of undefined property and undefined offset errors, and no actual information from the thermostat.
I'm kind of at a loss.
Most likely your thermostat was changed to Google's new URL. Using your web browser to home.nest.com, login, and click on your Living Room thermostat.
If the URL is: https://home.nest.com/thermostat/DEVICE_ (followed by 16 hex characters) rather than https://home.nest.com/theromostat/{Serial_Number} you can follow the below steps.
On the Device: Settings (gear icon) Reset WWN Connection
Related:
https://github.com/gboudreau/nest-api/issues/137 https://github.com/gboudreau/nest-api/issues/136 https://github.com/gboudreau/nest-api/issues/135#issuecomment-776344673 https://github.com/gboudreau/nest-api/issues/115#issuecomment-596142188
That appears to be exactly what it is. I do have the temperature sensors as well, so that may cause issues. I suppose that the nest thermostats are being completely crippled for the ability to set humidity, which is a huge problem, as when it's below freezing outside it has to be adjusted accordingly.
Is there any way to set humidity through the DEVICE_ url instead of serial number URL (obviously not yet supported in this php api), as I expect it will repeat this action?
WWN is not a full reset, the temperature sensors and all other settings should stay as they are now. You may lose "historical" data for today though.
I was quite busy and only spent a trivial amount of time grabbing data dumps when the new URL was being used for my thermostat. The response data wasn't immediately human-readable and I've since lost the data. I reset mine some time back and it's "stuck" - it seems to be quite random.