Xiaomi Smart Home: Where to Start Building the System in 2026

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.

hubProtocolsMax. Devices.FeaturesPrice (2026)
Mi Home Security Gateway 2Zigbee 3.0, Wi-Fi30Built-in siren, laptop repeaterβ‰ˆ2 500 β‚½
Aqara Hub M2Zigbee 3.0, Ethernet128Backup power, support for Aqara and Xiaomi (partially)β‰ˆ4 000 β‚½
Redmi Smart Home GatewayZigbee 3.0, Matter50Budget compatible with Google Homeβ‰ˆ1 800 β‚½

πŸ“Š What hub do you plan to use?
Mi Home Security Gateway 2
Aqara Hub M2/M3
Redmi Smart Home Gateway
I haven't decided yet.

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.

  1. 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.
  2. Motion Sensor (Mi Motion Sensor 2 or Aqara Motion Sensor P1), which controls the light in the hallway, bathroom or hallway.
  3. 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).
  4. 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?
In a mesh network, each device (such as a smart socket or sensor) can act as a repeater, transmitting a signal from one node to another, which increases coverage and network reliability. For example, if the hub is in the hallway, and the sensor in the kitchen does not "catch" the signal directly, the data will be transmitted through intermediate devices (for example, a smart lamp in the hallway).

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).

  1. 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.
  2. 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.
  3. 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).
  4. 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:

  1. Open the application "Yandex" β†’ "Devices" β†’ "Add device".
  2. Select β€œXiaomi” and log in to your Mi Home account.
  3. Allow access to devices and wait for sync (can take up to 5 minutes).

Why doesn't Alice see the new devices?
If you added a sensor to Mi Home but it doesn’t appear in Xiaomi Smart Home, try: Update the skill in Yandex (click on three dots next to the skill β†’ Update) Reboot the hub (disable power for 10 seconds) Delete and re-add Mi Home account in the skill.

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 hubWeak 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 delayProblems with the Internet or Mi Home serversSet up local scripts (without the cloud) or use Home Assistant
Smart lamp flashes after switching offCurrent through a lighted switchReplace 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:

  1. Install Home Assistant on the Raspberry Pi or NAS.
  2. Add integration of "Xiaomi Miio" through HACS (Castom Repository).
  3. 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).

FAQ: Frequent questions about Xiaomi smart home

Can I use Xiaomi devices without a hub?
Yes, but with serious limitations. For example, Yeelight smart bulbs or Mi Smart Plug outlets can run directly over Wi-Fi, but you can't create automation scenarios between them. Sensors (movements, openings, temperatures) necessarily require a hub, because they use the Zigbee protocol.
How to reset the Xiaomi hub to factory settings?
To reset the Mi Home Security Gateway 2 or Aqara Hub M2: Turn off the power hub. Press the button on the case and hold it, while connecting the hub to the outlet. Hold the button pinched for 10-15 seconds until the indicator flashes yellow quickly. Release the button - the hub will reset and be ready for a new setup.
Why are Xiaomi sensors running out so quickly?
The life of battery-powered sensors depends on several factors: πŸ”‹ Battery quality: use alkaline batteries (like Duracell or Energizer) and cheap salt batteries will run out in 1-2 months. πŸ“‘ Signal level -- if the sensor is far from the hub, it spends more energy on data transfer. Solution: add a Zigbee repeater. ⚑ Survey frequency – some sensors (e.g., temperatures) can be configured to send data infrequently (every 10–30 minutes instead of 1-2 minutes).
Can I connect a Xiaomi camera to a smart home?
Xiaomi cameras (e.g. Mi Home Security Camera 2K) connect to Mi Home but don't participate in automation scenarios directly. However, you can: Set up notifications when motion is detected; Use Home Assistant to integrate the camera into the scenario (e.g., turn on the light when a person is detected); Connect the camera to Google Home or Alice for voice control.
How to transfer Xiaomi smart home to a new phone?
All devices are linked to your Mi Home account, not your phone. To migrate: Install Mi Home on your new phone and log in to the same account. All devices and scripts will automatically download from the cloud. If something does not appear, check the region in the profile (should match the previous one). ⚠️ If you have changed your phone number, first link it to your Mi Home account in your profile settings.