I’m not sure what else I’m missing. I’ve tried to do this via local 192 address and using the nabu.casa address the both have a redirec_uri error issue.
Not sure if it makes a difference but when I use my 192 local ip the error I get is: Error 400: invalid_request device_id and device_name are required for private IP: http://192.168..30:8123/auth/external/callback
ok this really should be apart of the documentation. (Thanks to someone on discord, I lost their screen name for the help)
The solution using nabu casa is to include the path in your google URI redirect for auth. For example:
This allowed me to add my nest stuff and get around the redirect error. Couple of open issues when trying to add integration:
Windows: firefox or chrome, if using nabucasa to get to the HA pressing + integration does nothing. No menu pops up
IOS: using cloud connection to the HA app on the iphone you can go through all the steps after adding nest but on the last screen of the oauth it does not take you back to the app to finish adding the integration.
What worked: Chrome OS on my mac. It allowed me to add the integration, go through oauth and return to the HA page.
It uses the URL you are accessing the HA console from for the request. so I need to use my external URL to access HA and then setup Nest… Off to try now…
Thanks for the solution. Logging in through nabu.casa worked for getting the integration made but I’m not getting an entity. It’s not showing my thermostat. Any thoughts?
UPDATE: The log showed that my Subscriber ID wasn’t right. Went back into the Cloud Pub/Sub API page and corrected it. Now it’s working.
I’m very new to Home Assistant, moving over from Smartthings… is it always this complicated?!
Im interested in understanding if i can use this without having to use the nabu casa address. I ask this because every so often the integration needs to be fixed for an unknown reason.
The only way is for me to login with nabu casa URL and integrate.
Can anyone explain if a local address can be used as a redirect URL?. I cant get it to work.
Exact same redirect issue here. Error 400 from google when trying to authorize Nest. The nabu.casa/auth/external/callback no longer accepted. Only top level domains. Anyone with a work around?
I figured out the problem…my external url wasn’t referenced in the configuration.yaml file:
Hi folks, in 2021.12 redirect urls (for OAuth for Web) will no longer be required at all to simplify this. Instead, we’ll use a version of OAuth where you copy/paste an access code (OAuth for Apps). If you used OAuth for Web and redirect urls, that will keep working. Going forward we’ll prefer the simpler OAuth for Apps for new installs.
Is there any additional detail if you mouse over the error message? You can also check out Settings → System → Logs to see error information about why its failing to setup. See Troubleshooting your configuration - Home Assistant for even more details.
It may be worth forking a separate discussion thread given that this is unrelated to the topic in this thread about the redirect_uri error when configuring the integration.