Could not login to Xiaomi Miio Cloud, check the credentials

After restart I lost connection to Xiaomi cloud, and since then I can’t login anymore, it’s the xiaomi miio integration, anybody experience similar problem?

I’m 100% sure the username/password/server is correct and I can login to xiaomi app and website

4 Likes

I’m having the same problem, maybe someone can help. After some digging I also noticed that there’s the same problem with the methods to get the API token.

1 Like

Mine still works, but didn’t do anything radical as restarting HA or reloading integrations.

However using the Token extraction tool, I do get an error, which hints to a multifactor authentication type of solution

Yes the same problem for me with token extract tools, maybe Xiaomi changed login API.

I have created an issue: Xiaomi Miio: Could not login to Xiaomi Miio Cloud, check the credentials · Issue #147122 · home-assistant/core · GitHub

I successfully retrieved the API token using the code changes presented in this issue:

Working correctly now.

Thanks for sharing!
Unfortunately my device requires cloud connection so just providing key doesn’t allow it to work.

Created a bug report in Github as it sounds like an issue affecting more users:

Same issue here, removed robot vacuum was not working now I can’t login again with my credentials

1 Like

same issue here.

There are some suggestions on how to workaround the issue for lan controlled devices, for details please go to the issue in Github I created.

same. can’t use HA or Home Bridge. Time to explore Xiaomi without account using HACS ?

Looks like the official integration is abandoned, it should perhaps be removed from HA releases. I will probably connect mine through HomeKit controller, but my gateway has 20+ sub-devices, it’s a major pain :disappointed_relieved:

1 Like

As I was just starting my setup, I abandoned anything cloud related and just use everything local.