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.
I had tried at one point to add pinToken="" in my .thing file with no success of the pin token being successfully used. I just tried accessToken="" and now the thing doesn’t show in paper ui anymore.
Where at in paper ui are you referring to “configuring a Nest Account”?
I just uninstalled the nest binding, removed the config files, and reinstalled it with the same behavior.
EDIT - I would like to add that after reinstalling it, there are no services config files anymore. I assume that those were left over from the old nest binding.
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.
Thank you for this! May I suggest we add this to the Nest Binding details in the User Manual? This bit wasn’t so clear for me, perhaps it will help others as well?