Xiaomi motion sensor: device, working principle and finesse of settings

Xiaomi's motion sensors have become an integral part of the smart home ecosystem through a combination of affordable prices, compact sizes and wide integration capabilities, used to automate lighting, security systems and even control climate equipment. But how exactly do they work? Why do some models respond to movement through walls and others only in line of sight? And why does the Aqara sensor work more often than the classic Mi Motion Sensor?

In this article, we will discuss the principle of infrared (PIR) The sensors that underpin all Xiaomi motion sensors will analyze the technical specifications of popular models (including the latest Mi Motion Sensor 2 from 2023), and show how to install and adjust them correctly to avoid false positives. Particular attention will be paid to hidden settings in the Mi Home application, which the manufacturer does not advertise, but which radically change the behavior of the device.

How the motion sensor is arranged: physics and technology

Xiaomi motion sensors are based on a passive infrared sensor (PIR) — a device that responds to changes in thermal radiation in the coverage area, unlike active sensors (for example, radar or ultrasonic), PIR-The sensors do not emit signals, but only detect heat waves 8-14 microns long, which emits the human body.

Structurally, the sensor consists of:

  • 🔹 Fresnel lenses are a multifaceted plastic lens that focuses infrared radiation on a sensor, and it defines the detection zone (e.g., 120).° Mi Motion Sensor or 170° Aqara FP1).
  • 🔹 A pyroelectric crystal, a material that generates an electric charge when heated, is commonly used in Xiaomi sensors. LiTaO3 (lithium).
  • 🔹 Signal amplifier – a chip that filters interference and amplifies weak heat signals.
  • 🔹 Microcontroller – processes data and sends a signal to the hub (for example, Xiaomi Gateway or Aqara Hub).

It is important to understand that PIR-The sensor does not respond to movement, but to changes in the background temperature, for example, if a person is standing still in the detection zone, the sensor may stop “seeing” after 1-2 minutes (time depends on the model). That is why smart homes often combine motion sensors with presence sensors (for example, Aqara). FP2), They use millimeter waves to track accurately.

📊 What is the Xiaomi motion sensor you have installed?
Mi Motion Sensor (First Generation)
Mi Motion Sensor 2
Aqara Motion Sensor
Aqara FP1/FP2
Other (write in the comments)

Xiaomi has several lines of motion sensors, differing in range, viewing angle and supported protocols. Below is a comparative table of key models (currently for 2026):

ModelDetection rangeViewing angleProtocol of communicationFeaturesCompatibility
Mi Motion Sensor (1st generation)7m120°Zigbee (2.4 GHz)Basic model, sensitive to direct sunlightMi Home, Home Assistant
Mi Motion Sensor 2 (2023)9m140°Zigbee 3.0Improved lens, fewer false positivesMi Home, Aqara Hub
Aqara Motion Sensor7m170°ZigbeeCompletes with ceiling mount, supports scripts in Aqara AppAqara Hub, HomeKit (via hub)
Aqara FP16m140°Zigbee 3.0Presence sensor (millimeter wave) detects breathAqara Hub M2 newer
Aqara FP28m160°Zigbee 3.0Hybrid sensor (PIR + mm waves, supports gesturesAqara Hub E1, Home Assistant

Note that the range is specified for ideal conditions (room temperature, no obstacles) and in reality it can be reduced by 30-50% due to:

  • 🌡️ Temperature changes - if the room is hot (above 35)°C) or cold (below 10)°C), sensitivity PIR-sensor.
  • ☀️ Direct sunlight – infrared radiation from a window can cause false positives.
  • 🪟 Glass or mirror surfaces reflect thermal radiation, creating "dead zones".
  • 🐕 Pet models without Pet Immunity will respond to cats and dogs weighing more than 10 kg.

⚠️ Warning: First-generation Mi Motion Sensors do not support Zigbee 3.0, so they cannot be connected to Aqara Hub hubs M2 Compatibility requires the original Xiaomi Gateway or firmware. Zigbee2MQTT.

Connection scheme and integration into the Xiaomi ecosystem

To make the motion sensor work, it needs to:

  1. Physically connect to the hub (via Zigbee).
  2. Add to the app (Mi Home or Aqara).
  3. Set up automation (scenes).

Let’s look at the Mi Motion Sensor 2:

Remove the battery (CR2450) and insert back in for activation|

Hold the button on the sensor for 5 seconds until the indicator flashes.|

Open Mi Home → «Add the device» → «Sensors» → «Motion sensor»|

Place the sensor at a height of 2-2.5 m from the floor (optimal viewing angle)|

Set the sensitivity in the device menu (by default – “Average»)-->

Once you add a sensor to your app, you can use it in automation, for example:

  • 💡 Smart lighting: turn on the Yeelight lamp when detecting movement in the dark.
  • 🚨 Security system: Send a notification to your phone if the sensor is triggered in your absence.
  • 🌬️ Climate control: turn on the fan if there is someone in the room and the temperature is above 25°C.

For advanced users, integration via Home Assistant or Node-RED is available. In this case, the sensor can be programmed to:

  • 📊 Logistics of events (for example, how many times someone has entered the closet).
  • 🔄 Cross-platform scenarios (e.g., enable Xiaomi Camera camera when sensor is triggered).
  • ⏱️ Delays in operation (e.g., turning off lights 5 minutes after last movement).

💡

If the sensor is not added to the Mi Home, try resetting it to factory settings: hold the 10 second button until the indicator flashes quickly (3 times).

Fine tuning: how to avoid false positives

One of the most common problems with Xiaomi motion sensors is false positives, which can occur due to:

  • 🌬️ Sketch or air conditioning (air movement changes background temperature).
  • 🔥 Heating appliances (batteries, heaters).
  • 🐦 Birds or insects flying close to the sensor.
  • 🚗 Vibrations from cars passing outside the window (if the sensor is installed on the wall facing the road).

You can solve these problems by using hidden settings in the Mi Home app (not available in all regions):

  1. Open the sensor card in the application.
  2. Go to Settings. → Additional (or Advanced in English version).
  3. Activate Pet Mode (if you have pets).
  4. Set the Retrigger Interval delay for 30 to 60 seconds.
  5. Turn off the High Sensitivity option if the sensor is triggered by small movements.

For Aqara models (such as the Aqara Motion Sensor), additional options are available in the Aqara App:

  • 🔄 "Night" mode - the sensor works only in the dark.
  • 🛡️ Insensitivity zone – you can exclude the lower part of the detection zone (useful if the sensor is triggered on passing cars outside the window).
  • ⏳ Inactivity timer – automatically turns off the sensor after a predetermined time (e.g. overnight).

⚠️ Warning: First-generation Mi Motion Sensor doesn't have any animal protection hardware. If you have a cat or dog, use Aqara FP1 Pet Immunity or set the sensor at a height of at least 2.5 m.

How to check the detection area of the sensor without special equipment?
Take a dryer or a fan, and direct the flow of warm air to different parts of the room, and the sensor should only fire when the air enters its viewing area, and if it responds to air movement outside the desired zone, reduce sensitivity or change the angle of installation.

Power and autonomy: how much does the sensor work without replacing the battery

All Xiaomi motion sensors are powered by type batteries CR2450 (3 B) Their service life depends on the:

  • 🔋 Response frequencies – the more often the sensor detects movement, the faster the battery discharges.
  • 📶 Hub communication quality – if the signal is weak, the sensor spends more energy on repeated attempts to transmit data.
  • 🌡️ Ambient temperatures - at sub-zero temperatures, the battery capacity drops.

Estimated battery life:

ModelAverage working hoursNotes
Mi Motion Sensor (1st generation)1.5-2 yearsFast discharge with frequent triggers (more than 100 per day)
Mi Motion Sensor 22–3 yearsOptimized energy consumption, supports sleep patterns
Aqara Motion Sensor2.25 yearsThe consumption depends on the sensitivity settings
Aqara FP1/FP21-1.5 yearsHigher power consumption due to millimeter radar

To extend the life of the battery:

  • ⚡ Turn off unnecessary notifications in the app (such as low charge).
  • 🔄 Reduce the frequency of the sensor survey in the hub settings (if used) Zigbee2MQTT).
  • 🛠️ Use batteries of well-known brands (Duracell, Energizer), as cheap analogues can leak.

💡

If the sensor has stopped responding to motion, first check the battery – even at a charge level of 20% in the application, the device may not work properly.

Comparison with peers: why Xiaomi and not other brands?

In the smart home market, motion sensors are offered by many manufacturers: Philips Hue, Samsung SmartThings, Tuya. Why Xiaomi remains one of the leaders?

ParameterXiaomi/AqaraPhilips HueSamsung SmartThingsTuya
Price (2026)800–2500 ₽3500–5000 ₽2000–3500 ₽500–1500 ₽
ProtocolZigbeeZigbee (requires Hue Bridge hub)Zigbee/Z-WaveWi-Fi/Zigbee
Range.9m5m7m8m
IntegrationHome, Home Assistant, HomeKit (via Hub)Just Philip Hue.SmartThings, Google HomeTuya Smart, Alexa
FeaturesLow price, wide viewing angle, script supportHigh reliability, but expensiveGood ecosystem, but limited compatibilityCheap but often false positives

The main advantages of Xiaomi:

  • 💰 Price – 2-3 times cheaper than analogues from Philips or Samsung.
  • 🔄 Flexibility – sensors work with most smart homes Zigbee2MQTT or Home Assistant.
  • 📦 Ecosystem – easily combined with other Xiaomi devices (lamps, sockets, cameras).

Disadvantages:

  • 📶 Hub dependency – without Xiaomi Gateway or Aqara Hub sensors don’t work.
  • 🔧 Configuration difficulties – some options are hidden in the “additional” menu.
  • 🐌 Reaction delays – large Zigbee networks can cause lags of up to 1-2 seconds.

Frequent faults and ways to eliminate them

Even the most reliable motion sensors can fail, and let's look at the typical problems and their solutions.

Problem.Possible causeDecision
Sensor's not responding to movementBattery discharged, wrong installation angle, obstacles in the viewing areaReplace the battery, check the location, remove obstacles
False positivesHigh sensitivity, drafts, heating appliances nearbyReduce sensitivity, move the sensor, activate Pet Mode
Sensor shuts off from hubWeak Zigbee signal, interference from Wi-Fi or microwaveMove the hub closer, change the Zigbee channel in the settings
Delayed response (more than 2 seconds)Zigbee’s overloaded network, too many devices on one hubBreak up your devices into multiple hubs or use Zigbee repetitors
The indicator flashes red, but the sensor is not workingFirmware failure, incompatibility with the hubReset the sensor to factory settings, update the hub firmware

If the sensor stopped working after updating the hub firmware, try:

  1. Remove the device from the application.
  2. Reset the sensor (hold the button for 10 seconds).
  3. Add it again by manually selecting the model (sometimes the autodefinition works incorrectly).

⚠️ Note: Xiaomi sensors with Zigbee protocol are not compatible with Z-Wave-based hubs (like Fibaro Home Center). Zigbee2MQTT Raspberry Pi.

FAQ: Answers to Frequent Questions

Can I use a Xiaomi motion sensor on the street?
No, all models. Xiaomi/Aqara designed for internal use (range of operating temperatures: from 0°C 40°When installed outside, the sensor will falsely fire due to temperature changes, rain or wind. IP65 (For example, Tuya ZY-M100).
How to increase the detection range of the sensor?
The range depends on the design of the Fresnel lens and you can't increase it programmatically, but you can: You can set the sensor at a higher altitude (for example, 2.5 m instead of 2 m) - this will expand the view area. You can use reflective surfaces (for example, a mirror) to redirect infrared radiation. Replace with a longer range model (e.g. Aqara) FP2 Mi Motion Sensor instead).
Why does the sensor work on pets, even if Pet Mode is on?
Xiaomi's Pet Mode feature in sensors only works for animals up to 10-15 kg. If you have a large dog (like a Labrador), the sensor will respond to its movement. Solutions: Set the sensor higher (at 2.5-3 m) so that the animal does not fall into the field of view. Use Aqara FP1 — It analyzes the shape of the object and ignores the animals. Set up latency automation (e.g., turn on the lights only if the movement is fixed for longer than 5 seconds).
Can you connect Xiaomi’s motion sensor directly to your phone without a hub?
No, all the motion sensors. Xiaomi/Aqara They use the Zigbee protocol, which requires a hub (gateway), without which the device will not be able to transfer data to the application. Alternative options: Buy a Xiaomi Gateway or Aqara Hub (cost from the user base). 2000 ₽). Use a Zigbee adapter (e.g. Sonoff Zigbee) 3.0 USB Dongle Plus) and set up Home Assistant. Select a sensor with Wi-Fi (like the Tuya Motion Sensor), but note that it will consume more power.
How to reset the Xiaomi motion sensor to factory settings?
Reset: Remove the battery from the sensor. Press and hold the button on the device. Put the battery back in without releasing the button. Hold the button for another 10 seconds until the indicator blinks 3 times. Then the sensor is removed from the application, and it can be added again.