argrento / huami-token

Script to obtain watch or band bluetooth token from Huami servers
MIT License
412 stars 94 forks source link

Mi band 5, problem with retreiving account info #22

Closed PooyaJln closed 3 years ago

PooyaJln commented 3 years ago

Hi, I'm trying to get the the auth_key for Mi Band 5 but after pasting the url after the security warning I get a python error although it returns the Token

Token: ['ALSG_CLOUDSRV_693DA83C7C743F209EACB663********'] ( I removed part of the token for security reasons)
Logging in...
Traceback (most recent call last):
  File "huami_token.py", line 265, in <module>
    device.login()
  File "huami_token.py", line 116, in login
    raise ValueError(f"Login error. Error: {login_result['error_code']}")
ValueError: Login error. Error: 0117

I checked the code itself. I'm not sure but is it using the correct url?

argrento commented 3 years ago

Hello!

You need to download Zepp (former Amazfit) app first and login there with your Mi account. After this trick script will work fine.

argrento commented 3 years ago

Does the issue still persist?

PooyaJln commented 3 years ago

After using the zepp app, I still had the problem with the second method. I tried the first method (email and password) which worked perfectly.

argrento commented 3 years ago

Great!