Xiaomi Mi Motion Sensor: How the motion sensor works and how to configure it

Xiaomi Mi Motion Sensor is one of the most popular smart home devices that allows you to automate lighting, security systems and other scenarios. 32ร—32ร—10 mm), this gadget is equipped with an infrared sensor that can record movements at a distance to the 7 yard-angle 170ยฐ. But how does it work, what technologies are involved, and how to integrate it into the Mi Home ecosystem or third-party platforms like Home Assistant?

In this article, we will discuss the sensorโ€™s operation, its technical nuances (including polling frequency, reaction time and power consumption), and give step-by-step instructions for setting up, focusing on common user errors, such as why the sensor works on pets or why it โ€œfalls asleepโ€ 30 seconds after activation. If you plan to use the sensor for security purposes or for light automation, here you will find unique recommendations for optimal location and sensitivity calibration.

Technical characteristics of the sensor Xiaomi Mi Motion Sensor

Before diving into the settings, it is important to understand the hardware base of the device. RTCGQ01LM or RTCGQ11LM International version built on the basis PIR-It's a sensor that responds to changes in infrared radiation in the coverage area, and unlike active sensors (such as radar), it doesn't emit signals itself, but passively listens to the thermal radiation of objects.

Key parameters of the device:

  • ๐Ÿ”‹ Power: battery CR2450 (3V), service life up to 2 years in standard use.
  • ๐Ÿ“ Detection range: up to 7 meters (real efficiency depends on the height of the installation and ambient temperature).
  • ๐Ÿ‘๏ธ Angle of view: 170ยฐ horizontally and 15ยฐ vertically.
  • โฑ๏ธ Reaction time: 0.5-1 seconds per movement, delay re-activation - 4 seconds.
  • ๐Ÿ“ก Communication protocol: Zigbee 3.0 (only works with Xiaomi Mi Gateway or Aqara Hub hubs).
  • ๐ŸŒก๏ธ Operating temperature: from -10ยฐC +50ยฐC (at a temperature below 0)ยฐC. False positives are possible).

Importantly, the sensor doesn't have built-in memory, it only transmits movement data when the event is recorded, which means that if the Mi Gateway is disconnected from the network, the alert information will be lost, and the device does not support direct Wi-Fi or Bluetooth, which limits its use without a Zigbee hub.

ParameterMeaningNote
ModelRTCGQ01LM / RTCGQ11LMChinese and International versions respectively
Frequency of the survey1 time in 60 seconds (on standby)When motion is detected, instantaneous signaling
Energy consumption~0.1 mA in standby mode, up to 10 mA when activatedBattery discharges faster with frequent triggers
Protection from animalsAbsent.May work on cats/dogs by weight >5 kg
๐Ÿ“Š Where do you plan to use Xiaomiโ€™s motion sensor?
For lighting automation
Security system
For climate management
Other

Principle of work PIR-Sensor: Why the sensor responds to the motion

The Mi Motion Sensor is based on a pyroelectric crystal that generates an electric charge when the temperature changes in its field of view. When a person or animal moves within the range of the sensor, their thermal radiation (usually 36-37)ยฐC for a human) enters the sensor through a Fresnel lens, a special optics that divides space into segments.

The lens focuses infrared radiation on the pyroelectric element, creating a map of thermal changes. If the temperature changes dramatically in one of the segments (for example, a person passed by), the sensor detects this as movement and sends a signal to the gateway.

  • ๐Ÿ”ฅ The sensor responds to temperature contrast โ€“ if the person and background have the same temperature (for example, in a hot room), the response may not be effective.
  • โ„๏ธ At low temperatures (below 10)ยฐC) sensitivity decreases as the difference between background and object decreases.
  • ๐Ÿ• Pets can cause false positives if they weigh more than 5 kg (thermal radiation of a dog/cat is comparable to that of a human).

An interesting nuance: Xiaomi's sensor has a built-in delay timer (30 seconds default) that, after first activating, falls asleep for that time, ignoring new movements, designed to save battery, but can be uncomfortable in scenarios where constant monitoring is required (e.g., in security systems), and can only be changed through third-party firmware or Home Assistant.

Why doesnโ€™t the sensor work on slow motion?
PIR-The sensor can only detect sudden changes in infrared radiation, and if you're moving very slowly (like crawling) or if you're in the detection zone for a long time without moving, the sensor may not respond.

How to connect the sensor to Mi Home: step-by-step instructions

To work Mi Motion Sensor must have a Zigbee gateway โ€“ Xiaomi Mi Gateway (any version) or Aqara Hub. Connection takes no more than 5 minutes, but there are nuances that are often forgotten.

Set the battery up. CR2450 (polarity is indicated on the body)

Download the Mi Home app (version no lower than 6.0)

Connect the Mi Gateway to the 2.4 GHz network

Place the sensor in the area of the gateway (maximum 10-15 meters without obstacles)-->

Follow the algorithm further:

  1. Open Mi Home, go to Devices section โ†’ Add the device.
  2. Select the Sensors category, then search for the Mi Motion Sensor.
  3. Press and hold the button on the sensor (about 3 seconds) until the blue light flashes.
  4. Wait for the pairing to be completed (the โ€œDevice addedโ€ notification will appear in the app).

Once connected, the sensor will appear in the main list of devices, and by default it will appear as a โ€œMotion Sensorโ€ with the ability to configure:

  • ๐Ÿ”” Notifications โ€“ Enable push notifications when triggered.
  • ๐Ÿ”„ Automation โ€“ create scenarios (e.g. turn on lights when moving).
  • โš™๏ธ Sensitivity โ€“ in new versions of the gateway firmware, the option to adjust the trigger threshold (low / medium / high) appeared).

โš ๏ธ Warning: If the sensor doesn't connect, check the gateway firmware version.Old versions (below) 1.4.1_179) may not support RTCGQ11LM. Update the gateway through Settings โ†’ Firmware update.

Integration with Home Assistant: Extended features

If Mi Home isnโ€™t enough, you can connect the sensor to Home Assistant, an open platform for smart homes.

  • ๐Ÿ“Š Customize the delays (e.g. 5 minutes instead of 30 seconds).
  • ๐Ÿ”— Create complex automations with conditions (e.g., โ€œonly lights at nightยป).
  • ๐Ÿ› ๏ธ Use the sensor in scenarios with other devices (not just Xiaomi).

Integration will require:

  1. Install the Xiaomi Miio component in Home Assistant (via Configuration.yaml).
  2. Receive a gateway token using the miio-cli utility or via the Mi Home web interface (instruction below).
  3. Add the sensor as an entity to the configuration.

Example of code for configuration.yaml:

sensor:


- platform: mqtt




name: "Xiaomi Motion Sensor"




state_topic: "zigbee2mqtt/MiMotionSensor"




availability_topic: "zigbee2mqtt/bridge/state"




value_template: "{{ value_json.occupancy }}"

To get the gateway token:

  1. In Mi Home, go to the gateway settings โ†’ About this device. โ†’ Click on the icon "three dotsยป โ†’ Public access.
  2. Copy Token (a string of 32 characters).
  3. Insert it into the Home Assistant Configuration:
xiaomi_aqara:


gateways:




- key: YOUR_TOKEN_HERE

โš ๏ธ Warning: After the gateway firmware update, the token may reset.Save it backup!

๐Ÿ’ก

If the sensor in Home Assistant is displayed as "unavailable", check the settings of the Zigbee channel in the gateway. Channels 11-14 can conflict with Wi-Fi at 2.4 GHz. Switch the gateway to channel 15-20 via Mi Home.

Typical problems and their solutions

Even when you set it up correctly, users are faced with common errors.

1.The sensor is not responding to motion

Possible causes:

  • ๐Ÿ”‹ Battery discharged (check the voltage with the tester - should be at least 2.8 V).
  • ๐Ÿ“ก Weak Zigbee signal (move the gateway closer or add a repeater, such as Xiaomi Smart Plug).
  • โ˜€๏ธ Direct sunlight or heating devices in the zone of action (sensor โ€œblindโ€ from overheating).

2. False positives

Most often caused by:

  • ๐Ÿ• Pets (solution โ€“ set the sensor above 1.5m or use Aqara) FP1 pet-proof).
  • ๐Ÿ’จ By draughts or curtain movement (change the angle of installation).
  • ๐ŸŒก๏ธ Acute temperature changes (for example, from the air conditioner).

3.The sensor "falls asleep" and does not send data

This is normal behavior for energy saving, but if the delay is too long:

  • Update the lock firmware to the latest version.
  • In Home Assistant, set the settings. illuminance_timeout (default 60 seconds).
Problem.Reason.Decision
The indicator flashes red.Low battery chargeReplace the battery. CR2450
The sensor is not added to the Mi HomeIncompatible lock firmwareUpdate the gateway to the version 1.4.1_179 higher
Delayed response >1 secondInterference on the Zigbee networkMove the gateway or add a repeater

๐Ÿ’ก

If the sensor stopped working after the Mi Home update, try removing it from the app and adding it again, often solving synchronization problems.

Optimal placement of the sensor: schemes and recommendations

The Mi Motion Sensor's efficiency is 70% dependent on the right location.

  • ๐Ÿ“ Height of installation: 2-2.5 meters from the floor (to cover the maximum area).
  • ๐Ÿšช Viewing angle: point the sensor parallel to the wall, not to the ceiling (otherwise the detection zone will narrow).
  • ๐ŸŒณ Obstacles: Avoid installation behind glass, curtains or furniture โ€“ infrared radiation does not pass through them.
  • ๐Ÿ”„ Cover zones: for large rooms, use 2-3 sensors with 30 zones overlap%.

Examples of accommodation for different scenarios:

ScriptRecommended locationNote
Security of the front doorOn the wall opposite the door, 2 m highInclination angle 10-15ยฐ downward
Automation of lighting in the corridorIn the corner of the ceiling (if the height) >2.5 m m m m)Use 2 sensors to cover the entire corridor
Traffic control in childrenOn the wall above the bed, 1.5 m highSensitivity is โ€œlowโ€ to avoid false positives

To test the coverage area, use the debugging mode in Mi Home:

  1. Open the sensor card in the application.
  2. Click on the icon ยซโš™๏ธยป โ†’ Settings โ†’ Sensor test.
  3. Move around the room โ€“ in real time, the sensor response will be displayed.

Comparison with analogues: Aqara, Philips Hue, Samsung SmartThings

Xiaomi Mi Motion Sensor is not the only smart home option. Consider its pros and cons against the backdrop of competitors:

ModelPrice (โ‰ˆ)PlusesCons
Xiaomi Mi Motion Sensor800โ€“1200 โ‚ฝCompact, low power consumption, integration with Mi HomeNo protection from animals, Zigbee Gateway addiction
Aqara FP12500โ€“3000 โ‚ฝRadar sensor (no animal response), Matter supportHigh price, large dimensions
Philips Hue Motion Sensor3500โ€“4000 โ‚ฝBuilt-in light sensor, work without a gateway (via Bluetooth)Requires the Hue Bridge for full functionality
Samsung SmartThings Motion Sensor2000โ€“2500 โ‚ฝSupport for Z-Wave and Zigbee, wide viewing angle (180)ยฐ)Complicated setup, short battery life

When to choose Xiaomi:

  • ๐Ÿ’ฐ Budget solution for basic automation.
  • ๐Ÿ  There is already a Xiaomi ecosystem (gateway, lamps, sockets).
  • ๐Ÿ› ๏ธ Willingness to put up with restrictions (no protection from animals, lock dependency).

When to look for an alternative:

  • ๐Ÿถ Filter false positives from pets (select Aqara) FP1).
  • ๐ŸŒ Jobs without a hub are required (consider Philips Hue with Bluetooth).
  • ๐Ÿ”ง Advanced settings are needed (e.g. adjustment of delay time).

๐Ÿ’ก

Xiaomi Mi Motion Sensor is the best choice for the Xiaomi ecosystem, but if you need professional features (animal protection, Matter, Z-Wave), look for Aqara or Samsung.

FAQ: Frequent questions about Xiaomi motion sensor

Can I use the sensor without the Xiaomi gateway?
No, Mi Motion Sensor only works on the Zigbee protocol, so a gateway (Mi Gateway or Aqara Hub) is required.The alternative is to flash the sensor with custom firmware (such as Tasmota), but this voids the warranty and requires soldering skills.
How to increase battery life?
To the battery CR2450 Reduce sensor sensitivity in Mi Home settings. Avoid settings in places with frequent false positives (such as near a fan). Use premium batteries (such as Panasonic or Duracell). With intensive use (more than 100 positives per day), the battery will run out in 6-8 months.
Why does the sensor work on a cat but not on a human?
This is due to the difference in heat radiation: cats and dogs have a higher body temperature (38-39).ยฐC) than humans (36.6)ยฐC), so the sensor can respond more actively to them. To reduce false positives: Set the sensor higher (at 2-2.5 m). Direct it so that the area of view does not get a place where the animal sleeps or often visits. FP1 โ€” It has a built-in radar module that filters animal movements.
Can I connect the sensor to Google Home or Alexa?
There is no direct integration, but there are workarounds: Connect the sensor to the Home Assistant, then link it to the Google Assistant via the Google Home Integration plugin. IFTTT For creating applets (for example, when the sensor is triggered, send a command to Google Home). Officially, Xiaomi does not support direct work with voice assistants without intermediaries.
How to reset the sensor to factory settings?
To reset the Mi Motion Sensor: Remove the battery for 10 seconds. Put the battery back in and immediately press and hold the button on the case for 10-15 seconds until the indicator flashes yellow. The sensor will be reset and ready for a new connection. If the indicator does not blink, repeat the procedure or check the battery charge.