Since upgrading, I’m trying to configure the thing I created to gain access to the Nest API and I’m getting the following error:
2017-12-19 17:11:26.660 [hingStatusInfoChangedEvent] - ‘nest:account:nest_account’ changed from UNKNOWN: Starting poll query to OFFLINE (CONFIGURATION_ERROR): Token is invalid and could not be refreshed: Pincode is empty
hmmm… I can get a new pin code all day long. For some reason, the binding isn’t getting an access token from my provided product id, product secret, and pin code. Do I have to do something different in the nest developer page with the new binding?
Then in PaperUI, the thing shows up prepopulated with the product id and the product secret I typed in the nest.thing file and I enter the pin code in Paper UI and click the check mark. That’s when I get the error.
I removed the config file from /var/lib/openhab2/config/org/openhab/nest.conf and restarted the openhab2 service to verify it is getting populated from the config file at /etc/openhab2/services/nest.cfg which it is.
I see you are using files based configuration. So you’ll also need to store the accessToken in the .things file or it will get lost.
The easiest way is probably to first obtain the token using Paper UI by configuring a Nest Account (with the Pincode). Then you can find the access token in the Nest Account when viewing the details and clicking “Show More”. Then delete the Nest things from Paper UI and use the accessToken for your Nest things in the .things file.
That got me up and running. Thanks. I just realized that all the temps are in celsius… lol. Looks like I either uninstall the binding and install the .jar someone thankfully created that shows in fahrenheit or wait for a future fix.
Quick side question… Do you know why the battery health status is a switch?
Also, is there not a “Last Connection” channel? I have a status page in Habpanel I like to get a quick overview of things in the house and that was a nice thing to see to make sure what I wasn’t seeing old data. It was the last time a Nest device connected with their servers.