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

Cannot get master token #541

Open
Nessy1970 opened this issue Jul 20, 2024 · 1 comment
Open

Cannot get master token #541

Nessy1970 opened this issue Jul 20, 2024 · 1 comment

Comments

@Nessy1970
Copy link

Describe the bug
Hello following a new installation of home assistant on an RPI4, impossible to obtain the master token by following the procedure.

To Reproduce
Steps to reproduce the behavior:

  1. After launching the order
    pip install glocaltokens
    I have this as a result
    Installing collected packages: ifaddr, zeroconf, urllib3, simplejson, pycryptodomex, protobuf, idna, grpcio, charset-normalizer, certifi, requests, ghome-foyer-api, gpsoauth, glocaltokens
    Successfully installed certifi-2024.7.4 charset-normalizer-3.3.2 ghome-foyer-api-1.0.0 glocaltokens-0.7.1 gpsoauth-1.1.1 grpcio-1.59.0 idna-3.7 ifaddr-0.2.0 protobuf-4.25.3 pycryptodomex-3.20.0 requests-2.32.3 simplejson-3.19.2 urllib3-1.26.19 zeroconf-0.132.2
    WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

2.After filling in the username fields with my gmail address and password with an application password
I launched the command python3 get_tokens.py

  1. I have this as a result
    ➜ python3 get_tokens.py
    ERROR:glocaltokens.client:[!] Could not get master token.
    [*] Master token None
    ERROR:glocaltokens.client:[!] Could not get master token.

[*] Access token (lives 1 hour) None

[*] Google devices local authentication tokens
ERROR:glocaltokens.client:[!] Could not get master token.
ERROR:glocaltokens.client:[!] Could not get master token.
ERROR:glocaltokens.client:[!] Could not get master token.

I have 2 other instances of home assistant in 2 different houses of my family and the google_home application has worked perfectly for years.

And it is possible that a new installation of HA does not contain all the necessary components to find the master token. And the file "get_tokens.py" doesn't import the missing one?

@vaibhav423
Copy link

did u get it?

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

2 participants