Google Nest Integration Error 400 URI Mismatch Problem

Hi Folks, I’m trying to integrate my Nest thermostat E, although I’m totally new to HA / light on computer skills. I’ve followed the HA Nest setup instructions, paid my $5, got my Google client ID, secret, and Device Project ID (type “Web application”), and entered the redirect URI as https://my.homeassistant.io/redirect/oauth in the credentials (double checked that). But at the next step I get an “Error 400: redirect_uri_mismatch” that lists a DIFFERENT URI in the expanded error message: “Request details: redirect_uri=https://www.google.com flowName=GeneralOAuthFlow”. Any advice on how to fix would be appreciated.

Hello,

Have you checked the troubleshooting part of the official documentation?

* Go back to the [API Console](https://console.developers.google.com/apis/credentials) and select your *OAuth 2.0 Client ID*.
* Add the URL `https://my.home-assistant.io/redirect/oauth` to the list of *Authorized redirect URIs* and click **Save** and start the flow over.

You may need to refresh the webpage or restart the home assistant server periodically through the process.

I found it helpful to keep an open notepad up for copying the correct info across in the order needed by the integration once you come to adding it and setting it up.

It should all work fine, just you may need to go back a step, refresh and keep going maybe.

Yep, went to the console to double check, and the correct URI is there. Given that, I don’t understand why the error message refers to a different URI.

Thanks. I went through the whole process again, this time using the video that’s part of the Nest integration HA documentation. And it worked! Not sure what I did wrong the first two times.

1 Like

Pleased you have it sorted