argrento/huami-token

Login Error 0106 - Mi

severus-tux opened this issue · 5 comments

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

Hi!

Please take a look at issue #10.

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

Try this workaround:

  1. Download Zepp app (formerly Amazfit)
  2. Login there with our Mi cridentials.
  3. Pair and sync your band with Zepp app.
  4. Try to log in with this script.
  5. Error should gone now.

Try this workaround:

  1. Download Zepp app (formerly Amazfit)
  2. Login there with our Mi cridentials.
  3. Pair and sync your band with Zepp app.
  4. Try to log in with this script.
  5. 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.

Great!