Nest integration problem with URI

Hi
I wanted to say a big thanks to all the contributors here!
After many hours of messing and frustration, I’ve finally got it working on my setup!

In case it is helpful, i wanted to outline what i’ve done.

Firstly, i’ve followed the excellent github guide here @frenck -thank you so much!

So, after following the intial guide and having it fail with the dreaded 400 error, i got it working by…

  1. Using a DuckDNS address and SWAG to link a custom url ((https://xxxxx.duckdns.org)) to my HA VM (hosted on my Unraid box)… This was quite involved and took a bit of work to get the correct settings in the SWAG homeassistant.subdomain.conf config file (needed to setup the upstream port to be the IP for my HA instance ('set $upstream_app 192.168.1.254;).

  2. Adding ‘Link to OAuth2 Authorize Callback – My Home Assistant’ to the Authorised redirect URI list in the cloud console - the HA intergration setup wizard sequence kept giving a 400 error which inlcuded the ‘Link to OAuth2 Authorize Callback – My Home Assistant’ despite this not being set on the google cloud dashboard.
    I had already added my custom URL and a version with the ‘auth/external/callback’ added to the end, but these wouldnt work.

  3. Adding the ‘trusted proxies’ config to my HA config.yaml file:

http:
server_port: 8123
use_x_forwarded_for: true
trusted_proxies:

  • 192.168.1.0/24
  • 172.17.0.0/24
    ip_ban_enabled: true
    login_attempts_threshold: 5
  1. Ensure i was logged into my external HA URL BEFORE* starting the Nest setup wizard - this seems to be a critical point pointed put by others.

  2. At some point during the setup once i got past the 400 error page, i then needed to open a link that goes to my HA url. For some reason it defaulted to my local HA IP address (192.168.x.x) and would fail. I was able to go back a page/step in the browser and replace the autosuggested url with my custom extenral url (https://xxxxx.duckdns.org) and it all finally worked.

I really hope this is useful for someone!
Thanks all!

Hi
I wanted to say a big thanks to all the contributors here!
After many hours of messing and frustration, I’ve finally got it working on my setup!

In case it is helpful, i wanted to outline what i’ve done - i;ve just put the details in the othe related thread here:

Thanks all!