Google Smart Device Management API (for Nest devices)
Posted: Tuesday 27 October 2020 21:45
Since Google took over Nest and killed the Nest API if you (without reading) migrated your Nest account to a Google account. A new API is opened up by Google, for a mere $5.
https://developers.google.com/nest/device-access
https://developers.google.com/nest/device-access/api
Nice intro:
https://www.youtube.com/watch?v=4Rkzf9g ... e=emb_logo
I managed to walk thru the registering without much hassle and have a working API now. I can Get the devices, the device statusses and even do a manual post from the cmd line. But...
If the GET/POST strings were static, I can get my data and control without much hassle... but the google Smart Device Management API access token has a life of 3599 seconds. So you need to refresh the token every hour and then GET/POST, adding some complexity to a script.
Does someone have a script handling the refreshing of the token and GET/POST info from/to the Nest devices handy?
I think it would it be a nice suggestion to add to the Domotics Devices.
https://developers.google.com/nest/device-access
https://developers.google.com/nest/device-access/api
Nice intro:
https://www.youtube.com/watch?v=4Rkzf9g ... e=emb_logo
I managed to walk thru the registering without much hassle and have a working API now. I can Get the devices, the device statusses and even do a manual post from the cmd line. But...
If the GET/POST strings were static, I can get my data and control without much hassle... but the google Smart Device Management API access token has a life of 3599 seconds. So you need to refresh the token every hour and then GET/POST, adding some complexity to a script.
Does someone have a script handling the refreshing of the token and GET/POST info from/to the Nest devices handy?
I think it would it be a nice suggestion to add to the Domotics Devices.