Turning a normal apartment into a modern smart home with Xiaomi devices is a challenge that seems daunting only at first glance. In fact, even without special skills, you can automate lighting, climate control, security and appliances using the Mi Home ecosystem. The main thing is to choose the right devices, correctly arrange them and adjust the interaction between them.
In this article, weβll take a look at the step-by-step process of building a Xiaomi-based smart home, from choosing a hub and sensors to setting up complex automation scenarios. Youβll learn which devices are really necessary to get started, how to avoid typical installation errors, how to save on purchase without losing functionality. And how to integrate a smart home with voice assistants (Alice, Google Assistant) and manage everything from a smartphone.
Spoiler: for basic automation of the apartment is enough 5-7 Xiaomi devices 2-3 But if you want complete control of every light bulb and socket, get ready to go deeper into the system!
1.What Xiaomi devices do you need for a smart home in an apartment?
Xiaomiβs ecosystem offers more than 200 smart home devices, but a basic set is enough to start in an apartment. The main thing is to choose the right hub (central device), without which most sensors and actuators simply will not work.
Here is the minimum set for lighting, climate and safety automation:
- πΉ Hub (gateway): Xiaomi Mi Smart Home Hub 2 (supports Zigbee 3.0, Matter, works without the Internet). M2 (better for larger apartments).
- π‘ Smart lamps: Xiaomi Yeelight LED (coloured LED Smart Bulb (white, budget). For chandeliers - Xiaomi Mi LED Ceiling Light.
- π Smart sockets: Xiaomi Mi Smart Plug (with power consumption measurement) or Aqara Smart Wall Plug (compact, without power supply).
- π‘οΈ Xiaomi Mi Temperature and Humidity Sensor 2 (climate, Aqara Door/Window Sensor (opening doors/windows), Xiaomi Mi Motion Sensor (movement).
- π Home Security Camera Xiaomi Mi Home Security Camera 2K (camera with a turn) or Aqara Video Doorbell (videophone).
For advanced automation, add:
- πͺ Smart lock: Xiaomi Mi Smart Door Lock (with fingerprint) or Aqara Smart Lock N100 (Apple HomeKey Supported).
- π¬οΈ Climate Control: Xiaomi Mi Air Purifier 4 (air purifier) + Mi Smart Fan (fan with sensor control).
- π΅ Multimedia: Xiaomi Mi TV Box S (to control TV through voice) or Mi Smart Speaker (Alice column).
Important: All devices must support Zigbee (for stable operation without lags) or Wi-Fi (for simple devices like lamps). Avoid Bluetooth devices, which require a constant connection to the phone and quickly drain the battery.
2. Which hub (gateway) Xiaomi to choose for the apartment?
The hub is the brain of a smart home that connects all devices to each other and allows you to control them through the Mi Home app. Without the hub, most of Xiaomiβs sensors and actuators simply wonβt work (except for devices with direct Wi-Fi connection, such as Yeelight lamps).
Letβs compare three popular hubs for an apartment:
| Model | Protocols | Max. Devices. | Features | Price (2026) |
|---|---|---|---|---|
| Xiaomi Mi Smart Home Hub 2 | Zigbee 3.0, Wi-Fi, Bluetooth | 128 | Matter support, work without the Internet, built-in speaker | ~3 500 β½ |
| Aqara Hub M2 | Zigbee 3.0, Wi-Fi, Ethernet | 128 | More stable Zigbee, HomeKit support, ports for wired sensors | ~4 200 β½ |
| Xiaomi Mi Home Security Hub | Zigbee, Wi-Fi | 32 | Outdated model, weak Zigbee signal, no Matter | ~2 000 β½ |
Selection recommendations:
- π For a one-bedroom apartment or studio, Xiaomi Mi Smart Home Hub 2 is enough - it covers up to 50 m2 without repeaters.
- π’ For two-bedroom apartment it is better to take Aqara Hub M2 β It has a more powerful Zigbee transmitter and support for wired sensors (for example, for fire alarms).
- π° If you have a budget, you can start with the Xiaomi Mi Home Security Hub, but be prepared for stability issues when connecting 10.+ device.
π‘
If your apartment has thick concrete walls, place a hub in the center of the apartment or use a Zigbee repeater (for example, a smart Aqara socket as a signal amplifier).
β οΈ Note: Xiaomi hubs are linked to the region in the Mi Home app when you first connect. If you choose China, some devices (e.g. Yeelight) may not connect.
3. Step-by-step installation and setup of Xiaomi smart home
Once the devices are purchased, we start mounting and configuring, and we can divide the process into 4 steps: physical installation, connecting to the hub, setting up in Mi Home, and creating automation. Let's take a closer look at each step.
Step 1: Installation of devices
Start by placing a hub β it should be in the center of the apartment, away from sources of interference (microwaves, 5 GHz routers), the optimal height is 1.5-2 meters from the floor, connect the hub to the outlet and wait for the blue indicator to light up (means readiness to connect).
Next, install the remaining devices:
- π‘ Lamps are screwed into standard cartridges. Use Xiaomi Mi for chandeliers. LED Ceiling Light (requires direct connection to electrical wiring).
- π Sockets are inserted into existing outlets. Don't plug refrigerators or washing machines into them, they can overload contacts.
- π‘οΈ The sensors are attached to double-sided tape. Place the motion sensor at a height of 2-2.5 m in the corner of the room, the door opening sensor on the frame so that the magnet and the sensor are opposite each other.
- π₯ Place your cameras on the ceiling or wall overlooking the front door. Avoid areas with direct sunlight (can blind the lens).
Stage 2: Connecting to the hub
Download the Mi Home app (available for Android and iOS) and sign up.
- Click + β Add the device in the upper right corner.
- Select a category (such as Hub Gateways) and follow the instructions on the screen.
- To connect the hub, press and hold the button on its body until the beep.
- After connecting the hub, add the other devices in the same order.
Make sure the hub is on and flashes blue|Check that the smartphone is connected to Wi-Fi 2.4 GHz|Shut down. VPN (It can block Xiaomi servers)|Charge the phone (setup takes up) 20-30 minute)|Prepare passwords from Wi-Fi (required for some devices)-->
β οΈ Note: Some devices (e.g. Xiaomi Mi Temperature & Humidity Sensor 2) require firmware updates immediately after connection. If the sensor is not detected, check for updates in the Device Profile section. β Three points. β Update firmware.
Stage 3: Configuring rooms and areas
In Mi Home, divide the apartment into zones for easy management:
- Go to Profile. β Smart home settings β Rooms.
- Add rooms (e.g. Living room, Kitchen, Bedroom).
- Drag the devices into the appropriate rooms (e.g., a lamp into the living room, a motion sensor into the corridor).
Stage 4: Creating Automations
Automation (or "scenarios") allows devices to interact without you, such as when a door is opened, lights may turn on, and when motion is detected, a camera may start.
To create a script:
- Go to Automation. β Create β Customizable automation.
- Select a trigger (start condition, for example, Motion Sensor detected motion).
- Add an action (e.g., turn on the lamp in the living room).
- Save the script and test it out.
π‘
Start with simple scenarios (e.g., βIf the motion sensor is triggeredβ) β Set up complex chains (with delays and conditions) after testing basic automations.
4. Examples of ready-made automation scenarios for an apartment
Ready-made scenarios save time and make a smart home really smart. Here are the 5 most useful apartment automations you can set up in Mi Home:
- π "Morning Rise: Trigger: Time (7:00) + motion sensor in the bedroom.Action: Turn on the lamp at 30% brightness β In 5 minutes, start the air purifier β After 10 minutes, turn on the kettle (smart socket).
- πͺ "Security: Simulation of Presence: Trigger: Time (20:00β23:00) + Door opening sensor (if you left the house) Action: Turn on the light in a random room for 15 minutes β Turn on the TV (via Mi) TV Box for 10 minutes.
- π‘οΈ "Climate Control: Trigger: Temperatures above 25Β°C (by sensor) + presence of the house (by geolocation of the smartphone). Action: Turn on the air purifier at average power β Close the curtains (smart curtains Xiaomi) β fan.
- π‘ "Power savings": Trigger: No movement in the room for more than 30 minutes.Actions: Turn off all lamps and sockets (except the refrigerator).
- π° "Drip Protection": Trigger: Aqara Water Leak Sensor is activated. Action: Send push notification β siren β Turn off the water (if Xiaomi has a smart tap installed).
To configure complex scenarios with delays and conditions, use the Automation section β Smart scenarios. For example, you can make a rule:
IF (Temperature > 25Β°C) AND (Humidity < 40%) AND (Somebody at home)
TUE Turn on the humidifier for 1 hour
Otherwise, turn off the humidifierHow to make a scenario with geolocation?
β οΈ Note: If the script doesnβt work, check it out:
- π Charge of the sensor battery (in Mi Home is displayed in the profile of the device).
- πΆ Zigbee signal (if the device is far from the hub, add a repeater).
- π Firmware updates (outdated software can block automation).
5.Integration of Xiaomi Smart Home with Voice Assistants
You can manage your smart home not only through Mi Home, but also with voice assistants such as Alice (Yandex), Google Assistant or Siri (HomeKit), which is convenient when your hands are busy or you are in another room.
To connect to Alice:
- Open the Yandex application on your smartphone.
- Go to Devices β Add the device β Xiaomi.
- Sign in to Mi Home (should match the hub region!).
- Select the devices you want to control your voice (such as lamps and sockets).
Examples of voice commands for Alice:
- "Alice, turn on the light in the living room" β Turn on the lamp tied to the room "Living room".
- "Alice, set the temperature at 22 degrees" β Change the settings of the heater or air conditioner.
- "Alice, show me the camera in the kitchen" β will open the broadcast from the camera on the TV or smartphone.
For Google Assistant:
- In the Google Home app, click + β Set up your device β Are there devices already?
- Select Xiaomi Mi Home and sign in.
- Allow access to the devices.
1. Region in Mi Home (should be Russia).
2. the presence of devices in the same Wi-Fi network with a smartphone.
3. Hub firmware updates (older versions do not support integration).-->
β οΈ Note: Some Xiaomi devices (e.g. Aqara) do not support direct integration with HomeKit. They will require an additional hub to connect to Siri, such as Home Assistant or HomeBridge (for advanced users).
6.Typical Mistakes When Creating a Xiaomi Smart Home and How to Avoid Them
Even with careful preparation, many people face problems with smart home work, and here are the most common mistakes and ways to solve them:
- π Devices do not connect to the hub: Reason: Hub and device are in different regions in Mi Home (e.g. hub in Russia and lamp in China).Solution: Reset the device to factory settings (usually a long button press) and plug it back in by selecting the right region.
- π‘ Persistent communication interruptions: Reason: Zigbee's weak signal due to thick walls or the large distance between the hub and devices.Solution: Use a Zigbee repiter (like Aqara's smart socket) or move the hub closer to the center of the apartment.
- β³ Delays in execution of commands: Reason: Devices are connected via the cloud (not locally), or the hub is overloaded.Solution: Set up local management in Mi Home (Settings smart home) β Local area network. If the hub overheats, reset it.
- π Rapid battery discharge of sensors: Reason: Sensors send data too often (e.g. motion sensor works on pets).Solution: Reduce sensor sensitivity in settings or replace batteries with lithium (they last longer).
- π Scenarios are unstable: Reason: Conditional conflict (e.g., two scenarios trying to control the same lamp at the same time).Solution: Check the script logs in Automation β Journal and simplify the terms.
If the problem is not solved, try resetting the hub to factory settings (the reset button is on the back, hold it for 10 seconds) and reconnect the devices again.
π‘
Before buying new devices, check their compatibility with your hub in the official Mi Home directory. Some devices (such as the Xiaomi Mi Robot Vacuum) only work over Wi-Fi and do not connect to the Zigbee hub.
7.How to save on a smart home Xiaomi: life hacks and alternatives
Building a smart home can cost a lot, but there are ways to save money without losing functionality.
- π Buy devices in bundles: For example, Xiaomi Mi Smart Home Kit (Hub) + 2 sensors + It's cheaper than buying everything separately. Watch out for AliExpress sales (especially during 11.11 or Black Friday").
- β»οΈ Use used devices: Xiaomi hubs and sensors rarely break down, so you can buy them on Avito or Yula with a guarantee. Before buying, check if the hub is tied to someone else's account (ask the seller to reset it).
- π§ Replace expensive devices with budget counterparts: Xiaomi Mi Temperature & Humidity Sensor 2 (1,500) β½) Take the Aqara Temperature Sensor (1,200) β½) β It's more accurate and battery-powered than Yeelight. β½) can be used IKEA Tradfri (1 800 β½) β They also work with Mi Home via the hub.
- β‘ Save on energy consumption: Xiaomi smart sockets consume ~1W standby. Turn them off the grid if you're not using. Set up a script that turns off all lights and sockets at night (except the refrigerator).
Another way to save money is to gradually expand the system. 2-3 devices (e.g. lamps) + motion-sensor + socket, and then buy the rest as needed.
1.Look for devices marked Global Version β they are officially intended for Russia and do not require firmware.
2.Check for Zigbee 3.0 β Older devices on Zigbee 1.2 may not connect to the new hub.
3. Compare prices on AliExpress, Beru and Svyaznoy - sometimes the difference is up to 30%.
-->
8.Prospects for development: what to add to the Xiaomi smart home next?
When basic automation is set up, you can expand the functionality of the smart home. Here are 5 ideas for upgrades:
- πΏ Smart plant watering: Add Xiaomi Mi Flora (Soil Moisture Sensor) + Mi Smart Irrigation System: Set up a scenario where the soil is dry. β water up.
- πΆ Multi-audio: Buy some Xiaomi Mi Smart Speaker and sync them through Mi Home.Tune the script: If you're coming home β play music in the living room.
- π Smart garage or parking: Install the Aqara Garage Door Controller to automatically open the gate. Add the Xiaomi Mi Car Sensor (tracks the location and diagnostics of the car).
- π Smart bathroom: Add Xiaomi Mi Smart Bathroom Heater (timer-controlled towel warmer).Install Aqara Water Leak Sensor under the sink to protect against leaks.
- π€ Robot vacuum cleaner with integration: Buy Xiaomi Mi Robot Vacuum-Mop 2 and set up cleaning on schedule. Synchronize it with motion sensors: if no one is home β clean up.
For advanced users, it is possible to integrate Xiaomiβs smart home with other systems:
- π Home Assistant is an open platform for managing all devices from one screen (including the non-screen version).-Xiaomi).
- π IFTTT β a service for creating cross-platform automation (for example, if it rains outside) β window").
- π± Tasker is an Android app that allows you to create complex scenarios using geolocation, time and other triggers.
If you want to take your smart home to the next level, consider buying the Xiaomi Mi AIoT Router β itβs optimized for working with devices. <