Open SpinahVieh opened 3 years ago
Okay so after hours of research, it turns out that they changed the authentification method. While I don't have a solution for this, I was at least able to extract the token to get gadget bridge to work by doing the following:
I'm only typing this up in case it helps anyone else with the same issue.
Hello! Can't confirm that. Authentication from the Gadgetbridge issue 2360 is a authentication between Mi Band and app, not between app and a server. I just checked: for my Xiaomi account, script returns all auth keys for all devices.
If you use xiaomi
login method, you do not need to specify e-mail and password (with keys -e
and -p
), because e-mail and pass will be prompted at the login page in your browser. Probably you have multiple accounts. Ensure that the user id in the Mi Fit app is equal to the user id printed by the script (Logged in! User id: ...
).
Thanks for taking your time to look into this - especially since it's my incompetence to use it made you take the time. I'll close the issue then if the script still works as intended. I'm sure I used the same account tho. It's "solved" for me now through this alternative process.
I'd like to clarify,
IMHO you can close this issue since it's apparently my fault for having two accounts. Sorry for taking your time like this.
Thanks for your answers!
I'm having the same issue. The script shows a different user id even though I'm using the same account.
Also, I can't see any devices in the 'Manage Devices' section on the Mi Account website, even though it's paired in the app.
I too see no linked devices. Repro steps:
I was using the MiFitness App. Switching to the MiFit App seemed to register the device properly (although I think the app was renamed).
When using the script to get the token with
$ python huami_token.py -m xiaomi -e mail@gmail.com -p password123 --bt_keys
, I receive an empty list of linked wearables.Obviously I have linked the Mi Band 6 to the Mi Fit app and followed the steps in #32 to get it to work in the first place.