Building a smart home based on the Xiaomi ecosystem is not only convenient, but also a real saving of time and energy. However, many beginners are lost in the choice of where to start, which hub to buy first, which sensors are really necessary and what to do without? This article will help avoid the typical mistakes when assembling a system from scratch, save money and build a scalable infrastructure that can be easily expanded.
Weβll explore three key principles for a successful start: choosing a central hub (and why the Mi Home Hub 2 isnβt always optimal), prioritizing sensors for basic automation, and ways to integrate with voice assistants, and focusing on hidden pitfalls that the manufacturer doesnβt mention β for example, why some Xiaomi devices stop working when the Chinese cloud is turned off or how to circumvent geolock restrictions.
If youβve tried to set up a smart home and youβve run into problems β thereβs a section at the end of this article that addresses the most common bugs (from βI canβt see the device in the appβ to βScenarios are delayedβ). And for those just planning a purchase, weβve compiled a hub comparison table with current prices and features.
1. Central Hub: The Heart of a Smart Home
Without a hub, most Xiaomi devices will not be able to communicate with each other.
- π Connecting sensors and actuators into a single network (via the ZigBee or Wi-Fi protocol)
- π± Manage through the Mi Home or Home Assistant mobile app
- β‘ Automatic execution of scenarios (e.g. turning on lights when moving)
- π Local command processing (without cloud dependency)
As of 2026, Xiaomi has three main hubs:
| Model | Protocol | Max. Devices. | Voice assistant | Price (β) | Features |
|---|---|---|---|---|---|
| Mi Home Hub 2 (MHS409) | ZigBee 3.0 | 128 | Alice, Google, Siri | 3 500 β½ | Matter support, laptop complete for setting up |
| Aqara Hub M2 | ZigBee 3.0 | 128 | Alice, Google. | 4 200 β½ | Built-in IR- transmitter for control of equipment |
| Redmi Smart Home Gateway | ZigBee 3.0 | 64 | Alice. | 2 800 β½ | Budget option, without Matter support |
Critical: If you plan to use Aqara devices (a subsidiary of Xiaomi), take the Aqara Hub M2 β It's better optimized for their sensors. For a purely Xiaomi ecosystem, the Mi Home Hub 2 is enough.
β οΈ Note: Xiaomi hubs are tied to the region when you first connect. If you choose China (Mainland China) in Mi Home, some features (such as voice control via Alice) will not work"!
2. Basic set of devices: without which to do
At the start, 4-5 devices are enough to cover 80% of everyday scenarios.
- Motion Sensor (Xiaomi Motion Sensor 2) β for lighting automation and safety, installed in the hallway, bathroom or hallway.
- Opening sensor of doors/windows (Xiaomi) Door/Window Sensor 2) β signaling.
- Smart socket (Xiaomi Smart Plug Wi-Fi) - for remote control of household appliances (for example, a heater or a kettle).
- Smart light bulb (Yeelight) LED Xiaomi Philips β with brightness and color adjustment.
- Xiaomi Wireless Switch β for manually running scripts (e.g., βLeaving Homeβ)
π‘
Donβt buy the first version of the sensors (without the number β2β in the title) β they run on the outdated ZigBee 1.2 protocol and can conflict with new devices.
Cost of the basic set: ~8 000β10 000 β½. This is the minimum package that already allows:
- π‘ Automatically turn on the light when driving in the dark
- πͺ Get notifications about open windows in winter
- β Remotely turn on the kettle on the way from work
- π Simulate the presence of the house (accidental lighting on)
β οΈ Note: Xiaomi sensors on batteries (CR2032/CR2450) discharge 1β2 Buy a stock of batteries right away -- the original batteries last longer than the cheap ones.
3. Setup of the Mi Home application: step-by-step instructions
After buying the hub and devices, start setting up:
Download the Mi Home app (App) Store/Google Play)|Create a Xiaomi account (select the region of Russia)|Connect the hub to the outlet and wait for the yellow LED to blink.|In the app, click "+" β "Add the device" β "Mi Home Hub 2"|Follow the instructions (Bluetooth binding)|Update the hub firmware in the device menu-->
After adding the hub:
- Go to Profile. β Settings β Region and make sure that Russia is selected.
- Enable Local Management in the hub settings (this will reduce cloud dependency).
- Add the rest of the devices through + β Add the device (each device must be brought to the hub for a distance) < 1m).
What to do if the device is not added?
For convenience, group the devices into rooms:
- Open the Devices tab in the app.
- Click Add room (e.g., "Kitchen", "Bedroom").
- Drag the devices to the appropriate rooms.
4. Automation scenarios: examples for beginners
Scenarios allow devices to interact without you, and start with these basic rules:
| Script | Conditions | Action. | Example of devices |
|---|---|---|---|
| Traffic lighting | The motion sensor is activated and the level of illumination < 50 lux | Turn on the smart light bulb for 3 minutes | Motion Sensor 2 + Yeelight |
| Windows security | The window opening sensor is activated and the temperature outside < 10Β°C | Send push notifications to your phone | Door Sensor 2 + weather-service |
| Leaving the Home mode | Press the Wireless Switch button 2 times | Turn off all sockets and light bulbs | Wireless Switch + Smart Plug |
To create a script:
- At Mi Home, go to Automation. β Create β Custom automation.
- Select a Condition (e.g., a motion sensor).
- Add Action (turn on the light bulb).
- Save the script and test it out.
π‘
Use difficult conditions with the operator and" (AND), For example, the lights should only turn on if the movement is detected and it is dark outside.
β οΈ Note: Mi Home scripts are 1-3 seconds late. If you need an instant response (e.g. for alarms), consider switching to Home Assistant with local processing.
5. Integration with voice assistants
You can control a smart home by voice through:
- π£οΈ Alice (Yandex) β supports all Xiaomi devices marked βWorks with Yandex"
- π€ Google Assistant β Requires you to link your Mi Home account to Google Home
- π Siri (HomeKit) β only through Home Assistant HOOBS
To connect to Alice:
- Open the Yandex application β Devices β Add the device β Xiaomi.
- Sign in to Mi Home account (should be linked to Russia!).
- Allow access to the devices.
- Say commands like, "Alice, turn on the light in the kitchen" or "Alice, show the temperature in the room."
1. whether all devices are added to the rooms in Mi Home (without a room they are not displayed in Yandex).
2. Are there any restrictions on the region (for example, Chinese firmware is not supported).
3. Has the hub firmware been updated to the latest version.-->
6 Advanced Features: Home Assistant and Local Management
The Mi Home app is convenient for beginners, but has limitations:
- β³ Delays in scripting (up to 5 seconds)
- π Dependence on Chinese servers (with the Internet break some functions do not work)
- π§ Limited Automation Settings
Solution: Home Assistant (HA). It is an open platform for a smart home that:
- π It works locally (without the cloud)
- π§ Supports complex scenarios with conditions and cycles
- π Keeps a history of changes (e.g., temperature charts)
- π Integrates with 1000+ devices of different brands
Minimum installation requirements:
- π₯οΈ Old PC, Raspberry Pi 4 (from 5,000) β½) or NAS
- π Flash drive./SSD on 32 GB (for log recording)
- β‘ Unbreakable (UPS) light-shield
Instructions for connecting Xiaomi devices to HA:
1. Install Home Assistant (we recommend the Home Assistant OS method).
2.In the configuration.yaml file, add integration:
zigbee:
device: /dev/ttyACM0 # port of your ZigBee adapter
baudrate: 115200
3. Reset HA.
4. In the web interface, go to Settings β Devices and Services β Add Integration β Xiaomi Miio.
5. Enter your hubβs token (how to get it: see mihome.dev).How to get a token hub Mi Home?
β οΈ Note: When using Home Assistant, turn off cloud sync in Mi Home (Profile) β Settings β Cloud. β Disable it. Otherwise, devices may duplicate commands.
7.Typical errors and their solutions
Even with the right setup, there can be problems. Here are the most common:
| Problem. | Reason. | Decision |
|---|---|---|
| Hub does not connect to Wi-Fi | Does not support 5 GHz or hidden network | Switch router to 2.4 GHz, disable SSID hiding |
| Sensors fall off once a day. | ZigBee weak signal | Install a repeater (e.g. Xiaomi Smart Plug as a router) |
| Scenarios are delayed | Cloud Processing in Mi Home | Go to Home Assistant or enable local management in the hub settings |
| Alice can't see the device. | The wrong region in Mi Home | Change the region to Russia and re-link the hub |
1. Remove the device from the Mi Home.
2. Remove the battery for 10 seconds.
3. Insert the battery back and wait for the LED to blink.
4. Add the device again.-->
8.How to expand the system: tips for scaling
When the underlying system is stable, you can add:
- π‘οΈ Climate Control: Xiaomi Smart Thermostat + heater
- π° Proof of leakage: Aqara Water Leak Sensor + electric
- π₯ Video surveillance: Xiaomi Home Camera 360Β° 2K note-on SD-map
- π Smart lock: Xiaomi Smart Door Lock (requires a separate hub) NFC Gateway)
The scaling rules:
- Add no more than 2-3 devices per week to test stability.
- Use ZigBee repeaters (such as smart sockets) to amplify the signal.
- Keep documentation: Write down which devices are installed and which scripts are tied to them.
- Before buying, check compatibility on the website. Zigbee2MQTT.
π‘
Don't chase the number of devices. Start with specific tasks (like "automatic lighting in the hallway"), and then expand the system.