Login Error 0106 - Mi
severus-tux opened this issue · 5 comments
severus-tux commented
Hi, I am getting the following error after pasting the url
Logging in...
Traceback (most recent call last):
File "huami_token.py", line 252, in <module>
device.login()
File "huami_token.py", line 108, in login
raise ValueError(f"Login error. Error: {login_result['error_code']}")
ValueError: Login error. Error: 0106
severus-tux commented
Hi!
Please take a look at issue #10.
Sorry, I couldn't find that closed issue earlier. I checked it now. It didn't help. My Mi band 4 is paired with the MiFit app. It is working fine (showing heart rate etc.. on my phone). With the same account, when I try to run the script (on linux), it gives this error
argrento commented
Try this workaround:
- Download Zepp app (formerly Amazfit)
- Login there with our Mi cridentials.
- Pair and sync your band with Zepp app.
- Try to log in with this script.
- Error should gone now.
severus-tux commented
Try this workaround:
- Download Zepp app (formerly Amazfit)
- Login there with our Mi cridentials.
- Pair and sync your band with Zepp app.
- Try to log in with this script.
- Error should gone now.
Thanks!. This workaround solves the issue. Pairing with Zepp and running
python huami_token.py --method amazfit --email youemail@example.com --password your_password --bt_keys
Gives the Auth Key.
argrento commented
Great!