Introduction to the Xiaomi Smart Home ecosystem
Xiaomiโs smart home ecosystem is one of the most affordable and functional on the market, but many users are facing a problem: how to make devices from different lines (Mi Home, Aqara, Yeelight) work together? The fact is that even within the Xiaomi brand there are different communication protocols (Zigbee, Wi-Fi, Bluetooth), and the Mi Home and Mi Home apps (China) have restrictions by region.
This article will help you understand how to combine all Xiaomi devices into one system โ whether itโs Yeelight light bulbs, Aqara sensors, Mi Robot robot vacuum cleaners or Mi Home Security cameras. We will look at official ways through Mi Home, alternative platforms like Home Assistant, and solutions for automation without programming.
1.Official method: Mi Home app
The easiest way to combine is to use the Mi Home app (or Xiaomi Home in newer versions), which supports most of the ecosystemโs devices, but there are some nuances:
- ๐น Regional restrictions: Devices purchased in China may not be added to the global version of the app (and vice versa).
- ๐น Communication protocols: Wi-Fi devices (such as Mi Smart Sockets) are added directly, and Zigbee devices (Aqara) require a hub (Mi/Aqara Gateway).
- ๐น Limited Automation: Only 5 Automation Rules are available in the free version.
To add the device to Mi Home:
- Open the application and go to Profile โ Settings โ Region.
- Choose China (China Mainland) if you have a Chinese device, or Russia/Global for global versions.
- Click Add Device (+) and follow the instructions.
โ ๏ธ If you are using the Mi Home Security Camera 360ยฐ It's Chinese firmware, you can't reconfigure it to a global server, and the only way out is through Home Assistant or selling it.
2.The problem of โChineseโ vs. โglobalโ devices
One of Xiaomi usersโ main headaches is the incompatibility of device versions.For example, the Aqara Motion Sensor from China will not work with the Mi Gateway 3 European hub, even if they both support Zigbee.
Hereโs how to determine the version of your device:
| Type of device | Chinese version | Global version |
|---|---|---|
| Hubs (Gateway) | Mi Gateway 3 (CN), Aqara Hub M2 (CN) | Mi Gateway 3 (EU/RU), Aqara Hub E1 |
| Sensors. | Aqara T1 (CN), Mi Door/Window Sensor 2 (CN) | Aqara FP1 (EU), Mi Door Sensor (Global) |
| Lamps | Yeelight LED Ceiling (CN) | Yeelight LED Ceiling (Global) |
Solutions for consolidation:
- ๐ Use two hubs: one for Chinese devices (connected to a Chinese Mi Home account), the second for global devices.
- ๐ Reflash Chinese devices to alternative firmware (e.g. Tasmota for Wi-Fi devices or Zigbee2MQTT for Zigbee).
- ๐ Connect Everything to Home Assistant โ This Platform Ignores Regional Limitations.
How to check the region of the device by serial number?
3.Integration through Home Assistant
Home Assistant is an open platform for smart homes that allows you to combine Xiaomi devices from different regions and protocols.
- ๐ Support for all versions of devices (Chinese and global).
- ๐ ๏ธ Flexible automation setup (without limiting 5 rules, like in Mi Home).
- ๐ Local management (no matter what the Xiaomi cloud is).
To connect Xiaomi devices to Home Assistant, you will need:
- Install Home Assistant on a Raspberry Pi, NAS, or virtual machine.
- Add Xiaomi Miio integration for Wi-Fi devices or Zigbee2MQTT for Zigbee.
- Enter the device token (it can be obtained through the Mi Home application or the miot-spec service).
Example configuration for Yeelight in configuration.yaml:
light:
- platform: yeelight
devices:
192.168.1.100:
name: "Living room"
transition: 1000โ ๏ธ Note: Some devices (e.g. Mi Robot Vacuum) require a Chinese Mi Account to receive a token.If you have a global version of a vacuum cleaner, use Xiaomi Miio integration with the server setting: "eu".
โ๏ธ Preparing for integration with Home Assistant
4.Combination through Mi Home Automations
If you don't want to use Home Assistant, you can set up automation right in Mi Home.
- Open the Automation tab in the lower menu.
- Click Add and select a trigger (e.g., "Motion Sensor Acted").
- Specify the action (for example, "Enable the Yeelight lamp").
- Keep the rule.
Limitations:
- โฑ๏ธ Maximum 5 Active Rules in the Free Version.
- ๐ No conditional logic support (e.g., if the temperature is > 25ยฐC And movement detected").
- ๐ The rules only work when accessing the Internet (cloud dependency).
Example of useful automation:
| Trigger. | Action. | Limitations |
|---|---|---|
| The door opening sensor (Aqara) | Enable the Mi Home Security 360ยฐ camera | It only works if the camera and sensor are in the same Mi Home region. |
| Level. COโ > 1000 ppm (Mi Air Quality Monitor) | Enable the Mi Air Purifier air purifier | Requires a premium subscription to work in the background |
๐ก
If you need more than 5 automation rules, create a second Mi Home account and divide the devices between them, such as lighting in one account, security in another.
5. Alternative platforms: Yandex Alice, Google Home, Apple HomeKit
If you use voice assistants, you can integrate Xiaomi devices into their ecosystems.
- ๐ฃ๏ธ Yandex Alice: Supports most Xiaomi devices through the Mi Home skill:
Google Home
Mi Home
Works with Google
Aqara
Apple HomeKit
Home Assistant
Problems of integration:
- ๐ Zigby devices (Aqara) are often not displayed on Google Home.
- ๐ฃ๏ธ Alice doesnโt support complex scenarios (e.g., if daylight and movement, turn on the lights at 50%").
- ๐ HomeKit requires manual configuration via Homebridge or HOOBS.