huami-token icon indicating copy to clipboard operation
huami-token copied to clipboard

Login step for Xiaomi method failing

Open johnnymck opened this issue 4 years ago • 3 comments

When running python huami_token.py --method xiaomi --bt_keys and following the instructions in README.md, after the copying and pasting the redirect URL into the terminal, I get the following error:

Traceback (most recent call last):
  File "huami_token.py", line 352, in <module>
    device.login()
  File "huami_token.py", line 141, in login
    raise ValueError(f"Login error. Error: {login_result['error_code']}")
ValueError: Login error. Error: 0117```

If this is an error on my end, I'll be glad to best figure out how to solve this :)

johnnymck avatar Apr 06 '21 15:04 johnnymck

This error stands for AUTH_SERVER_ERROR_ACCOUNT_NOT_REGISTER. Try this: https://github.com/argrento/huami-token/issues/22#issuecomment-733890511

argrento avatar Apr 06 '21 15:04 argrento

I'll give this a go, thanks :)

johnnymck avatar Apr 06 '21 15:04 johnnymck

Tried linking with Zepp, then trying the amazfit login. Worked a treat, TYSM. Might want to add a note to this effect on the readme?

Cheers and all the best.

johnnymck avatar Apr 06 '21 15:04 johnnymck