For all of you guys having trouble linking your account and getting the “Could not update the setting” error.
I’ve been trying to get this to work for months and finally got it working.
Google assistant uses a browser on android to do it’s oath flow. If you have signed in on another google account in your default browser it may keep using that account even if you sign out. Every time I tried to link my account I would unknowingly attempt to link it to one of my other accounts. My solution is to download a new browser app, preferably never used on your device previously. When you go to add your test app in the google assistant it should ask you what browser app you want to use. Select the one you just downloaded. It should give you a sign in page. Sign in with your correct account and linking should succeed.
i have the problem already, and got only 1 account on the phone and port 8123 in the project.json, is also see in the hass log, that the auth is true but it doesnt add anything
After pulling my hair out for a few hours, trying most of the solutions, and still not being able to add my “[test] HASS” device, I figured out my issue and thought it might help others.
First, my symptoms were exactly the same as everyone else: Unable to add the Home Control device in Google Home on Android.
I was even able to see it hitting my HASS instance with no errors:
2018-02-16 22:17:19 INFO (MainThread) [homeassistant.components.http] Serving /api/google_assistant/auth to 192.168.1.14 (auth: True)
2018-02-16 22:17:19 INFO (MainThread) [homeassistant.components.google_assistant.auth] user login in from Google Assistant
After noticing the IP was on my local network, and thinking of how OAuth works, and how forcing an “outside” connection helped others, I tried the same thing…but that didn’t work either.
I then realized my external IP may have changed, breaking my DNS. Indeed that was the cause and once I fixed that, the 3-way communication between my phone-Google-HASS worked and I was able to add the device.
(I should note that - although I was using the FQDN the entire time, DNS Host Mapping on my internal network masked the issue until I tried hitting it from outside.)
I am linking my smartphone to Google assistant. I go into the settings of Google Assistant and select Home Control. I successfully added devices if I use my Hotmail account. If I try to use my Gmail account then I get the error “Couldn’t update settings. Check your connection”.
Is this an issue specific to gmail?
I get the same on another device. Hotmail works fine and I get this error for gmail
Also, I did in article 3.4 (add scope), put another email(B) and name(B) who I want to be able to control my devices. then save from top right of the page. back to test draft page.
Invitation email will be sent to email(B) to activate. After activate then you can go back to email(B) phone which have google assistant app. then follow the article 7. This time email(B) will see the [test]name in smart home skill and devices will load and be able to use.
project_id: !secret google_project_id <== the project name from google
client_id: !secret google_client_id <== this create from ssh " $ cat /dev/urandom | fold -w 120 | head -n 1 | base64 -w 0 | tr -dc '0-9A-Za-z' | cut -c -80 "
access_token: !secret google_access_token <== this create from ssh " $ cat /dev/urandom | fold -w 120 | head -n 1 | base64 -w 0 | tr -dc '0-9A-Za-z' | cut -c -80 "
agent_user_id: !secret google_agent_user_id <== I use email. the same emailA from ADD SCOPE in google
api_key: !secret google_homegraph_api_key <=== from homegraph api
exposed_domains: <== I didn't use this anymore but to check if all devices from these domain works well with google assistant
- switch
- light
- scene
- script
- media_player
- climate
- cover
- fan
- group
entity_config:
switch.test_light_1:
name: Test Light 1 <== name of the device to be seen in google_assistant
aliases:
- test light 1 <== voice or text command to be use with google_assistant
- light number 1 <== voice or text command to be use with google_assistant
- gratia light 1 <== voice or text command to be use with google_assistant
- first light <== voice or text command to be use with google_assistant
type: switch
expose: true
But I want them to be able to see and change device nicknames in the home app as well.
And access it from the phone version of Google Assistant, not just the speakers.
You cannot change nicknames of the device from google home app. This can be done only in HA.
You can control devices via google assistant app by both voice and text.
example:
By voice, turn on test light 1
By type in google assistant app, turn off first light