What is Xiaomi Smart Home and Why You Need It
Xiaomiβs smart home ecosystem is a set of devices that automate everyday processes, from lighting control to security control. Unlike competitors like Appleβs HomeKit or Google Home, Xiaomiβs solutions stand out for their affordable price and wide range of sensors. But how do these devices interact? And why do some users have trouble setting up?
The main principle of the system is centralized management through the Mi Home app (or Aqara Home for Aqara devices). All sensors and actuators (lamps, sockets, cameras) connect to the hub, a central module that processes commands and synchronizes data with the cloud. Without the hub, most Xiaomi devices will not be able to work in automatic scenarios, even if they support Wi-Fi.
It's important to understand that Xiaomi's smart home is not just a collection of gadgets, but an ecosystem with closed protocols and compatibility restrictions. MiJia sensors, for example, are not always friends with Aqara hubs, and some devices require a mandatory connection to a Chinese server to work properly.
System architecture: how devices communicate
Xiaomiβs smart home is based on three key components:
- π‘ Hub (gateway) - a central device that connects sensors and actuators. Popular models: Xiaomi Mi Smart Home Gateway 3, Aqara Hub M2.
- π Zigbee devices β motion sensors, door openings, temperature, etc. Operate at 2.4 GHz and connect only to the hub.
- π Xiaomi cloud, which is a server that sends commands from your phone and synchronizes scripts. Without the Internet, some of the functions will not be available.
The main communication protocol is Zigbee 3.0 (for sensors) and Wi-Fi (for lamps, sockets, cameras). Zigbee is more energy efficient and stable than Wi-Fi, but has a limit on the number of connected devices: one Gateway 3 hub supports up to 128 devices, but in practice, if you exceed 50-60 devices, lags begin.
Fun fact: Xiaomi uses a proprietary protocol over Zigbee, so other brandsβ sensors (like Philips Hue) wonβt work with Xiaomiβs hub without additional crutches like Home Assistant, which are both plus (stability) and minus (limited compatibility).
Hubs Comparison: Xiaomi vs Aqara
Xiaomiβs hubs and its sub-brand Aqara are similar in appearance, but have critical differences.
| Parameter | Xiaomi Mi Smart Home Gateway 3 | Aqara Hub M2 |
|---|---|---|
| Support for Zigbee | Yes (up to 128 devices) | Yes (up to 128 devices, but more stable) |
| Built-in speaker | No. | Yes (85dB siren) |
| Support for Matter | No. | Partially (through updates) |
| Working without the Internet | Limited (basic scenarios only) | Yes (full local automation) |
| Price (2026) | ~2 500 β½ | ~4 000 β½ |
If you want maximum autonomy, go with the Aqara Hub M2, which supports local scenarios without the cloud, for example, when the motion sensor is triggered, the lamp will light up even if the Internet is off, while Gateway 3 will just freeze.
But Aqara has a drawback: some Xiaomi devices (such as Mi Temperature & Humidity Sensor 2) may not display properly in the Aqara Home app.
π‘
If you plan to use more than 30 devices, buy two hubs and spread them around different rooms, which will reduce the latency of the Zigbee network.
Step-by-step setting up Xiaomi smart home
In order for the system to work, you need:
- Install a hub and connect it to the network via Mi Home or Aqara Home.
- Add devices to the app (via scanning) QR-code-in).
- Set up automation (scenarios) in the Automation β Create section.
Letβs look at the Xiaomi Mi Smart Home Gateway 3.
- Connect the hub to the outlet and wait for the blue flashing of the indicator.
- In the Mi Home app, click + β Add the device β Gateway.
- Choose China mainland (important! some devices won't be added when choosing Russia).
- Scan it. QR-hub-code.
- Connect the hub to Wi-Fi (2.4GHz only!).
Selected the "China mainland" region in Mi Home|
Connected the hub to the outlet next to the router |
Shut down the VPN on your phone |
Make sure the router supports 2.4 GHz|-->
Once you add a hub, you can connect sensors, for example, for the Mi Door/Window Sensor:
- Remove the protective film from the sensor battery.
- In the application, click + β Add the device β Opening Sensor.
- Hold the phone to the sensor and wait for the beep.
What to do if the device is not added?
Automation Scenarios: Examples and Limitations
The main advantage of a smart home is automatic scripting.
- π‘ Lighting: Turn on the Yeelight lamp when the motion sensor is triggered.
- πͺ Security: Send a notification to your phone if the door opening sensor is triggered in your absence.
- π‘οΈ Climate: Turn on the heater if the temperature has dropped below 20Β°C.
But there are nuances:
β οΈ Note: Mi Home scripts only work if the phone and hub are connected to the Internet. Local automation requires Aqara Hub or third-party software like Home Assistant.
Example of setting the scenario "Light on while moving":
- Open Mi Home β Automation β Create β If
- Select the Motion Sensor β Motion detected.
- Click Add Action β Smart Lamp β Enable.
- Save the script.
Xiaomi's limitations:
- β±οΈ No way to set a light-off delay (e.g., βturn off 5 minutes after movementΒ»).
- π No cycles or conditional operators (such as if the temperature is >25Β°C And humidity. <40%Β»).
- π΅ Some devices (such as Mi Robot Vacuum) do not support automation via Mi Home.
π‘
For complex scenarios (with delays, conditions, cycles) use Home Assistant or Node-RED. Mi Home is only suitable for basic automation.
Problems and solutions: why Xiaomi smart home is glitzy
Frequent complaints from users:
- Devices are disconnected from the hub β usually due to interference at 2.4 GHz. Solution: transfer the router to channel 1, 6 or 11 manually.
- Delays in operation β if there are more than 40 devices on the network, split them into two hubs.
- Notifications are not working β check if Android has blocked background activity of the Mi Home app.
Another common problem is that devices don't update, such as the Mi Temperature Sensor, which can hang on the firmware for years in 2018, because Xiaomi often suspends support for older devices.
- π Check the updates in Mi Home β Device profile β Three points. β Firmware update.
- π Change the region in Mi Home to China mainland β sometimes updates appear only there.
- π οΈ Use alternative firmware (for example, Xiaomi Gateway has custom firmware with Matter support).
β οΈ Note: If you use Xiaomi Home Assistant (not to be confused with Home Assistant), then after changing the region to Mi Home, all devices will have to be added again!
Mi Home: Home Assistant and other systems
The Mi Home app is convenient for beginners, but power users often migrate to Home Assistant, an open platform for smart homes.
- π§ Full control of devices (including on-premises scenarios without the cloud).
- π Integration with other brands (Philips Hue, Sonoff, Shelly).
- π Advanced analytics (temperature charts, logs of operation).
How to connect Xiaomi to Home Assistant:
- Install Home Assistant on a Raspberry Pi or other server.
- Add Xiaomi Miio integration through Settings β Devices and Services β Add integration.
- Enter the device token (it can be obtained through the Mi Home Token Extractor app).
Cons of Home Assistant:
- π» Technical skills required to set up.
- π You need to constantly maintain the system in an up-to-date state (updates, backups).
Other alternatives:
- π Apple HomeKit β if you have an iPhone, but compatibility with Xiaomi is limited (needs a hub Aqara Hub) M2 home-kit).
- π€ Google Home β only supports individual Xiaomi devices (e.g. Yeelight lamps).