Combining Xiaomi Smart Home: A Complete Guide to Device Integration

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:

  1. Open the application and go to Profile โ†’ Settings โ†’ Region.
  2. Choose China (China Mainland) if you have a Chinese device, or Russia/Global for global versions.
  3. 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.

๐Ÿ“Š What version of Mi Home are you using?
Global (Russia/Europe)
Chinese (China Mainland)
Both in turn.
Other Platforms (Home Assistant, etc.)

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 deviceChinese versionGlobal 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)
LampsYeelight 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?
First-time 3 Serial number symbol (on a box or sticker) indicates a region: - CN โ€” China; - EU/RU โ€” Europe/Russia; - US โ€” For example, a serial. CNX12345678 means Chinese.

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:

  1. Install Home Assistant on a Raspberry Pi, NAS, or virtual machine.
  2. Add Xiaomi Miio integration for Wi-Fi devices or Zigbee2MQTT for Zigbee.
  3. 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

Done: 0 / 5

4.Combination through Mi Home Automations

If you don't want to use Home Assistant, you can set up automation right in Mi Home.

  1. Open the Automation tab in the lower menu.
  2. Click Add and select a trigger (e.g., "Motion Sensor Acted").
  3. Specify the action (for example, "Enable the Yeelight lamp").
  4. 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ยฐ cameraIt 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 purifierRequires 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.