-
Notifications
You must be signed in to change notification settings - Fork 75
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 master / access token [!] #890
Comments
I have this problem, too, and when running through the troubleshooting steps I was playing with that get_tokens.py script from the other person and in the def _get_android_id() I found what might be the problem. That function checks if the lowest bit of the high byte is set or not, and if set it throws and error and cannot continue. Change the first line of that function to
And you can see if that might be happening to you, too. Does glocaltokens make a similar check for a set bit in the pseudo-MAC obtained? |
|
Removed the check for that bit, still couldn't get the master token. |
there were numerous |
@leikoilja That's how I was trying to get the master token. I tried all those ways. |
I'm getting the If I set the debug flag to
I'm attempting to run this on a Raspberry Pi 4. It is CLI only, so no browser to try. The My Google account has 2FA, but I created an app password and am attempting to use that with this script. |
@mrussak, you dont need RPi to run docker image for getting master token. run it on your regular machine, get the master token (it's not changing unless you change your acc password). and then use the master token when setting up ha-google-home integration in HA |
Thank you @leikoilja, I tried it on my Mac locally with the docker image and that worked. I mistakenly assumed the master token was somehow tied to my MAC address since the python code pulled that info, but I guess it's not. Appreciate the quick reply! |
I have similar issue and I am not able to get it working. I get the floowing error with the docker:
Tried also with manual install with the same result. |
I get that same error with the container method.
|
Hello ! I use another solution than HA (Jeedom) but which uses same API to get master and access tokens to track the alarms and timers of my google homes. I have reported an issue on the glocaltokens repo I was wondering if it could come from incompatibility of versions of python modules... |
have the same issue |
Good to hear that I'm not the only one... I was feeling lonely ! in the doc it is said: But it definitely doesn't work when only email and app password is set... If it is still working for someone, please tell us how... It's maybe due to recent google home api... |
@TonioBDS , I then restarted the whole system I have HA running on in Proxmox, and then it took the master token on the first try. This integration has been running fine since then. I would suggest trying to restart whatever you have HA running on, and not just restarting HA from inside the HA menus, and see if that helps. |
Thanks a lot for your feedback @afs5327, I run HA OS on a VM in my synology NAS.
But I have question about that: I understood that the master token was changing periodically. Or, did you find a way to automatize the master token regeneration? |
No problem, @TonioBDS, let me know if that sorts it out for you! Make sure the MT you get is exactly 233 characters. |
Hello, For info, a full reboot did not work. However, for info my master token from |
I had to put masterpwd on 1 single line. |
So I had a catastrophic crash which meant I had to rebuild my Debian server that boots from a ZFS pool that runs Docker on which I had Home Assistant. On a whim I decided to delete the old app password, something I had done 7 times previously trying to get this integration to work. Yes, I add numbers to the names of the app passwords when I re-make them to keep track of things like that. And this time using the docker image method I was able to get a master token. Don't ask me why, I'd done all these steps multiple times before, deleting and creating a new app password each time and all that. Maybe I sacrificed enough chickens while rebuilding the server. |
thanks for reporting back, @CoryAlbrecht. and happy to hear it went smoother for you this time around |
I have managed to get the master password using this solution as well. Unraid Terminal:
|
Describe the bug
If i fill in my account details and press on "send" then i get the error:
"Username/Password is incorrect. If your Google Account has 2FA enabled, generate an app password (https://myaccount.google.com/apppasswords). If authentication still fails, please refer to https://github.com/leikoilja/ha-google-home#troubleshooting"
I tried logging in with both my application password an my real password. They both didn't work. I have 2fa enabled but when I used my real credentials, it took way longer for the error to show up (THE FIRST TIME!).
Version of the integration
If you are unsure about the version check the github release here.
Logs
I have tried it via a docker container on a Ubuntu VM but it still fails!
The text was updated successfully, but these errors were encountered: