Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Xiaomi login fails #3

Closed
W-Floyd opened this issue Jul 2, 2020 · 3 comments
Closed

Xiaomi login fails #3

W-Floyd opened this issue Jul 2, 2020 · 3 comments

Comments

@W-Floyd
Copy link

W-Floyd commented Jul 2, 2020

Has the procedure changed at all?

Getting access token with xiaomi login method...
Copy this URL to web-browser 

https://account.xiaomi.com/oauth2/authorize?skip_confirm=false&client_id=XXXXXXXXX&pt=0&scope=1+6000+16001+20000&redirect_uri=https%3A%2F%2Fhm.xiaomi.com%2Fwatch.do&_locale=en_US&response_type=code

and login to your Mi account.

Paste URL after redirection here.
https://hm.xiaomi.com/watch.do?code=ALSG_CLOUDSRV_XXXXXXXXXXXXXXXXXXXXXXXXX
Token: ['ALSG_CLOUDSRV_XXXXXXXXXXXXXXXXXXXXXXXXXXXX]
Logging in...
Traceback (most recent call last):
  File "huami_token.py", line 222, in <module>
    device.login()
  File "huami_token.py", line 106, in login
    raise ValueError(f"Login error. Error: {login_result['error_code']}")
ValueError: Login error. Error: 0117
@argrento
Copy link
Owner

argrento commented Jul 2, 2020

Just tested with my login cridentials, all was fine. Error 0117 means ACCOUNT_NOT_REGISTER.

@W-Floyd
Copy link
Author

W-Floyd commented Jul 2, 2020

Perhaps it's an issue with my band being linked to my Google login, though I ran the tool with me actual Xiaomi account. I'll reopen if that isn't the case.

@W-Floyd W-Floyd closed this as completed Jul 2, 2020
@W-Floyd
Copy link
Author

W-Floyd commented Jul 2, 2020

This was indeed the case. Sorry for the confusion.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants