How Xiaomi motion sensor works: device, setup and subtleties of use

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:

ModelType of communicationDetection rangeViewing angleAutonomy
Mi Motion SensorZigbee7m120Β°24 months
Aqara Motion Sensor (P1)Zigbee 3.09m170Β°36 months
Mi Home Security Motion SensorWi-Fi (2.4 GHz)10m110Β°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.

πŸ“Š What kind of motion sensor Xiaomi uses?
Mi Motion Sensor
Aqara Motion Sensor
Mi Home Security Motion Sensor
Other
I don't use it.

How the sensor detects movement

The algorithm of the Xiaomi motion sensor can be divided into several stages:

  1. 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.
  2. Noise filtering: The microcontroller analyzes the data, sifting out false positives (e.g., from convection airflows or small animals).
  3. 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).
  4. 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?
PIR-Sensors respond to any heat source, including cats and dogs, and to reduce false positives, you can: 1. Set the sensor higher (at a height of 2-2.5 m), as animals rarely rise this high. 2. Use models with adjustable sensitivity (for example, Aqara Motion Sensor). P1). 3. Set up the delay in the Mi Home application ("Re-detection interval" setting").

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.

  1. Install a hub and connect it to a Wi-Fi network through the Mi Home app.
  2. Put the sensor in pairing mode (usually by holding the button on the body until the indicator flashes).
  3. 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.

  1. Make sure the router is running in the 2.4GHz band (Xiaomi sensors do not support 5GHz).
  2. In the Mi Home app, select China (some models are not available in European firmware).
  3. 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:

  1. Adjust the sensitivity in the sensor settings (Sensitivity in Mi Home). For rooms with animals, choose Low or Medium.
  2. Set the Retrigger Interval to 30 to 60 seconds.
  3. 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:

  1. Motion sensor detects a person β†’ lights and air conditioning.
  2. If the movement is not fixed within 10 minutes β†’ light goes into 50% brightness mode, the air conditioner switches to economy mode.
  3. 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 causeDecision
Sensor's not responding to movementBattery or weak signal is out Zigbee/Wi-FiReplace the battery, check the distance to the hub/router
Persistent false positivesHigh sensitivity or external interference (draughts, animals)Reduce sensitivity, move the sensor to another location
Sensor shuts off the network.Hub or firmware problemsReboot the hub, update the sensor firmware
Delay of operation more than 2 secondsZigbee Network Overload or Slow InternetReduce 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.

  1. Remove the battery for 10 seconds.
  2. Insert the battery back and hold the button on the case for 10-15 seconds until the indicator starts to flash.
  3. 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.

Can I use a Xiaomi motion sensor on the street?
Most standard sensors (such as the Mi Motion Sensor) are not designed for outdoor installation due to lack of protection from moisture and temperature changes. IP65 and operating temperature from -20Β°C +50Β°C.
How to increase the detection range of the sensor?
The range varies by model, but it can be optimized: Set the sensor at a height of 2-2.5 m, which increases the radius of coverage; Use reflective surfaces (e.g., light walls) that amplify the IR signal; Make sure there are no obstacles (furniture, curtains) in the detection area.
Why does the sensor not work with Home Assistant?
To integrate with Home Assistant, you need: Connect the sensor to the Xiaomi Gateway hub. In Home Assistant, add Xiaomi Miio integration and specify IP-If the sensor is not displayed, check that the Mi Home has Developer Mode enabled (in profile settings).
How many sensors can you connect to a single Xiaomi hub?
The theoretical limit for Xiaomi Gateway 3 is up to 32 devices per hub. However, in practice, when connecting more than 20 devices, there may be delays in the Zigbee network.
How to check if the sensor is working?
For diagnosis: Check the indicator on the case - if you detect movement, it should flash. In the Mi Home app, open the sensor event log (Device) β†’ Try a test operation by waving your hand in front of the sensor, and if the indicator doesn't respond, replace the battery or reset the settings.