Hi,
I’ve done all the required steps from the Google Assistant component page but when I click on the “[test] Home Assistant” inn the add new device page in Google Assistant application on my phone, after few redirects I get an error “404: Not Found”. Also there is this entry in my log file:
[homeassistant.components.google_assistant.auth] missing redirect_uri field
Here is my config, hope that someone can see what’s wrong:
configuration.yaml
google_assistant:
project_id: X <--- project id from cloud console
client_id: X <--- randomly generated string
access_token: X <--- randomly generated string
agent_user_id: X <--- my email address
api_key: X <--- api key taken from HomeGraph API credentials page (Server key auto created by Google Service)
expose_by_default: false
exposed_domains:
- switch
entity_config:
switch.light_kitchen:
name: Kitchen light
expose: true
room: Kitchen
Actions on Google configuration:
Account creation:
No, I only want to allow account creation on my website
Linking type:
OAuth, Implicit
Client information:
Client ID: X <--- the same as in configuration.yaml
Authorization URL: https://mydomain/api/google_assistant/auth?api_password=***
Configure your client (optional):
Scopes: email, name (two separate lines)
Create Smart Home action / Add fulfillment URL:
https://mydomain/api/google_assistant?api_password=***
HomeGraph API is enabled.
I saw on some other threads that people put project.json into .homeassistant directory, but I didn’t see instructions to generate this file anywhere on Google Assistant Component page. Is it necessary?
Also when I put https://mydomain/api/google_assistant/auth?api_password=*** address into my browser it generates the following response (I’m not sure if it’s relevant):
{
"message": "missing redirect_uri field"
}
So, any ideas why this doesn’t work? What am I doing wrong?