ha-google-home: Can't connect to Google home addon - Could not get master token.

Hello,

I have read the other issues with the same error than mine, but I couldn’t resolve it.

I use the Google Home addon of Home Assistant, but the connection is refused. I’ve tried to take off the protection methods to my google account too.

Here the log :

2022-05-13 10:58:25 DEBUG (MainThread) [glocaltokens.client] Initializing new GLocalAuthenticationTokens instance. 2022-05-13 10:58:25 DEBUG (MainThread) [glocaltokens.client] Set GLocalAuthenticationTokens client access_token, homegraph, access_token_date and homegraph_date to None 2022-05-13 10:58:25 DEBUG (MainThread) [glocaltokens.client] Set GLocalAuthenticationTokens client username to "m*******************", password to "V********", master_token to "" and android_id to 2022-05-13 10:58:25 DEBUG (SyncWorker_15) [glocaltokens.client] There is no stored master_token, logging in using username and password 2022-05-13 10:58:25 DEBUG (SyncWorker_15) [glocaltokens.client] There is no stored android_id, generating a new one 2022-05-13 10:58:25 DEBUG (SyncWorker_15) [glocaltokens.client] Generating android id... 2022-05-13 10:58:25 DEBUG (SyncWorker_15) [glocaltokens.client] Generated android id: 02d89392d5f67400 2022-05-13 10:58:25 ERROR (SyncWorker_15) [glocaltokens.client] [!] Could not get master token. 2022-05-13 10:58:25 DEBUG (SyncWorker_15) [glocaltokens.client] Request response: {'Error': 'NeedsBrowser', 'Url': 'https://accounts.google.com/signin/continue?sarp=1&scc=1&continue=https://accounts.google.com/o/android/IDELETEDTHIS', 'ErrorDetail': 'To access your account, you must sign in on the web. Touch Next to start browser sign-in.'} 2022-05-13 10:58:25 ERROR (MainThread) [custom_components.google_home]

*Edit : Of course, no pop-up opens.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 46 (10 by maintainers)

Most upvoted comments

Sorry, guys, my fault (not the first time forgetting to update manifest file 😮‍💨 🤦 😅 ) Fixed here: https://github.com/leikoilja/ha-google-home/pull/541 will merge and deploy a new release

Arrfff, Always the same error. Yet, I have uninstall Google Home, And reboot HA and then reinstall GH.

2022-06-01 14:13:34 DEBUG (MainThread) [glocaltokens.client] Initializing new GLocalAuthenticationTokens instance.
2022-06-01 14:13:34 DEBUG (MainThread) [glocaltokens.client] Set GLocalAuthenticationTokens client access_token, homegraph, access_token_date and homegraph_date to None
2022-06-01 14:13:34 DEBUG (MainThread) [glocaltokens.client] Set GLocalAuthenticationTokens client username to "m*******************", password to "V********", master_token to "" and android_id to 
2022-06-01 14:13:34 DEBUG (SyncWorker_2) [glocaltokens.client] There is no stored master_token, logging in using username and password
2022-06-01 14:13:34 DEBUG (SyncWorker_2) [glocaltokens.client] There is no stored android_id, generating a new one
2022-06-01 14:13:34 DEBUG (SyncWorker_2) [glocaltokens.client] Generating android id...
2022-06-01 14:13:34 DEBUG (SyncWorker_2) [glocaltokens.client] Generated android id: a6842563dc53d585
2022-06-01 14:13:35 ERROR (SyncWorker_2) [glocaltokens.client] [!] Could not get master token.
2022-06-01 14:13:35 DEBUG (SyncWorker_2) [glocaltokens.client] Request response: {'Error': 'NeedsBrowser', 'Url': 'DELETED', 'ErrorDetail': 'To access your account, you must sign in on the web. Touch Next to start browser sign-in.'}
2022-06-01 14:13:35 ERROR (MainThread) [custom_components.google_home] 

image

*EDIT : It works!!

I have forgotten I have reactived the double factor identification, sorry.

Thanks @leikoilja

@leikoilja, the same error for me too. It doesn’t work.

Bro! Reinstall from HACS and restart just fixed mine!

Seems to work for me! ^^

Success! Created configuration for [REDACTED]@gmail.com.

all good here, thanks for quick fix!

@Neolanco just wait a bit till new version is pushed out, update via hacs and it will do the work automatically

that’s the issue. flip i think it’s my fault, I keep forgetting updating the manifest file with a version requirement 😄

No, no worries, thank you, @Pronown. Happy to hear it has eventually worked for you 😃

strange, it works here, I created a timer to test and could see it in ha

@leikoilja, the same error for me too. It doesn’t work.

Okay, new patch release is out, it should fix it. v1.9.12 Please update and verify all good 🚀 🔥

Haha, looks like we got it figured out before I could put the commands in. Thanks for all your work!


From: Ilja Leiko @.> Sent: Wednesday, June 1, 2022 4:46:00 AM To: leikoilja/ha-google-home @.> Cc: Pronown @.>; Mention @.> Subject: Re: [leikoilja/ha-google-home] Can’t connect to Google home addon - Could not get master token. (Issue #528)

Sorry, guys, my fault (not the first time 😮‍💨 🤦 😅 ) Fixed here: #541https://github.com/leikoilja/ha-google-home/pull/541 will merge and deploy a new release

— Reply to this email directly, view it on GitHubhttps://github.com/leikoilja/ha-google-home/issues/528#issuecomment-1143439849, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASJGOXPA2RXWHJKA2QJOD73VM45ORANCNFSM5V2YQEGQ. You are receiving this because you were mentioned.Message ID: @.***>

@leikoilja you forgot to update it in the manifest: https://github.com/leikoilja/ha-google-home/blob/master/custom_components/google_home/manifest.json#L20

pyproject.toml is only used for CI.

I run latest ha in docker, here’s the output from inside the container: https://o.o5.ddns.net/z3KcF I will now bring the stack down and rebuild, but it’ll take time on pi. Will report if that changes anything.

I just updated to 1.9.11, restarted HA, created new app password for my gmail address, tried to log in with it into integration and still get [!] Could not get master token.. Is there something more I need to do? Thanks!

This is related to glocaltokens, so the issue is moved there. See leikoilja/glocaltokens#245