Xiaomi home integration to HA

Probably another stupid question, but been trying to add Xiaomi home to Home Assistant and whenever I try to log in keep getting same error “Could not log in to Xiaomi Home, check the credentials.” I reset my password just for this so it would be correct so it can’t be incorrect logins on my end I believe. Anyone know any way i could try fixing this problem or is there is any other way for adding xiaomi smart home wifi appliances to home assistant?

1 Like

Hello buddy,

This is a known issue since Xiaomi API seems to require a CAPTCHA for log in and changes need to be made in the integration Xiaomi integration in order to make it work again:

It looks like Xiaomi now requires a CAPTCHA, see here for potential fix (required code update): PiotrMachowski/Xiaomi-cloud-tokens-extractor#129

Many posts have been opened about this topic, I suggest you taking a look at them. There seem to be workarounds to make it work while the integration is broken:

Hope you get it working! :wink:

1 Like

When I tried to login without with manual option, it didn’t ask for the IP address, just the token. I put the token, say the login successfully, but after a few seconds give an error. I extracted the token with the method described. The HA and the Xiaomi gateway are in the same network.

this is official add on, so why there is no fix for that?

1 Like

I’m not sure why this hasn’t been updated. The fix is done, but someone still needs to integrate that code into the xiaomi_miio integration.

However, there doesn’t seem to be much activity in the integration repository lately: core/homeassistant/components/xiaomi_miio at dev · home-assistant/core · GitHub