openHABian running 3.3
I removed the Ecobee Account Thing from a system I manage because it wasn’t connected but then learned that the Ecobee was actually not on the house wifi network. So I reinstalled it but can’t get the pin. I removed all of the Ecobee Things, the binding, rebooted, same issue.
So then I removed the binding again, logged in with Putty, and did this:
sudo /bin/systemctl stop openhab.service
sudo openhab-cli clean-cache
sudo rm /var/lib/openhab3/jsondb/StorageHandler.For.OauthClientService.json
sudo reboot
Still can’t get connected. Here is the error:
logreader:reader:LogReader:newErrorEvent triggered 2022-09-15 09:51:11.750 [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.
I was able to get a pin after installing the binding on a different system so I know the API is working. What can I do?