SOLVED: Nest integration Access Token failure

Was working perfectly up to today, now broken…

Any ideas ?, the integration is so horrifically complicated I wouldn’t know where to start…

Hi. For some reason your access token was revoked by Google. There are a couple options:

  1. Just fix it approach. If you are running the latest version of home assistant, then you should be able to restart and get sent to the “reauth” flow to reauthorize your account. Click through and re-authorize and you should be on your way.
  2. Debug it approach. In https://github.com/home-assistant/core/issues/44584 I added extra debugging to help you get the response from Google as to why your auth was failing. You can turn up debug logging for that package and see the error . Most likely it is failing due to invalid_grant which you can read more about root causes here: https://blog.timekit.io/google-oauth-invalid-grant-nightmare-and-how-to-fix-it-9f4efaf1da35 where the most common is changing your password, but there are others as well. This isn’t really a home assistant issue, but something about the state of your account.

This can happen for a variety of reasons, related to your account.

FWIW I had the same thing happen to me today… Was working great then out of the blue it wouldn’t accept my token. While I did end up getting it fixed, a restart didn’t do it for me (albeit I’m not on the latest version of HA like Allen suggested above).

I started by logging into the Google APIs dashboard and generating a new token which I then copied into my configuration.yaml, but that didn’t do the trick (at least not by itself).

I removed the integration in HA, then re-added it. After that started working again for me.

I restarted and then got a notification to re-authenticate. At the end of the process I got a Server Error 500 message, however the thermostats are now working again.