Login problem with Xiaomi devices

I have a problem with Xiaomi Home as follows:

  • I cannot login out of HA. I try to use the Xiaomi Home integration (and not Roborock or something, as I know it doesn’t work). I enter name, password and chose a region (de). I click on “OK” and it says the credentials are wrong.
  • I can however log into Xiaomi with precisely this credentials!
  • I also remember that it used to work in HA, but then it suddenly stopped.
  • I have only very little Xiaomi devices, only a vacuum robot and an air purifier.
  • How comes the App says, credentials were wrong? I can login to Xiaomi and I’m using a password manager. So the password must be correct! I’m meanwhile 100% sure it is correct!
  • What goes wrong here? Anyone any ideas how to proceed?

BR

Don

1 Like

I recall something like this for a different product, in another integration, where Cloudflare mapped the user to the American AWS cloud, and the integration, written by an European, mapped it directly to Europe. Just to complicate things, a user in Singapore was connected back to the Chinese servers. Took a lot of code checking, pings and traces before the penny dropped.
Try another region and see what happens. Change your password and see what happens.

I believe the integration is currently broken since Xiaomi implemented 2FA requirement for login.

Have a search through these forums - I’m pretty sure I saw other threads about it in the past week.

It’s not broken. I have it and it is working fine on 2025.11.3

Same problem here. I’ve changed the password but it doesn’t work. I guess we have to wait for a fix.
I’m surprised that this seems to interest such a small number of people.

Yep my Xioami integration for my Xioami Milo Robovac used to work perfectly in homeassistant and thus via HomeKit - but over the last few weeks its stopped. Even tying to connect via the IP and API Key fails now too.

same problem here. The last time it worked was a few days ago, then suddenly it stopped. I can log in to both the Roborock and Xaiomi apps, but then when I try to do it in Home Assistant, it says invalid credentials when I use the Xaiomi app and it says that an exception occurred when I enter the 2FA code in the Roborock integration. How are more people not complaining about this?

Mine stopped working at december 2025 as well, cloud or local configuration not work anymore.
You still have the problem or maybe can be something related only to me?

Same problem here. Anyone found the solution?

Hola!

I face the same issue. My 2 Xiaomi devices that are already integrated with HA are working flawless (2 air purifiers). I now wanted to add a new device (an air humidifier) and the integration refuses to login.

Would be happy about and advice to get that working.

Thanks in advance!
Toby

Hi, same situation here i just bought a rice cooker and trying to add Xiaomi Home integration i got error with my credentials, despite i could login on Xiami page.

Also to add something, i did try to get the token of my device from other third party websites that get your xiaomi home credentials the get it and i was facing same problem i suppose Xiaomi changed something

I am facing the exact same situation…
Seems I have waited to long for integrating my two devices into my HA :smiley:

same issue here … any update or solution ?

Same here, been having this issue for several months now. Devices stopped working and cannot log in

im new to home assistant. looks like im in the UK so pick DE…username? my email? and i didnt have a password set as i signed in with google - so i just made 1 in the phone app.

This one isn’t working for a long time :pensive: because a different why of signing in.

1 Like

Same issue - not possible to login to Xiaomi Home via Home Assistant integration.
Also, it is no longer possible to obtain a token.
This integration is NOT working and should be removed from Home Assistant. Currently it is wasting everybody’s time and giving false hopes / promises of making Xiaomi products work with HA. I purchased the Xiaomi Tower Fan 2 with the expectation that I would be able to control it via HA because of the available integration. Big mistake.

I was able to successfully login by installing the integration via HACS
It seems that the github latest version is ahead of the built-in version :slight_smile: