Xiaomiβs motion sensors (Aqara, Mi Home, Yeelight series) have become an integral part of smart homes due to their accuracy and affordability. However, many users are faced with false positives β the device responds to pets, drafts or even light fluctuations β a problem that not only irritates but also shortens battery life, making the sensor work idle.
In this article, we will discuss 7 proven ways to reduce the sensitivity of the Xiaomi motion sensor β from basic settings in the application to advanced methods like firmware alternative software. You will learn how to calibrate the device to specific conditions (for example, for a corridor with a cat or street lighting), what parameters affect the accuracy of the operation, and what to do if standard settings do not help. RTCGQ11LM, MCCGQ11LM, WXKG11LM other popular versions.
1. Basic settings in the Mi application Home/Aqara
The first thing to try is the built-in calibration tools in official apps. Most Xiaomi sensors support sensitivity adjustment right from the interface, but not all users know where to look for these options.
For Aqara models (e.g, RTCGQ11LM):
- Open the Aqara Home app.
- Go to the Devices. β [Your sensor] β Settings (βοΈ).
- Find Sensitivity or the Response Threshold (in some firmware hidden under Additional settings).
- Move the slider to the left to reduce sensitivity.Recommended value to start with β 50-70%.
For Mi Home sensors (e.g, MCCGQ11LM):
- π± Go to Profile. β Settings β Developer Mode (if the option is hidden, tap 5 times according to the application version).
- π Enable Show hidden device settings.
- ποΈ Return to the sensor and find a new Advanced section where you can configure Detection Delay and Sensitivity.
π‘
If your app doesnβt have a sensitivity slider, try updating the sensor firmware through Settings. β Software Update: New versions often add hidden options.
Important: after changing the settings, reboot the sensor (remove and insert the battery) - this will reset the settings cache, WXKG11LM) do not support software sensitivity adjustments, they will require hardware techniques (see Section 4).
2. Optimization of the sensor location
Often the problem of false positives is solved by the correct placement of the device. Xiaomi sensors use PIR-Sensors (passive infrared) that respond to changes in thermal radiation, if the device is directed at a heat source (battery, window with the sun) or is in the zone of drafts, it will fire randomly.
Accommodation rules:
- πͺ Install the sensor at a height of 2.0-2.5 m from the floor β this is the optimal zone for detecting a person, but outside the reach of pets.
- π Avoid directing the sensor to air conditioners, heaters, aquariums - they create thermal interference.
- π¬οΈ Do not mount the device near vents or frequently opened doors (draughts may trigger a trigger).
- π¦ For outdoor sensors (such as Xiaomi Mi Outdoor Sensor), use direct sunlight visors.
If you can't move the sensor, try narrowing down the angle of view with a homemade cardboard or plastic screen. RTCGQ11LM You can close part of the Fresnel lens (white hemisphere on the front panel) with opaque tape, leaving only the desired sector open.
β οΈ Warning: Do not close the sensor completely, as this may cause the device to overheat, and avoid materials that reflect infrared radiation (such as aluminum foil).
3. setup of delay response (Debounce Time)
Many false positives occur because of too short a delay between motion detections. By default, Xiaomi sensors send a signal every 5-10 seconds if the movement continues. This leads to "rattling" - multiple notifications in a short period of time.
How to increase the delay:
- In annex Mi Home/Aqara Go to the sensor settings.
- Find the Delayed Time or Retrigger Interval option.
- Set the value of 30-60 seconds (maximum depends on the model).
- Save the settings and test the sensor.
For advanced users, if your app doesnβt have this option, you can change the latency through automation, for example, in Home Assistant or Node-RED, add a condition:
trigger:
platform: state
entity_id: binary_sensor.motion_sensor
to: 'on'
for:
hours: 0
minutes: 0
seconds: 30 # 30 seconds delayπ‘
Increased delay of response to 30+ Reduces false signals by 40-60% without loss of functionality.
Please note: some sensors (for example, WXKG11LM) In this case, only hardware modification or firmware replacement will help (see section 6).
Hardware modifications: screen and filters
If software methods fail, you can physically modify the sensor to reduce its sensitivity, a method that is suitable for users willing to disassemble the device (the warranty will be lost!).
Materials required:
- π§ Small cross screwdriver (to open the body).
- π Black tape or shrink tube (diameter 5-10 mm).
- π Smartphone Loop or Macro Lens (for accurate operation).
- π§΄ Alcohol wipes (for cleaning the lens).
Step-by-step:
Disassemble the body, carefully slapping the latches with a screwdriver|Find the Fresnel lens (white hemisphere) and sensor PIR beneath|Stick black tape on the edges of the lens, leaving the central sector open (30β50%)|Collect the body and test the sensor for sensitivity-->
For street sensors like the Xiaomi Mi Outdoor Motion Sensor, you can use an IR filter, a piece of tinted film that reduces the penetration of sunlight: 3Mβ’ Sun Control Window Film (density 15-20%).
β οΈ Warning: After modification, the sensor may be worse at detecting movement in the dark. If the device is used for security purposes, test it in night mode with the lights on.
5. Use of automation to filter signals
If the sensor is still falsely triggered but you donβt want to modify it, set up the smart home level signal filtering, which can be done in Home Assistant, Node-RED, or even the standard Mi Home app (via scripts).
Example of automation in Home Assistant to ignore short-term positives:
automation:
alias: "Filtration of false positives of the motion sensor"
trigger:
platform: state
entity_id: binary_sensor.motion_sensor
to: 'on'
condition:
condition: template
value_template: "{{ trigger.to_state.last_changed - trigger.from_state.last_changed > timedelta(seconds=5) }}"
action:
service: light.turn_on
entity_id: light.corridor_lightExplanation of the code:
- π Automation only works if the sensor stays in the 'on' state for longer than 5 seconds.
- π« Short-term signals (such as from a fly) are ignored.
- β‘ Additionally, you can add a time condition (for example, turn off the sensor during the day).
For the Mi Home app:
- Create a new scenario (automation) β +).
- Select the trigger motion sensor.
- Add the Time condition (for example, from 22:00 to 6:00, if the day of operation is not necessary).
- In action, specify the 30 seconds delay before turning on the light.
How to check the effectiveness of automation?
6. firmware of alternative software (Tasmota, ESPHome)
For power users, the most radical way to do this is to replace standard firmware with custom firmware, like Tasmota or ESPHome, which gives you complete control over the sensor parameters, including:
- π Accurate sensitivity adjustment PIR-sensor (PirThreshold).
- β±οΈ Flexible Delay (PirDelay).
- π Noise filtering (PirNoiseFilter).
- π‘οΈ Disabling the temperature sensor (if it interferes with the temperature sensor).
Instructions for firmware Tasmota:
- Download the firmware Tasmota (version for the ESP8266).
- Connect the sensor to the computer through USB-TTL Adapter (you need to sell wires to the contacts) TX, RX, GND, 3.3V).
- Run the firmware through esptool: esptool.py --port /dev/ttyUSB0 write_flash 0x0 tasmota.bin
- After firmware, connect to the Wi-Fi access point tasmota-XXXX and configure the settings in the web interface.
Example configuration for ESPHome (Yaml file):
binary_sensor:
- platform: gpio
pin:
number: GPIO13
mode: INPUT_PULLUP
inverted: True
name: "Motion sensor"
device_class: motion
filters:
- delayed_off: 30s # 30 Seconds Delay
- lambda: "return x && (id(last_trigger) == 0 || (millis() - id(last_trigger) > 5000));"
on_press:
then:
- lambda: "id(last_trigger) = millis();"β οΈ Attention: Custom firmware voids the warranty and may cause the sensor to fail if the error occurs. Before the procedure, make a backup of the original firmware command: esptool.py --port /dev/ttyUSB0 read_flash 0x0 0x100000 backup.bin
Replacement of the sensor with a model with adjustable sensitivity
If none of the methods worked, itβs possible your Xiaomi sensor just doesnβt fit your conditions.In this case, consider alternative models with improved settings:
| Model | Sensitivity | Viewing angle | Range. | Features |
|---|---|---|---|---|
| Aqara FP1 | Regulated (3 levels) | 120Β° | 7m | HomeKit support, protection from animals |
| Xiaomi Mi Motion Sensor 2 (RTCGQ11LM) | Fixed (medium) | 170Β° | 6m | Low energy consumption, no regulation |
| Yeelight Motion Sensor | Adjustable (in annex) | 110Β° | 5 m m | Integration with Yeelight lamps |
| Aqara FP2 | Regulated + AI filtering | 140Β° | 8m | Recognises humans/animals, Matter |
For street use, the best choice is Aqara. FP2 β It's equipped with a recognition algorithm that ignores animals and plant fluctuations. If you want maximum flexibility, look for Shelly Motion or Sonoff sensors. SNZB-03, Supporting Tasmota firmware out of the box".
Before buying, check compatibility with your ecosystem (Mi Home, Home Assistant, Apple HomeKit). FP1 Works with HomeKit, but requires Aqara Hub for full integration.