Xiaomi cloud authentication problem

Up to now, the best way to resolve the issue is to use the workaround posted in the issue thread of Xiaomi-cloud-tokens-extractor LINK. The Xiaomi Cloud authentication has been enhanced with 2FA i.e. Two-factor Authentication (双因素身份验证) and captcha requirements.

I am not familar with Home Assistant Xiaomi Cloud interface mechanism but would like to provide some information which might be helpful.

I tried using the tokens extractor got my token and managed to resolve it on HA but only for a few seconds and the reintegration message appears again. The token method dont work anymore.

1 Like

Guys token_extractor.py just got a new release! Release Improved 2FA handling · PiotrMachowski/Xiaomi-cloud-tokens-extractor · GitHub download it from here and use it! It works for me!

1 Like