Xiaomi Home Integration is an integrated component of Home Assistant supported by Xiaomi official. It allows you to use Xiaomi IoT smart devices in Home Assistant.
Home Assistant version requirement:
- Core $\geq$ 2024.4.4
- Operating System $\geq$ 13.0
cd config
git clone https://github.com/XiaoMi/ha_xiaomi_home.git
cd ha_xiaomi_home
./install.sh /configWe recommend this installation method, for it is convenient to switch to a tag when updating xiaomi_home to a certain version.
For example, update to version v1.0.0
cd config/ha_xiaomi_home
git fetch
git checkout v1.0.0
./install.sh /configMethod 2: HACS
One-click installation from HACS:
Or, HACS > In the search box, type Xiaomi Home > Click Xiaomi Home, getting into the detail page > DOWNLOAD
Download and copy custom_components/xiaomi_home folder to config/custom_components folder in your Home Assistant.
Settings > Devices & services > ADD INTEGRATION > Search Xiaomi Home > NEXT > Click here to login > Sign in with Xiaomi account
After logging in successfully, a dialog box named "Select Home and Devices" pops up. You can select the home containing the device that you want to import in Home Assistant.
After a Xiaomi account login and its user configuration are completed, you can continue to add other Xiaomi accounts in the configured Xiaomi Home Integration page.
Method: Settings > Devices & services > Configured > Xiaomi Home > ADD HUB > NEXT > Click here to login > Sign in with Xiaomi account
You can change the configurations in the "Configuration Options" dialog box, in which you can update your user nickname and the list of the devices importing from Xiaomi Home APP, etc.
Method: Settings > Devices & services > Configured > Xiaomi Home > CONFIGURE > Select the option to update