python-miio icon indicating copy to clipboard operation
python-miio copied to clipboard

"miiocli cloud" Login failed with verified correct password

Open schweini opened this issue 4 months ago • 9 comments

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 )

schweini avatar Aug 11 '25 16:08 schweini

I'm having the same issue... Please help!

llewelynb avatar Aug 16 '25 18:08 llewelynb

Same

juancabe avatar Aug 19 '25 18:08 juancabe

Same

Shaw9 avatar Aug 23 '25 07:08 Shaw9

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.

d1b avatar Aug 25 '25 07:08 d1b

Same issue here ! Login suceeded 3 day ago. I try today and the same error message. Login on xiaomi.com : OK

killembien avatar Aug 25 '25 14:08 killembien

I've validated this same behavior through 3 different HA integrations for Xiaomi devices, which use this library.

rilence avatar Sep 07 '25 17:09 rilence

use Xiaomi-cloud-tokens-extractor to get the token, xiaomi added captcha not long ago, micloud doesn't support it.

LarrysGIT avatar Sep 17 '25 07:09 LarrysGIT

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 :-)

rytilahti avatar Sep 21 '25 20:09 rytilahti

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.

BlueRoar avatar Nov 25 '25 05:11 BlueRoar

use Xiaomi-cloud-tokens-extractor to get the token, xiaomi added captcha not long ago, micloud doesn't support it.

Really helps.

Tzxhy avatar Dec 11 '25 12:12 Tzxhy