Xiaomiβs smart home ecosystem is one of the most affordable and functional solutions on the market, but many users face problems with self-assembly, a major mistake: buying devices at random without considering compatibility and future scaling. In this article, we will analyze the step-by-step algorithm for creating a smart home based on Mi Home/Home Assistant, from choosing a hub to configuring complex automations, taking into account typical βpitfalls".
We analyzed data from 150+ users in Russian-speaking communities to identify the most common errors: 68% of problems arise from improper network topology, 22% from firmware conflicts, and 10% from ignoring regional settings, you will learn how to avoid these problems and build a system that will work steadily for years.
1.Central Hub Selection: Mi Home vs Aqara vs Home Assistant
The central controller (hub) is the brain of your smart home, and it determines 80% of the functionality of the system, and in the Xiaomi ecosystem there are three main options, and each is suitable for different tasks:
- πΉ Xiaomi Mi Home Gateway 3 - basic solution for beginners (supports up to 32 devices, works through the Mi Home cloudΒ².
- πΉ Aqara Hub M2 β advanced hub with Zigbee support 3.0, Local scenarios and integration with Apple HomeKit. 50-150 Β².
- πΉ Home Assistant + Zigbee Coordinator (e.g. Sonoff ZBDongle-E) β a solution for enthusiasts with full control over data and support for 1000+ It requires customization skills.
Critical: Xiaomi and Aqara hubs are not protocol compatible, and if you choose the Mi Home Gateway, you can't connect Aqara sensors to it without additional crutches like Home Assistant.
| Characteristics | Mi Home Gateway 3 | Aqara Hub M2 | Home Assistant + CC2652P |
|---|---|---|---|
| Max. Devices. | 32 | 128 | 1000+ |
| Local scenarios | β (cloud) | β | β |
| Support for HomeKit | β | β | β (plug-in) |
| Price (2026) | ~2 500 β½ | ~5 000 β½ | ~8 000 β½ (Raspberry Pi) |
β οΈ Note: Xiaomi hubs are tied to the region of purchase. If you buy the Mi Home Gateway in a Chinese store, it will not work correctly with Mi Home servers in Russia/Europe. Check the region in the device settings (About). β Region).
2. Network topology: how to avoid connection problems
Most complaints about Xiaomi smart home glitches are related to improper network organization. Zigbee devices (sensors, switches) require a stable mesh, and for this you need to follow three rules:
- The distance between the devices should not exceed 10-15 meters in line of sight, and walls of concrete reduce the range of action by 30-50%.
- The power supply of the hub must be stable. 5V/2A (don't plug in USB-television-port!).
- Zigbee channel should not overlap with Wi-Fi. In router settings (192.168.0.1), select channels 1, 6 or 11 for 2.4 GHz, and 15, 20 or 25 for Zigbee.
Practical advice: if you have a large apartment (100+ m2), use powered intermediate devices (such as Xiaomi Smart Plug or Aqara Wall Switch) as signal repeaters.
Install a hub in the center of the apartment | Check Wi-Fi and Zigbee | Connect the hub to the outlet (not USB) | Update the hub firmware to the latest version | Remove old "zombie" devices from the network-->
3. Step-by-step Hub setting and device connection
Consider setting up the Xiaomi Mi Home Gateway 3 (the logic is similar for other hubs, but menu items may differ).
- Download Mi Home (Android/iOS) and register. Choose Russia region (important for proper operation!).
- Hub connection: 1. Press the button on the hub for 5 seconds (orange LED lights up). 2. In Appendix: Add device β Gateway β Mi Home Gateway 3. 3. Connect the hub to 2.4 GHz Wi-Fi (5 GHz not supported!).
- Firmware Update: Go to Hub Settings β Update: Update version at the time 2026 year-end β 1.5.6_0046 or newer.
- Add Devices: Press + β Add the device and select a category (e.g. Temperature Sensor). The device should be in pairing mode (usually pressing the button for 3-5 seconds).
A typical mistake is to try to connect an Aqara device to a Xiaomi hub via the Mi Home. This is impossible β you need to use the Aqara Home app or Home Assistant.
What to do if the hub is not connected to Wi-Fi?
Creating Automations: From Simple to Complex Scenarios
Automation is the heart of a smart home. In Mi Home, you can create it in two ways:
- π Simple scenarios (via the app): for example, "If the motion sensor is triggered, turn on the lights." Limitation: maximum 2 conditions and 2 actions.
- π οΈ Advanced Automations (via Home Assistant or Aqara Automations): support for cycles, delays, scripts and other applications YAML.
Example of a complicated scenario for Home Assistant (only lights at night and no one is home):
alias: "Lighting by traffic (night mode)"
trigger:
- platform: state
entity_id: binary_sensor.motion_sensor_158d0001234567
to: "on"
condition:
- condition: sun
after: sunset
before: sunrise
- condition: state
entity_id: device_tracker.my_phone
state: "not_home"
action:
- service: light.turn_on
target:
entity_id: light.yeelight_ceiling_1234
data:
brightness: 50%Critical recommendation: test scenarios manually before activation. For example, a scenario like "open windows β turn off air conditioning" can work falsely if the window sensor is poorly calibrated. Use Logs in Home Assistant or Automation Logs in Mi Home to debug.
π‘
For Xiaomi motion sensors, reduce sensitivity to up to 50% in the device settings β this will reduce false positives from pets.
5. Integration with voice assistants (Alice, Google, Siri)
Voice control makes it easier to interact with a smart home, but its setup often raises questions. Consider integration with three popular assistants:
| Assistant | Required settings | Limitations |
|---|---|---|
| Alice (Yandex) | Link your Mi Home account in Aliceβs settings (Smart Home β Xiaomi) | Does not support local commands (all requests go through the cloud) |
| Google Assistant | Connect Mi Home via Google Home β Add service β Xiaomi | Only works with devices added to Mi Home (cannot see devices from Home Assistant) |
| Siri (HomeKit) | Aqara Hub M2 or Home Assistant with HomeKit Controller plugin | Not all Xiaomi devices are certified for HomeKit (need firmware from third-party developers) |
An important nuance: for local management (without the cloud) only Home Assistant + HomeKit is suitable. All other integrations depend on Xiaomi servers, which can lead to delays of up to 2-3 seconds.
β οΈ Note: When setting up Alice, do not use Cyrillic device names in Mi Home (such as "Living Chandelier (lusta_gostinaya), Otherwise, voice commands will not be recognized.
6 Common Mistakes and How to Avoid Them
Analysis of Xiaomi support shows that 90% of the problems are caused by five common mistakes:
- π Hub power imbalance: Using cheap power supplies leads to accidental reboots.Symptoms: devices periodically fall off, scenarios fail.
- πΆ Zigbee Network Overload: Connection 30+ The solution: divide the devices into several hubs or add intermediate nodes (for example, Xiaomi Smart Plug).
- π Firmware conflict: Devices with Chinese firmware (CN) Not compatible with European hubs (EU). Check the region in the device settings β Information.
- β±οΈ Cloud Command Delays: If Scenarios Work with a Delay 1-2 Solution: Go to Home Assistant for local management.
- π Account lock: Xiaomi may block an account for βsuspicious activityβ (such as frequent addition/deletion of devices.
A specific problem for Russia: some devices (e.g. Xiaomi Mi Air Conditioning Companion) require a Chinese Mi Home account to work properly, and the solution is to create an account with a Chinese phone number (use services like SMS-Activate).
π‘
If your smart home is unstable, 80 percent of the time the problem is network topology or hub power. Start your diagnosis by checking these two points.
7. Alternative firmware and custom solutions
For experienced users who lack the functionality of standard firmware, there are alternative solutions:
- π§ OpenMiHome: Xiaomi Hub Castom Firmware Adding Support MQTT And local scripts. Set up via Telnet.
- π Zigbee2MQTT: Software to manage Zigbee devices without Xiaomi cloud. Requires a Raspberry Pi or similar server.
- π οΈ ESPHome: Firmware for devices on ESP8266/ESP32 (For example, Xiaomi Temperature Sensor with flashing and flashing, it allows you to integrate devices into Home Assistant without the cloud.
Example of the command for the firmware Xiaomi Temperature Sensor via ESPHome:
esphome run sensor.yaml --upload-port /dev/ttyUSB0β οΈ Attention: Installing custom firmware voids the warranty and can cause permanent damage to the device.Before firmware, backup the original firmware through flash_dump.