Google Assistant Setup Issue - "Could not update the setting. Please check your connection"

I haven’t found a solution yet so adding a +1 to experiencing the same issue without a solution.

I had the same issue and had to retry 3 times before getting it to work. In the end it worked with 4G, while on wifi it didn’t work.
Also saving the room setup always showed me an error, however after quitting the setup, the room had been successfully saved…

Clever, but it didnt resolve the problem for me.

I’ve repeated all the setup steps at this point, and waited multiple hours without success.

In my (Google) Home app on my android deviceI see [test app] my app name.

When I click it, the https call comes to my edge proxy. I see the request get answered with a 301, and a body of “{“message”: “redirect success”}” However the (Google) Home then says “Couldn’t update the setting. Check your connection” and no further http/https traffic.

Since the problem seems to be in the Home app, I’m not quite sure how to troubleshoot it.

My hostname / https uri resolves inside and outside my network. I can browse it directly. If copy and paste the Location header from the 301 link in a browser, it looks functional.

In the request, the client_id is passed and is correct.

In the response, the access_token is returned and correct.

The state is identical in the request and response.

The only thing that looks possibly suspicious to me is that the token_type=bearer but the access_token is just a random string.

If I follow the get uri from my packet capture, it looks like everything works, I go to my HA server, then get redirected to https://oauth-redirect.googleusercontent.com/… and finally I end up at https://assistant.google.com/services/auth/handoffs/auth/complete

Just keep clicking, like 100 times.

I found a fix for the switches not being added

1 Like

I’m 11 miles from home, on 4g, not WiFi and it still doesn’t work. Still get “Couldn’t save your setting. Check your connection.”

1 Like

I’m in the same boat. My Setup:

Nginx Proxy /w ssl -> HASS

This setup is working fine for all other things. I can access hass through a public domain name with https just fine.

I go to add my app and get the “could not update the setting. PLease check your connection”

Can someone confirm:

The client id in hass’s configuration.yaml should be the same client id entered into google_actions->account-linking->client-information->client_id

and is generated with the

cat /dev/urandom|fold -w 120|head -n 1|base64 -w 0|tr -dc ‘0-9A-Za-z’|cut -c -80

command.

I have the same setup:
Nginx Proxy /w ssl -> HASS

Since I already have nginx running on 443 I tried moving HASS to 8443 and creating a letsencrypt cert. All looks look through a web interface but I’m still getting the erro.

this is my working config using nginx proxy with ssl letsencryppt on port 443 with subdomain “myhome.mysite.com

google_assistant:
  project_id: project-ID
  client_id: project-ID
  access_token: generated random code of 80 characters
  exposed_domains:
    - switch

How long is your client id? Both my token and client id do not include special characters.

mine is in total 21 characters

project_id (Required): Project ID from the Google Developer console (looks like words-2ab12)

I used the same for client id and it workds

Another project having this issue.

I deleted the google console project and restarted from scratch. Didn’t change a thing other than updating the app id in hass config since google assigned me a new one. Same token, client id, etc and working.

Not sure what the issue is, but I am having a similar issue… If I need to do something special because of being in a virtual environment… or perhaps its related to previously having the emulated hue open through port 80 (but emulated hue is no longer in my config).

Just going to keep checking this forum!

Does your mobile device have more than one Google account configured?

I’ve found that it works better if you only have the google home account on the device you’re using, and that includes the browser that it will use to authenticate.

1 Like

That is correct… perhaps I will configure from different device and see what results I get. Thanks for the tip!

*** this resolved my issue. *** I reformatted an old tablet to use only the account associated with my google home account.

To anyone experiencing this issue I appear to have found one of the causes for the “Could not update the setting. Please check your connection” error. It seems certain entities in home assistant will cause this error to appear even if there isn’t a connection problem. To eliminate this being a cause set expose by default to false then specify individual entities to expose. Examples below:

google_assistant:
  project_id: !secret project_id
  client_id: !secret assistant_id
  access_token: !secret assistant_token
  expose_by_default: false

.

customize:
  light.light_name:
    google_assistant: true
    google_assistant_name: light one
4 Likes

This is indeed the issue. On my work phone (which has two accounts) I can’t get it done. Needed to take a tablet that just had my private account and it worked (had to try twice for some reason)

So if I wanted to control the off and on state of my account reciever, how would I do that?