Nest Integrations Issue website misdirect

Using Integration to attempt to configure for a nest account and I am getting 2 errors.
The first, when I click on the authorize your account link, I get a 404 (Oops! We’ve encountered an error. Please try again.) page on nest.com. Using the OAuth link in my developer page allows me to get a pin, however pasting that pin into the nest config I get the error “Unknown error validating code”

Any help appreciated!

I am having the same issue, please help us figure out what can we do

You have to use the URL generated in HA to get PIN. Can you post more detail information, such as what exactly URL you got?

The URL generated by HA is:
https://home.nest.com/login/oauth2?client_id=CLIENT_ID&state=d8def12725044ff7b2f5a83e40fbe302
This URL takes me to an error page at nest (after login) that reads “Oops! We’ve encountered an error. Please try again.”

The nest provided URL is:
https://home.nest.com/login/oauth2?client_id=2590c7f8-c050-4014-98d9-a496de3df29c&state=STATE
This URL allows me to generate a PIN.

When entering the PIN into HA, no matter the correct pin or random string, I encounter “Invalid flow specified”

Your URL looks wrong, weird.

Alright, I found you never show me your config, I double checked source code, I bet your configuration.yaml is not right, You need put your client id and client secret associated with your nest developer account to your configuration.yaml, not CLIENT_ID and CLIENT_SECRET, they are just placeholder in document.

Looks like that was the solution. Entered the info and it finally took (after a couple of reboots).

Thanks!

2 posts were split to a new topic: Nest - invalid flow detected