For the past week or two I’ve been getting the following errors:
2020-10-10 11:54:19.459 [ERROR] [oauth2client.internal.OAuthConnector] - grant type refresh_token to URL https://api.ecobee.com/token failed with error code invalid_grant, description The authorization grant, token or credentials are invalid, expired, revoked, do not match the redirection URI used in the authorization request, or was issued to another client.
2020-10-10 11:54:19.464 [INFO ] [inding.ecobee.internal.api.EcobeeApi] - API: Exception getting access token: error=‘invalid_grant’, description=‘The authorization grant, token or credentials are invalid, expired, revoked, do not match the redirection URI used in the authorization request, or was issued to another client.’
I’ve deleted “~/.java/.userPrefs/”. I’ve completely rebuilt the ecobee api side and updated the api key on the .things file. I’ve restarted OH several times. Is anyone else having this issue?
Yes, I am experiencing this as well. I’m just about to get a new API key for the third time. I can tell you their app has been a bit wonky as well…as sometimes it gives me an error message to try back later.
I was able to resolve this but definitely not in the best way. You need to delete the JSON store StorageHandler.For.OAuthClientService.json in /var/lib/openhab2/jsondb as well as all of the backups with OH off and then start it up.
Thanks, @morph166955 . I had the same problem. Deleting those files then re-authorizing with the PIN (under “My Apps” on the web portal) appears to have fixed it for me.
Can anyone elaborate on this process? I’ve been doing a dance for 2h now…
grant type refresh_token to URL https://api.ecobee.com/token failed with HTTP response code 404
stop service, delete, restart, refresh, remove, re-add, restart etc. etc. No luck…
forgot I moved to a manually created thing, so restarting troubleshooting…
I’m having problems too…404 error.
Same problem here. We really do need to map out the process. Going through the motions at https://www.ecobee.com/home/developer/api/examples/ex1.shtml and https://www.ecobee.com are not prompting a pin in openhab for me.
Ok, here is my attempt to help…the issue may be that the ecobee binding changed. 2.5.11 is the current version and the old binding may also be there.
Before doing anything check whether you have more than one binding installed. You might have the old binding 1.14.0.
Uninstall both bindings (2.5.11 and 1.14.0) after first noting your current API. If you have just one binding, uninstall it.
In a separate browser window, go to ecobee.com, under settings select “MyApps,” then select the openhab app you (hopefully) already created, then click the button “Add Application.”
Now in a separate window (or tab) go to Paper UI and reinstall the 2.5.11 ecobee binding, add an account thing, then re-enter the API under the account settings.
Now check the openhab log for the PIN, and enter it in the MyApps window to confirm the app.
If the above steps do not work, uninstall the binding, then in a openhab terminal enter the following commands:
sudo systemctl stop openhab2.service
sudo openhab-cli clean-cache
sudo rm /var/lib/openhab2/jsondb/StorageHandler.For.OAuthClientService.json
Now do steps 2 - 4 again.