Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google: "Error" "BadAuthentication" -- apparently different problem than before? #511

Open
kauffy opened this issue Mar 26, 2024 · 0 comments

Comments

@kauffy
Copy link

kauffy commented Mar 26, 2024

Describe the bug
I am running a HAOS system in a VM on a NAS. When I try to use the HACS Google-Home integration, it won't accept my username + apppassword. I have 2FA turned on and tried several apppasswords, as well as the username both with and without the @gmail.com.

To Reproduce
Download and setup the Google-Home repository in HACS.
Go to add a new integration.
Enter my full gmail address for the username.
Paste in an app password from Google.
Hit "Submit".
A split second later, I get the message:

Username/Password is incorrect. If your google account has 2FA enabled please generate app password (https://myaccount.google.com/apppasswords). If authentication still fails refer to https://github.com/leikoilja/ha-google-home#troubleshooting

Expected behavior
The service would connect to Google and then discover the Google Home devices I have on my network.

Screenshots
image

Additional context

(MainThread) [glocaltokens.client] Initializing new GLocalAuthenticationTokens instance.
(MainThread) [glocaltokens.client] Set GLocalAuthenticationTokens client access_token, homegraph, access_token_date and homegraph_date to None
(MainThread) [glocaltokens.client] Set GLocalAuthenticationTokens client username to "f *******************", password to "z **************", master_token to "" and android_id to
(SyncWorker_9) [glocaltokens.client] There is no stored master_token, logging in using username and password
(SyncWorker_9) [glocaltokens.client] There is no stored android_id, generating a new one
(SyncWorker_9) [glocaltokens.client] Generating android id ...
(SyncWorker_9) [glocaltokens.client] Generated android id: bed9ed3a0e0bc155
(SyncWorker_9) [glocaltokens.client] [!] Could not get master token.
(SyncWorker_9) [glocaltokens.client] Request response: {'Error': 'BadAuthentication')
(MainThread) [custom_components. google home]


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant