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

Could not get access token, Google Workspace Account #864

Open
janewayuk opened this issue May 6, 2024 · 2 comments
Open

Could not get access token, Google Workspace Account #864

janewayuk opened this issue May 6, 2024 · 2 comments

Comments

@janewayuk
Copy link

janewayuk commented May 6, 2024

Describe the bug

I have managed to generate a Master Token using the docker container, But the script also returned "could not get access token"

As a access token wasn't mentioned on the setup readme I copied the master token into the integration setup and it seemed to save. But no devices/entities showed up :(

I'm using a Google Workspace account

Any help would be amazing!

Version of the integration

If you are unsure about the version check the github release here.

v1.11.0

Logs

2024-05-06 14:13:45.915 ERROR (SyncWorker_1) [glocaltokens.client] [!] Could not get access token.
This error originated from a custom integration.

Logger: glocaltokens.client
Source: custom_components/google_home/api.py:99
integration: Google Home (documentation, issues)
First occurred: 14:03:28 (2 occurrences)
Last logged: 14:03:37

[!] Could not get access token.
@KapJI
Copy link
Collaborator

KapJI commented May 6, 2024

Google Workplace account probably have different authentication process. Can you register normal Google account and invite it to your Google Home? Then you should be able to login with it.

@Mikeiddc
Copy link

Mikeiddc commented Feb 4, 2025

So yea, this works. For anyone stupid as me, trying to get this to work for a year, every other month, this is how it works:

You download docker desktop for windows
Restart, this and that, default setup (for me it didnt start the engine after restart, had to restart again)
after you start docker desktop, you open the terminal (bottom right corner). (I had to enable the terminal first, easy button click in the upcoming window)
Copy paste docker run -it --name ha-google-get-token breph/ha-google-home_get-token /bin/bash and hit enter and let it do its thing (download and stuff)
type python3 get_tokens.py
Enter your google mail with @gmail.com
create a App Password (my default password did not work) at https://myaccount.google.com/apppasswords. Name does not matter
Copy the password to an editor, remove the spaces, copy it into the docker command line where it asks for the password
Copy the generated master token in an editor again, remove the "new line" so the token is in one line.
Now you have a working master token. Use it in the google home config together with your username (again with @gmail.com... why they call it username in the first place?)

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

3 participants