Google assisant SDK 400 redirect_uri_mismatch

When I try to authorize the Google Assisant SDK, I get an error for Google “Access blocked, the request of the app is invalid” (my translation of the actual error message). Google complains about redirect_uri=https://my.home-assistant.io/redirect/oauth.

What do I need to change to be able to authorize the Google Assistant SDK?

I’m running Home Assistant 2024.1.2 in Docker with an active Home Assistant Cloud subscription.
configuration.yaml contains

homeassistant:
  external_url: https://redacted.ui.nabu.casa
  internal_url: http://redacted.mylocal:8123
1 Like

I’m having the same issue here.
external URL, https://ha.mydomain.com
(external redirected on the internal network using HAProxy)
internal URL http://111.112.113.114:8123

I’m also wondering if this is a new issue in 2023.1.2 as we both started with it at about the same time.

For me, I had moved my instance from core to HAOS, and thought that was the cause, but all other credentials still worked.

Hope the info is helpful in finding a fix.

I got the same problem. “Access blocked, the request of the app is invalid”

  • Core 2024.1.2
  • Supervisor 2023.12.0
  • Operating System 11.4
  • Frontend 20240104.0

I have the same problem when trying to set up the Google Sheet integration. I use Home Assistant Cloud.

  • Core 2024.1.5
  • Supervisor 2023.12.1
  • Operating System 11.4
  • Frontend 20240104.0

does anyone found a solution for it?

1 Like

Encountering the same issue trying to add Google Calendar.

  • Core 2024.1.6
  • Supervisor 2024.02.0
  • Operating System 6.6
  • Frontend 20240104.0

See the integration instructions Google Assistant SDK - Home Assistant under the section for generating a client id and secret under Authorized redirect URIs.

You need to literally enter https://my.home-assistant.io/redirect/oauth – its the same for everyone, and not your external or internal url. Put exactly what it says in there. You can go to the website https://my.home-assistant.io/ to see what it is doing and read the FAQ.

1 Like