XiaoMi/ha_xiaomi_home

Public

Xiaomi Home Integration for Home Assistant

  • Stars22.3k+47 tuần này
  • Forks1.2k
  • Watchers85
  • Issues128
  • Ngày tạo09/09/2024
  • Cập nhật gần nhất28/09/2026
  • Ngôn ngữPython
  • Giấy phép—
README.md35.6 KBRaw

Xiaomi Home Integration for Home Assistant

English | 简体中文

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.

Installation

Home Assistant version requirement:

  • Core $\geq$ 2024.4.4
  • Operating System $\geq$ 13.0

Method 1: Git clone from GitHub

cd config
git clone https://github.com/XiaoMi/ha_xiaomi_home.git
cd ha_xiaomi_home
./install.sh /config

We 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 /config

Method 2: HACS

One-click installation from HACS:

Open your Home Assistant instance and open the Xiaomi Home integration inside the Home Assistant Community Store.

Or, HACS > In the search box, type Xiaomi Home > Click Xiaomi Home, getting into the detail page > DOWNLOAD

Method 3: Manually installation via Samba / FTPS

Download and copy custom_components/xiaomi_home folder to config/custom_components folder in your Home Assistant.

Configuration

Login

Settings > Devices & services > ADD INTEGRATION > Search Xiaomi Home > NEXT > Click here to login > Sign in with Xiaomi account

Open your Home Assistant instance and start setting up a new Xiaomi Home integration instance.

Add MIoT Devices

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.

Multiple User Login

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

Open your Home Assistant instance and show Xiaomi Home integration.

Update Configurations

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

Debug Mode for Action

Nội dung README thuộc về XiaoMi và cộng đồng đóng góp, giấy phép Không có giấy phép. Nguồn: github.com/XiaoMi/ha_xiaomi_home