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

6 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

1 Like

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.

Wish I could do the same but annoying to migrate all sub devices (I have 23 in total)

Ok I gave up and converted everything to HomeKit controller

How did you do that?

Did anyone get any luck? I tried to add a couple of Xiaomi Philips Downligths today (philips.light.downlight) took me some time to get the tokens, but I was unable to add to Xiaomi Home integration because it’s asking for mi account - can’t use manual configuration when adding devices with tokens.

My hub is HomeKit compatible so I connect to HA via HomeKit controller and all sub-devices are also kept so didn’t have to add them. There are certain features not supported via HomeKit controller though, for example wireless switches :frowning:

1 Like

After I got the IP and Token of the device that I need, i used back the Xiaomi Home app and select ‘Configure manually (not recommended)’ and click submit. No username and password is required. On the next screen, key in your device IP and Token and they will be re-authenticated. I believe this only works for devices that are run locally.

2 Likes