Xiaomi Redmi Smart Home is not just a set of gadgets, but a complex system of interaction of devices that turns a normal apartment into a smart space. Unlike the classic smart solutions, where each device works independently, all the components are united by a single control center, communication protocols and cloud services. But how exactly does it work under the hood? Why does the Yeelight light up when you open the door with an Aqara sensor, and the Mibot Vacuum robot vacuum cleaner start cleaning when you leave the house?
In this article, we will explore the architecture of Xiaomi Redmiβs smart home system, from communication protocols (ZigBee, Wi-Fi, Bluetooth Mesh) to the logic of scripting in the Mi Home app. You will learn which devices are mandatory to start, how they interact with each other, and why some combinations of gadgets work only in China. And also how to circumvent Xiaomiβs regional restrictions and make informal devices in Russian firmware work.
The main components of the ecosystem: what you need to start
To make a smart home work, it's not enough to buy a couple of light bulbs and a motion sensor, but you need to understand the hierarchy of the devices and their roles.
- π± The central hub is the brain of the system. In the Xiaomi ecosystem, it's the Mi Home Gateway (or Aqara Hub for advanced scenarios), without which most ZigBee devices will not be able to connect to Wi-Fi and be controlled remotely.
- π The lights are light bulbs (Yeelight, Mi) LED Bulb, sockets (Mi Smart Plug), robot vacuum cleaners, smart locks. They execute commands, but they can't initiate actions themselves.
- ποΈ Sensors: Motion Sensor (Aqara Motion Sensor), Door Opening (Mi) Door/Window Sensor, water leaks, temperatures, they collect data and transmit it to the hub.
- π€ Mi Home is an interface for scripting, device firmware and monitoring. Android/iOS, However, there are regional limitations.
Importantly, not all Xiaomi devices are compatible, for example, Mi Band can not directly control the light bulb, and Aqara sensors require their hub.
| Type of device | Protocol of communication | Need a hub? | Examples of models |
|---|---|---|---|
| Light bulbs. | Wi-Fi / Bluetooth Mesh | β No. | Yeelight Color, Mi LED Bulb Essential |
| Sensors (movement, door) | ZigBee | β Yeah. v3) | Aqara Motion Sensor, Mi Door Sensor 2 |
| Rosettes | Wi-Fi | β No. | Mi Smart Plug, Redmi Smart Plug |
| Robot vacuum cleaners | Wi-Fi + LiDAR | β No. | Mi Robot Vacuum-Mop 2 |
β οΈ Note: Devices with the ZigBee protocol 3.0 (Aqara sensors are incompatible with old Mi Gateway hubs v1/v2. They need a Gateway. v3 or Aqara Hub. M2.
2. Communication protocols: how devices communicate
One of the key benefits of Xiaomi's ecosystem is that it supports multiple wireless protocols, each optimized for a specific task, and we'll look at the pros and cons of these.
- πΆ Wi-Fi (2.4 GHz): Used for high-speed devices (cameras, robot vacuum cleaners) and low-power and router dependency.
- π ZigBee: low-energy protocol for sensors and buttons. It runs at 2.4 GHz, but it creates its own mesh network (devices relay each other's signals) and supports up to 128 devices per hub.
- π΅ Bluetooth Mesh: ZigBee alternative for non-hub devices (e.g. Mi light bulbs) LED Bulb Mesh allows you to control light without Wi-Fi, but has range limitations.
- π‘ RF 433 MHz: outdated protocol for older devices (e.g. Mi Remote Control) Not recommended for newer systems.
The most common mistake of beginners is to try to connect the ZigBee sensor directly to Wi-Fi, which is impossible: these devices only communicate with the hub, and the hub already transfers data to the Xiaomi cloud.
ZigBee Sensor β Hub (Mi Gateway) β Wi-Fi router β Xiaomi Cloud β Mi Home AppWi-Fi devices (such as Yeelight light bulbs) connect directly to the router and can operate without a hub, but a hub will still be needed to create complex scenarios (such as, βIf the motion sensor is triggered, turn on the lights and send a notificationβ).
3. Mi Home app: Registration, regions and hidden settings
Xiaomiβs smart home is managed through the official Mi Home app (available for Android and iOS), but there are a few pitfalls:
- Regional reference: the first time you run the app, you can choose a country, which depends on which devices will be available in the catalog, for example, in the "Russia" region, many Aqara sensors do not show.
- Xiaomi account: without it, you can't add devices. Registration requires a phone number or email.
- Hidden Settings: Some features (such as Local Scenarios or Developer Mode) are hidden in the depths of the menu.
To change the region in Mi Home after registration:
- Open the application and go to Profile β Settings β Country/Region.
- Choose China, it will open access to all devices, but the interface will be in Chinese.
- Return to settings and change the language to English (Settings) β Language β English).
β οΈ Note: If you change region to China, some devices may stop working with voice assistants (Alice, Google Assistant) due to Xiaomi restrictions.
π‘
If the Mi Home doesnβt show the device you want, try adding it manually via Add the device. β You can find the codes on the box or in the documentation.
Automation scenarios: from simple rules to complex chains
The main advantage of a smart home is the ability to create automatic scripts that run on triggers (time, event from the sensor, voice command).
- β° Simple: one condition β Example: If the motion sensor is triggered, turn on the light".
- π Complex (chains): several conditions and actions. Example: If the temperature is above 25Β°C And no one's home, turn on the air conditioner and close the curtains".
To create a script:
- In Mi Home, go to Automation section β Create β Add a condition.
- Select a trigger (such as a motion sensor). β Traffic detected).
- Add an action (for example, the light bulb β Enable).
- Save the script and activate it.
Advanced users can use logical operators ("And", "OR", "NO") to create complex rules, such as:
IF (Door Sensor = Open) AND (Time between 22:00 and 06:00)
THIS Switch on the siren and send a notification to the phoneSelect the correct condition (sensor, time, geofence)
The action is compatible with the device (for example, the light bulb supports color change)
Scenario activated (slider in position "On")
Test check (for example, simulated movement in front of the sensor)-->
Xiaomi Limitation: No more than 5 terms and 5 actions can be used in one scenario.To circumvent this limitation, experienced users use Home Assistant or Node-RED to integrate with Xiaomi API.
5. Voice control: Alice, Google Assistant and Siri
Xiaomi Smart Home supports voice control through popular assistants, but with reservations:
| Assistant | Supported devices | Limitations | How to connect |
|---|---|---|---|
| Alice (Yandex) | Light bulbs, sockets, robot vacuum cleaners | It doesn't work with ZigBee sensors. | Through the skill "Xiaomi Smart Home" in the application Alice |
| Google Assistant | All devices with Mi Home support | Requires a "U.S." or "UK" region | Mi Home β Profile β Settings β Voice assistants |
| Siri (HomeKit) | Only HomeKit-enabled devices (e.g. Yeelight Pro) | Limited list of compatible gadgets | Through the Home app on iPhone |
To connect to Alice:
- Open the Yandex app with Alice.
- Go to Settings. β Smart home. β Add the device β Xiaomi Smart Home.
- Log in to your Xiaomi account and allow access.
- Say to the command, "Alice, turn on the light in the living room."
β οΈ Note: If Alice does not see the device after connecting, check: Region in Mi Home (should be "Russia" or "China"). Device name in Mi Home (should not contain special characters.
6. Common Problems and Their Solutions
Even Xiaomiβs well-functioning smart home system has a recurring failure, and here are the most common ones and ways to fix them:
- π Device does not connect to Wi-Fi: Check that the router is running at 2.4GHz (Xiaomi does not support 5GHz for most devices). Reboot the hub or the device itself (pull out the battery for 10 seconds). Reset the device to factory settings (usually hold the button for 5-10 seconds).
- π Scripts don't work: Make sure all devices in the script are tied to the same room in Mi Home. check if conditions are conflicting (e.g., two scenarios with the same trigger). Update the hub and devices firmware.
- π΅ Hub not visible on the network: Connect the hub to the router with an Ethernet cable (if the model supports). Check if the router firewall blocks traffic on port 8080 or 443. Reset the hub to factory settings (hold the reset button for 20 seconds).
If the problem is not solved, use the hub logs:
- At Mi Home, go to Devices β Choose a hub. β Settings β Journal of events.
- Check for errors (e.g., ZigBee device offline or Wi-Fi connection failed).
- Copy the error code and find the solution in the forums (for example, 4PDA ordredit).
What to do if the hub flashes orange?
7. Alternative management systems: Home Assistant and others
The Mi Home app is convenient for basic settings, but has limitations:
- It is not possible to create scripts with a delay of more than 1 hour.
- There is no support for user scripts.
- Device data is stored in the Xiaomi cloud (privacy risks).
For enhanced control, many users are switching to alternative platforms:
- π Home Assistant: open system with Xiaomi support through Xiaomi Miio integration, allows you to create complex automation, work without the cloud and integrate with other ecosystems (Google, Apple, Samsung).
- π§ Node-RED: Visual editor for creating automation streams, suitable for tech-savvy users.
- βοΈ IOBroker: German platform with support for more than 200 adapters, including Xiaomi.
To connect Xiaomi to Home Assistant:
- Install Home Assistant on a Raspberry Pi or other server.
- In the configuration.yaml file, add the following lines: miio: username: YOUR_XIAOMI_ACCOUNT password: YOUR_PASSWORD discovery_retry: 5
- Reboot Home Assistant and check for devices in the Entities section.
Advantages of this approach:
- Local management without depending on the Xiaomi cloud.
- The ability to create scenarios with delays, cycles, and conditions.
- Integration with other systems (e.g., managing Xiaomi devices via Alice voice commands, even if they are not officially supported)
π‘
Using Home Assistant allows you to bypass Xiaomiβs regional restrictions and manage devices that are not officially supported in your country.