"miiocli cloud" Login failed with verified correct password
Using 100% correct credentials (copied and pasted), I still get login failed when running miiocli cloud.
Version: 0.5.12 installed through pip on Ubuntu running on WSL.
AFAIK, I don't have 2FA enabled, and Ihave removed Google as a 'third part account' in the Xiaomi account.
The same is happening with "Mi home Kit" ( https://github.com/ApplY3D/mi-home-toolkit/issues/11 )
I'm having the same issue... Please help!
Same
Same
It seems like the second stage of the login is not working -
{'qs': '%3Fsid%3Dxiaomiio%26_json%3Dtrue', 'code': 87001, 'description': '验证码输入错误', 'securityStatus': 0, '_sign': '<sign_here>', 'sid': 'xiaomiio', 'result': 'error', 'captchaUrl': '/pass/getCode?icodeType=login&<stuff>', 'callback': 'https://sts.api.io.mi.com/sts', 'location': '', 'pwd': 0, 'child': 0, 'desc': '验证码输入错误'}
the description and field fields both translate to The verification code was entered incorrectly.
Same issue here ! Login suceeded 3 day ago. I try today and the same error message. Login on xiaomi.com : OK
I've validated this same behavior through 3 different HA integrations for Xiaomi devices, which use this library.
use Xiaomi-cloud-tokens-extractor to get the token, xiaomi added captcha not long ago, micloud doesn't support it.
This library does use the micloud library in the background for cloud communications. If someone knows another library that supports the modern login workflow, we could swap this project to use the new library. Alternatively, it would be great if micloud could be improved to fix the situation :-)
This repo works to grab tokens:
https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor
I was able to get it to work by integrating the QR code login, just having it open the link for me, saving the session to get all the goodies and then doing local control.
use Xiaomi-cloud-tokens-extractor to get the token, xiaomi added captcha not long ago, micloud doesn't support it.
Really helps.