Xiaomi motion sensors have become an integral part of today's smart home systems, combining affordability, compactness and high functionality, and they allow you to automate lighting, security systems and even climate equipment, responding to the movement of objects in the coverage area. But how exactly do they work? What technologies underlie their operation, and how to properly configure the sensor for maximum efficiency?
In this article, we will discuss in detail the operation of Xiaomi motion sensors (including popular models such as Mi Motion Sensor and Aqara Motion Sensor), their specifications, connectivity schemes to the Mi Home ecosystem, as well as typical installation errors, and pay special attention to the signal processing algorithms that distinguish Xiaomi devices from other brands.
If youβre planning to integrate the sensor into your existing smart home system, or just want to understand how it interacts with other gadgets, this article will help you understand all the nuances. Weβll also answer the common questions: why the sensor is falsely working, how to increase the detection range and whether it can be used on the street.
Device and technical characteristics of sensors Xiaomi
Xiaomi motion sensors are built on the basis of pyroelectric (PIR) And when a person or an animal moves into the field of view of the sensor, their body emits heat that is captured by the sensor, and this leads to the generation of an electrical signal that is processed by the microcontroller of the device.
Key components of a typical Xiaomi sensor:
- πΉ PIR-The sensor is the main element that detects motion.
- π‘ Wireless module β for communication with the hub (Xiaomi Gateway) or directly with the router (in models with Wi-Fi or Zigbee).
- π Power source β usually a battery CR2450 or CR2032, autonomous.
- πΆ Antenna β built-in or external (depending on model) optimized for 2.4 GHz.
The main technical parameters of popular models:
| Model | Type of communication | Detection range | Viewing angle | Autonomy |
|---|---|---|---|---|
| Mi Motion Sensor | Zigbee | 7m | 120Β° | 24 months |
| Aqara Motion Sensor (P1) | Zigbee 3.0 | 9m | 170Β° | 36 months |
| Mi Home Security Motion Sensor | Wi-Fi (2.4 GHz) | 10m | 110Β° | 12 months |
Important: Xiaomi sensors with Zigbee protocol require a mandatory connection to the hub (for example, Xiaomi Gateway 3), whereas Wi-Fi models can work autonomously through the Mi Home cloud.
How the sensor detects movement
The algorithm of the Xiaomi motion sensor can be divided into several stages:
- Detection of IR radiation. PIR-The sensor is made up of two pyroelectric elements that respond to changes in temperature in the coverage area, and as the object moves, it alternately enters the field of view of each element, creating a difference in the signals.
- Noise filtering: The microcontroller analyzes the data, sifting out false positives (e.g., from convection airflows or small animals).
- Event generation: When motion is confirmed, the sensor sends a signal to the hub or directly to the Mi Home cloud (depending on the model).
- Script execution: The smart home system activates the specified actions: turn on the lights, send a notification, start a camera recording, etc.
Xiaomi sensors are designed to use adaptive algorithms that adapt to environmental conditions, such as when the room is consistently hot, the sensor automatically raises the sensitivity threshold to reduce the number of false positives.
The deviceβs reaction time is about 0.5-1.5 seconds, which is enough for most household tasks, but when installed in high-intensity passageways (for example, corridors), sensitivity settings may need to be adjusted.
Why does the sensor work on pets?
Connection schemes and compatibility with the Mi Home ecosystem
Connecting Xiaomi motion sensor depends on its type of communication. Let's consider two main options:
1. Connection via Zigbee hub
Most sensors (such as Mi Motion Sensor or Aqara) require a hub such as the Xiaomi Gateway or Aqara Hub.
- Install a hub and connect it to a Wi-Fi network through the Mi Home app.
- Put the sensor in pairing mode (usually by holding the button on the body until the indicator flashes).
- In the app, select Add Device β Sensors. β Motion sensor and follow instructions.
2. Connection over Wi-Fi
Models like the Mi Home Security Motion Sensor connect directly to the router.
- Make sure the router is running in the 2.4GHz band (Xiaomi sensors do not support 5GHz).
- In the Mi Home app, select China (some models are not available in European firmware).
- Follow the Connection Wizard by entering your Wi-Fi network data.
Once connected, the sensor will appear in the list of devices and can be integrated into automation (e.g., "If motion is detected, the sensor will appear in the list of devices. β turn on the lights) or use for security scenarios (notifications when motion is detected in the absence of the owners).
Make sure the hub is on and connected to the internet|Check the battery charge in the sensor|Turn it off. VPN In your phone (can block the connection to Xiaomi servers)|Place the sensor in the network area Zigbee/Wi-Fi-->
Optimal placement: where and how to install the sensor
The effectiveness of a motion sensor depends on its location, and here are the key recommendations:
- π Mounting height: optimally 2-2.5 meters from the floor, which reduces the likelihood of pets being triggered.
- π Viewing angle: avoid installation in corners of the room - this narrows the coverage area. It is better to place on the wall or ceiling.
- π‘οΈ Temperature: Do not install near heat sources (batteries, cookstoves) as this will cause false positives.
- πͺ Doors and windows: If the sensor is used for security purposes, place it so that it covers all entrances to the room.
To test the coverage area, you can use the "Test" mode in the Mi Home app (available for most models), which allows you to visualize the detection area and adjust the position of the sensor.
β οΈ Note: If the sensor is installed outside (for example, for yard lighting), use models with a protection class. IP65 And above, like the Aqara Outdoor Motion Sensor, which is not designed for temperature and humidity in normal rooms.
Sensitivity adjustment and avoiding false positives
One of the most common problems with motion sensors is that they're false positives, and they can be caused by:
- π Pets (especially cats that jump to a height of 1.5 m).
- π¬οΈ Through or through the curtains (PIR-sensor responds to air temperature fluctuations).
- βοΈ Direct sunlight heating the surface in the coverage area.
To minimize false positives:
- Adjust the sensitivity in the sensor settings (Sensitivity in Mi Home). For rooms with animals, choose Low or Medium.
- Set the Retrigger Interval to 30 to 60 seconds.
- Use a whitelist for security scenarios (e.g., turn off the sensor when a family member is home).
For advanced users, you can set up Mi Home Automation using logical conditions, for example, you can create a rule:
IF (movement detected) AND (time 23:00 to 6:00) AND (all family members are not at home)
Then turn on the siren and send a notification.π‘
If the sensor is triggered by an air conditioner or fan, try redirecting the airflow to the side or installing a physical screen (such as a plastic partition).
Integration with other smart home devices
Xiaomi motion sensors can communicate with a wide range of devices in the Mi Home ecosystem, including:
- π‘ Smart lamps (Yeelight, Philips Hue via Mi Home) β automatically turn on when motion is detected.
- π Alarm (Mi Smart Speaker, Aqara Alarm) β voice alerts or beeps.
- πΉ Xiaomi Mi Home Camera β Beginning recording when motion is detected.
- π‘οΈ Climate equipment β activation of air conditioning or heater in the presence of people.
Example of a comprehensive scenario for the office:
- Motion sensor detects a person β lights and air conditioning.
- If the movement is not fixed within 10 minutes β light goes into 50% brightness mode, the air conditioner switches to economy mode.
- If you do not move for more than 30 minutes, all devices are turned off.
To set up these scenarios, use the Automation section of the Mi Home app. Please note that some third-party devices (such as Philips Hue) require additional integration through the Mi Home Developer Mode or Home Assistant.
π‘
For stable automation, make sure all devices are connected to a single hub (e.g. Xiaomi Gateway 3) and are on the same Zigbee network.
Frequent problems and their solutions
Even if installed correctly, Xiaomi motion sensors may not work properly. Consider typical situations and ways to fix them:
| Problem. | Possible cause | Decision |
|---|---|---|
| Sensor's not responding to movement | Battery or weak signal is out Zigbee/Wi-Fi | Replace the battery, check the distance to the hub/router |
| Persistent false positives | High sensitivity or external interference (draughts, animals) | Reduce sensitivity, move the sensor to another location |
| Sensor shuts off the network. | Hub or firmware problems | Reboot the hub, update the sensor firmware |
| Delay of operation more than 2 seconds | Zigbee Network Overload or Slow Internet | Reduce the number of devices on the network or reconnect the sensor |
If the sensor stopped working after the firmware update, try resetting it to factory settings.
- Remove the battery for 10 seconds.
- Insert the battery back and hold the button on the case for 10-15 seconds until the indicator starts to flash.
- Connect the sensor again through the Mi Home app.
β οΈ Warning: When reset, the sensor will be removed from all automations. Pre-save screenshots of settings or export scripts through Settings β Smart home. β Exports.