Ring integration authentication disconnected. How to re-establish 2FA credentials without deletion/re-add

My ring integration (2FA) has had its token expired and I’m looking to get it to re-establish a new token)

This happened as some previous sign ons from the ring app were manually removed but it was not clear one of these was for home assistant as it was listed as signed on from an ‘unknown device’ and python shell.

Since removal of that client logon, this integration no longer works.

The error in the logs is listed below, but the question is, how can one, either from the UI (which I cannot seem to find a way) or by modifying some YAML, get it to reconnect to establish the credentials from ring as it does on first setup?

Error setting up entry for ring

Traceback (most recent call last):
File “/usr/local/lib/python3.10/site-packages/ring_doorbell/auth.py”, line 94, in query
req = getattr(self._oauth, method.lower())(url, **kwargs)
File “/usr/local/lib/python3.10/site-packages/requests/sessions.py”, line 635, in post
return self.request(“POST”, url, data=data, json=json, **kwargs)
File “/usr/local/lib/python3.10/site-packages/requests_oauthlib/oauth2_session.py”, line 483, in request
url, headers, data = self._client.add_token(
File “/usr/local/lib/python3.10/site-packages/oauthlib/oauth2/rfc6749/clients/base.py”, line 217, in add_token
raise TokenExpiredError()
oauthlib.oauth2.rfc6749.errors.TokenExpiredError: (token_expired)

Did you find an answer to this? I’m seeing the same errors.

Hi,

Yes I did. basically I had to regenerate a new 2FA token so outside of the ring integration for HA, I signed in and grabbed that token and then placed that within one of the config files on disk. I then did a restart and ring started working perfectly again with no other changes.

There really should be a way to re-authenticate such devices.

I know the Husqvarna Automower HACS component can do it, every now and then I get a message to re-authenticate. Deleting integrations or digging through config files is just BS.

Just thought I would leave this here in case someone runs into the same issue, had me going for over an hour, just click on add integration without deleting older integration, it won’t add a new one it will just update the existing integration and get it back working.

1 Like

Tried adding new integration and it no longer works for me. It did the first time I tried but just tried today and it doesn’t send me the 2FA code to authenticate.