NEST Google device - integration

My current HA is configured using DuckDNS and NGINX, workers well from the internet over HTTPS. I am trying now to do the steps required by https://developers.google.com/nest/device-access/authorize and I get each time:
" Eroare 400: redirect_uri_mismatch

The redirect URI in the request, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs, visit: https://console.developers.google. com/apis/credentials/oauthclient/${your_client_id}?project=${your_project_number}"

Inside Google Home API Automation (console. developers. google. com/apis/credentials?project=…) I configured a Web Server for OAuth 2.0 with ‘Authorised redirect URI’ to the DuckDNS (https://…duckdns. org:8123 - the 8123 port is redirected to 443 inside my LAN.

Could you help me with it? Thank you.

After a few hours of hard work, I realized that I am missing the google.com path in the redirect URL of the https://console.developers.google.com/apis/credentials/oauthclient

Hi RaduVT, Could you explain a bit more what you exactly did to resolve this issue? What do you mean by ‘missing the google.com path’ ?

Edit: Got it! I had to adjust the DNS records in order to make the redirect work.

1 Like

Glad you got this working. Note for other users: in the next home assistant release, we’ll no longer require redirect urls at all and you’ll copy/paste an access code instead.

1 Like