argrento / huami-token

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

Login error #25

Closed jaum20 closed 3 years ago

jaum20 commented 3 years ago

Hi, I'm having this same problem, but the solution didn't worked for me. I downloaded Zepp app and could not login using mu xiaomi account credentials. So, I created a Zepp account using the same email and password but the problem persists

py huami_token.py --method xiaomi --email xxxxxx@gmail.com --password xxxxxxx--bt_keys
Getting access token with xiaomi login method...
Copy this URL to web-browser

https://account.xiaomi.com/oauth2/authorize?skip_confirm=false&client_id=xxxxxxxx

and login to your Mi account.

Paste URL after redirection here.
https://hm.xiaomi.com/watch.do?code=ALSG_CLOUDSRV_xxxxxxxxxx
Token: ['ALSG_CLOUDSRV_xxxxxxxxx']
Logging in...
Traceback (most recent call last):
  File "C:\Users\xxxxx\huami-token\huami_token.py", line 265, in <module>
    device.login()
  File "C:\Users\xxxxxx\huami-token\huami_token.py", line 116, in login
    raise ValueError(f"Login error. Error: {login_result['error_code']}")
ValueError: Login error. Error: 0117
argrento commented 3 years ago

Hi! To login with your Zepp credentials, you should use --method amazfit parameter.

jaum20 commented 3 years ago

Thank you and sorry for any inconvenience