mhilbush
(Mark)
October 23, 2018, 12:21pm
1
I started seeing these errors in my log starting just after midnight US EDT. Anyone else seeing this?
2018-10-23 08:08:03.136 [ERROR] [inding.ecobee.internal.EcobeeBinding] - Error retrieving tokens: invalid_grant
2018-10-23 08:08:03.137 [WARN ] [inding.ecobee.internal.EcobeeBinding] - Periodic poll skipped for 'DEFAULT_USER'.
2018-10-23 08:11:03.325 [ERROR] [inding.ecobee.internal.EcobeeBinding] - Error retrieving tokens: invalid_grant
2018-10-23 08:11:03.326 [WARN ] [inding.ecobee.internal.EcobeeBinding] - Periodic poll skipped for 'DEFAULT_USER'.
2018-10-23 08:14:03.546 [ERROR] [inding.ecobee.internal.EcobeeBinding] - Error retrieving tokens: invalid_grant
2018-10-23 08:14:03.546 [WARN ] [inding.ecobee.internal.EcobeeBinding] - Periodic poll skipped for 'DEFAULT_USER'.
2018-10-23 08:17:03.737 [ERROR] [inding.ecobee.internal.EcobeeBinding] - Error retrieving tokens: invalid_grant
2018-10-23 08:17:03.737 [WARN ] [inding.ecobee.internal.EcobeeBinding] - Periodic poll skipped for 'DEFAULT_USER'.
mhilbush
(Mark)
October 23, 2018, 1:10pm
2
I guess this is a known issue. Somehow, it just randomly stops working…
For the last few weeks my ecobee binding has stopped working. My logs are filled with messages like:
Dec 15 16:32:35 hab start.sh[28800]: 2016-12-15 16:32:35.121 [ERROR] [.ecobee.internal.EcobeeBinding] - Error retrieving tokens: invalid_grant
My suspicion is that the binding is connecting to the app API just fine, but the app has somehow become unauthorized, but I could be completely wrong about that. I don’t see any mention of PINs or such in my logs. I do see the app listed in my ecobee …
rich0
(Richard Freeman)
October 23, 2018, 1:54pm
3
Indeed, this seems to happen to me a few times per year.
I resolve it by deleting my java preferences store. I imagine the location is somewhat config-dependent, but on my raspbian install it is at:
~pi/.java/.userPrefs
I just delete that whole directory and it is recreated when openhab is restarted. Then I get the PIN in the logs and have to re-authorize the application with ecobee, and it immediately starts working once this is done. (Well, aside from any polling delays.)
1 Like