Building a smart home based on the Xiaomi ecosystem is not only a trend, but also a real opportunity to automate routine tasks, save on utility bills and improve home security. But beginners are often frightened by the abundance of devices, communication protocols and settings. Where to get a central hub? Which sensors to choose first? How not to get confused with the protocols of Zigbee, Wi-Fi and Bluetooth Mesh? This article will help avoid typical errors and build a system that will work steadily, rather than turn into a set of βsmart but useless gadgetsβ.
We will discuss three key principles of a successful start: the minimum necessary set of devices for automating basic scenarios (light, security, climate), the correct network topology (so that sensors do not get lost), and integration with voice assistants. We will pay special attention to current models of 2023-2026 β from the budget Mi Home Security Gateway 2 to the flagship Aqara Hub M3 β as well as compatibility with Russian realities (for example, work without a VPN).
1.Central Hub Choice: The Heart of a Smart Home
Without a central hub, most Xiaomi devices will not be able to communicate with each other. The hub performs three critical functions: integrates sensors into a single network, processes automation scenarios, and communicates with the Mi Home cloud. Four main options are relevant for 2026:
- πΉ Mi Home Security Gateway 2 - Budget version (β2 500 β½) Suitable for apartments up to 50 m2, but has a limit on the number of connected devices (up to 30).
- πΉ Aqara Hub M2 β hub-on-the-spot (β4 000 β½) It supports Zigbee 3.0, Wi-Fi and Ethernet, works with Aqara and Xiaomi devices, has backup power.
- πΉ Redmi Smart Home Gateway β A simplified version (β1 800 β½) without siren but with Matter support (important for integration with Google Home and Apple HomeKit).
- πΉ Aqara Hub M3 β flagman 2026 (β6 500 β½) Thread, Zigbee 3.0 and Matter β Optimal for large homes (up to 100 devices) and complex scenarios.
β οΈ Note: Xiaomi and Aqara hubs are not protocol-compatible.If you choose Aqara Hub M2, Xiaomi sensors (e.g. Mi) Door/Window Sensor 2) You wonβt be able to connect directly to it, youβll need a workaround through Mi Home Automation or third-party services like Home Assistant.
| hub | Protocols | Max. Devices. | Features | Price (2026) |
|---|---|---|---|---|
| Mi Home Security Gateway 2 | Zigbee 3.0, Wi-Fi | 30 | Built-in siren, laptop repeater | β2 500 β½ |
| Aqara Hub M2 | Zigbee 3.0, Ethernet | 128 | Backup power, support for Aqara and Xiaomi (partially) | β4 000 β½ |
| Redmi Smart Home Gateway | Zigbee 3.0, Matter | 50 | Budget compatible with Google Home | β1 800 β½ |
Minimum set of start devices
Many people mistakenly think that a smart home requires dozens of sensors, but in fact, four basic devices are enough to cover 80 percent of everyday scenarios.
- A door/window sensor (e.g. Mi Door/Window Sensor 2 or Aqara Door and Window Sensor P2) is needed for safety and lighting automation.
- Motion Sensor (Mi Motion Sensor 2 or Aqara Motion Sensor P1), which controls the light in the hallway, bathroom or hallway.
- Smart socket (Mi Smart Plug or Aqara Smart Plug) allows you to remotely turn on / off household appliances (for example, a heater or a kettle).
- A smart lamp (Yeelight LED Bulb or Mi LED Smart Bulb) is the basis for lighting scenarios.
Select a hub (see section 1)|Buy 2 opener sensors (for front door and balcony)|Add 1 motion sensor (for corridor)|Buy 1 smart outlet (for heater or lamp)|Install 1-2 smart lamps (in frequently used rooms)
-->
β οΈ Warning: If you live in a private home or apartment with thick walls, check the coverage area of Zigbee before buying. Xiaomi sensors operate at 2.4 Hz and can "lose" at a distance of more than 10 meters from the hub. The solution is to use Zigbee repeaters (e.g. Mi Smart Wall Switch or Aqara Range Extender).
π‘
Before buying sensors, check their compatibility with the selected hub on the Mi Home website (section "Compatible devices"). FP2) require a firmware hub not lower than the version 1.4.7_003.
3. Communication protocols: Zigbee vs Wi-Fi vs Bluetooth
One of the key issues in building a smart home is choosing a communication protocol, which is how you run your business, how fast you respond, how compatible your devices are, and how you can do it, and you can look at the pros and cons of each one.
- π‘ Zigbee is the main protocol for Xiaomi and Aqara devices. Pros: low power consumption (sensors work up to 2 years on the battery), reliable network (thanks to mesh-topology), no dependence on Wi-Fi. Cons: requires a hub, a limited number of devices per hub (up to 128).
- πΆ Wi-Fi is used in smart sockets, lamps and cameras. Pros: high data transfer speed, no need for a hub. Cons: high load on the router, devices can "hang" when you have problems with the Internet.
- π΅ Bluetooth Mesh β used in some Xiaomi sensors (for example, Mi Bluetooth Temperature and Humidity Sensor). Pros: low power consumption, no dependence on Wi-Fi. Cons: short range (up to 10 m), limited functionality.
What is mesh topology in Zigbee?
For most users, the optimal scheme is Zigbee for sensors and switches (they are energy efficient and reliable) + Wi-Fi for cameras and multimedia (where you need high data speeds). Avoid Bluetooth Mesh devices unless you plan to use Mi Home Automation - they often conflict with other protocols.
4. Mi Home setup: step-by-step instructions
Once you buy a hub and devices, you need to link them together, using the Mi Home app (available for Android and iOS).
- Install the app and register (attach to phone number or email). For users from Russia, select the region "Russia" - this will make it easier to set up without a VPN.
- Add the hub: Connect the hub to the outlet (it should flash yellow). In the app, click "+" β "Add device" β select the hub model. Bring the phone to the hub and wait for the beep.
- Connect devices: Press + β Add Device β Select a category (e.g. Sensors) Activate the pairing mode on the device (usually press the button for 3-5 seconds until the indicator flashes).
- Configure rooms: in the Profile menu β Smart Home, create a plan for an apartment and distribute the devices to the rooms. This will simplify management.
β οΈ Note: If the hub is not in the app, check the region in the profile. For example, Mi Home Security Gateway 2 for China will not be visible in Russia. Solution: change the region in the account settings (but note that this may reset some settings).
π‘
All Xiaomi devices are tied to an account, not a hub, which means that when you replace the hub, you donβt have to reconnect the sensors β just move them to a new app.
5. Creation of automation scenarios
The main beauty of a smart home is that it saves time, and in Mi Home, you can create it in two ways: through standard templates or manually, and let's look at both.
Method 1: Prepared templates
In the app, go to Automation β Add β Template. Here are popular scripts:
- π‘ "Turn on the light when moving" - the lamp lights up when the motion sensor captures activity.
- πͺ "Door Opening Alertβ β Notification to the phone if someone opened the front door.
- π‘οΈ "Climate control β the heater turns on if the temperature has dropped below the preset.
Method 2: Castomy scenarios
For flexible settings, select Automation β Add β Custom. For example, you can create a rule:
IF [Volves' traffic sensor is activated]
And [Time between 18:00 and 23:00]
TR [Enable the Yeelight lamp at 50% brightness]
And [Send a notification "Someone's Coming Home"]π‘
For complex scenarios (such as those with delays or multiple conditions), use Mi Home Automation (available in the Play Market) to create action chains that cannot be configured in a standard Mi Home.
β οΈ Attention: Geolocation-dependent scenarios (e.g., "turn on the heat when I go home") consume a lot of the phone's battery. If battery saving is important, replace geolocation with a schedule or presence sensors.
6.Integration with voice assistants
Smart home management is not only possible through the app, but also through voice. Xiaomi supports three main assistants:
- π€ Alice (Yandex) β works through the skill βSmart home Xiaomiβ. Supports the main commands: βAlice, turn on the light in the hallβ or βAlice, show the temperature in the kitchen".
- π€ Google Assistant β requires you to link your Mi Home account to Google Home, supports Matter devices (e.g. Redmi Smart Home Gateway).
- π€ Siri (Apple HomeKit) β Limited support. Integration requires a hub with Matter (e.g. Aqara Hub) M3) Home Assistant Bridge.
To connect Alice:
- Open the application "Yandex" β "Devices" β "Add device".
- Select βXiaomiβ and log in to your Mi Home account.
- Allow access to devices and wait for sync (can take up to 5 minutes).
Why doesn't Alice see the new devices?
7 Common Mistakes and How to Avoid Them
When building a Xiaomi-based smart home, users often face typical problems, and here are the most common ones and solutions:
| Problem. | Reason. | Decision |
|---|---|---|
| Sensors are off the hub | Weak Zigbee signal (thick walls, long distance) | Add a Zigbee repetitor (like Mi Smart Wall Switch) or move the hub closer to the center of the apartment |
| Notifications are coming with a delay | Problems with the Internet or Mi Home servers | Set up local scripts (without the cloud) or use Home Assistant |
| Smart lamp flashes after switching off | Current through a lighted switch | Replace the switch with a model without backlighting or add a bypass (capacitor) |
β οΈ Note: If you use multiple hubs (e.g. Mi Home Security Gateway 2 and Aqara Hub) M2), Don't connect them to one Mi Home account, and that's going to lead to device conflicts, so the solution is, either start a second account or use Home Assistant to merge systems.
8 Advanced Features: Home Assistant and Local Scenarios
For those who don't have the functionality of Mi Home, there is an alternative, Home Assistant, which is an open platform for the smart home that allows you to:
- π§ Bringing together devices from different brands (not just Xiaomi).
- π Create complex scenarios with delays, cycles, and conditions.
- π Work without the cloud (all data is stored locally).
- π± Integrate with any voice assistants.
To connect Xiaomi devices to Home Assistant, you will need:
- Install Home Assistant on the Raspberry Pi or NAS.
- Add integration of "Xiaomi Miio" through HACS (Castom Repository).
- Get Mi Home Token for each device (GitHub instructions)
π‘
Home Assistant is the only way to create fully local scenarios that work even without the internet, and this is especially important for security systems (such as motion sensor sirens).