Connecting Xiaomi motion sensor to the gateway: full instruction with expert advice

Xiaomi’s smart home ecosystem is famous for its ease of device integration, but even here, users are faced with nuances when connecting motion sensors. The main problem is the incompatibility of protocols between old and new gateway models, as well as the features of the Mi Home and Aqara Home branded applications. This article will help avoid typical mistakes, from choosing the right gateway to adjusting automation with the latest firmware updates in 2026.

Many mistakenly believe that any Xiaomi motion sensor will fit any brand gateway.In practice, the Mijia series sensors (e.g., the Mijia series, RTCGQ11LM) They only work with Mi Home gateways. v3, a) Aqara devices (e.g, RTCGQ13LM) They demand an Aqara Hub lock. M2 or E1. We will discuss all combinations, including cross-platform synchronization workarounds, with a focus on setting up detection zones and integrating with Google. Home/Apple HomeKit – These are rarely covered in standard instructions.

Before you start, check out three key points:

  • πŸ”‹ Sensor battery charge – the discharged device will not be detected by the gateway (minimum threshold: 20%).
  • πŸ“Ά Distance between devices – maximum distance for Zigbee: 10 (m) in line of sight (walls reduce radius by 30-50%).
  • πŸ“± The app version - use Mi Home 6.5+ Or Aqara Home 3.2.+ Support for new protocols.
πŸ“Š What kind of Xiaomi gateway do you use?
Mi Home Gateway v3
Aqara Hub M2
Aqara Hub E1
Another gateway
I haven't bought it yet.

1. Compatibility of motion sensors and gateways Xiaomi: table of correspondence

The main mistake of newcomers is to buy a sensor and gateway from different lines. Xiaomi manufactures devices under two brands: Mi Home (Mijia series) and Aqara, which use different data exchange protocols. Below is the current compatibility table for 2026:

Sensor modelSupported locksProtocolFeatures
RTCGQ11LM (Mi Home)Mi Home Gateway v3, Aqara Hub M2 (2.0.7 firmware+)Zigbee 3.0Requires a link to the region of China in Mi Home
RTCGQ13LM (Aqara)Aqara Hub M2, Aqara Hub E1, Mi Home Gateway v3 (narrowly)Zigbee 3.0Supports sensitivity adjustment in 3 levels
MS-C01 (Aqara FP1)Just the Aqara Hub. M2/E1Zigbee 3.0 + MMWaveDetecting presence (not just movement)
VIB-C01 (Aqara)Aqara Hub M2/E1Zigbee 3.0Combined motion sensor + vibration

Note: Mi Home Gateway Gateway v2 (round RGB-It doesn't support the motion sensors of the new series. If you have this model, you'll have to buy a modern gateway or use workarounds through Home Assistant.

⚠️ Note: Xiaomi motion sensors with index CN in the title (e.g, RTCGQ11LM-CN) You may not be able to work in the European Mi Home region, check the labeling before buying or change your account region to "China mainland".

Step-by-step instruction: connecting the sensor to the gateway

The connection process takes no more than 5 minutes if you do the proper preparation.

  1. Set the gateway to the network: πŸ”Œ Connect the gateway to the socket 220V. πŸ“Ά Wait for the blue indicator to flash (connection waiting mode). πŸ“± Add the gateway to the Mi app Home/Aqara Home via Add the device β†’ Locks.
  2. Activate sensor pairing mode: πŸ”„ Press and hold the button on the sensor for 5 seconds (until the red LED flashes). πŸ“² In the app, select Add Device β†’ Sensors. β†’ Motion sensor.
  3. Complete the setup: 🏠 Assign a sensor room in the app. βš™οΈ Adjust sensitivity (recommended value for the corridor: "Average value").

Make sure the gateway is connected to 2.4GHz Wi-Fi|

Check that the sensor removed protective film (blocks the IR sensor)|

Update the lock firmware to the latest version|

Place the sensor at altitude 1.5-2.2 floor-->

If the sensor is not detected:

  • πŸ”„ Reboot the gateway (turn off power for 30 seconds).
  • πŸ“‘ Check for interference – other Zigbee devices (e.g. Yeelight bulbs) can block the signal.
  • πŸ“± Change region in the Mi Home account settings to China (for index sensors) CN).

πŸ’‘

If Xiaomi’s motion sensor is constantly firing falsely, place it away from heat sources (batteries, cookstoves) and direct sunlight.

Setting up detection and sensitivity zones

By default, Xiaomi motion sensors have a viewing angle of 120Β° It's a 7-meter range, but you can adjust these parameters software-wise:

  • 🎯 Detection Zones: You can divide the area into 3 segments and disable unnecessary ones (for example, if the sensor "looks" outside the door).
  • ⏱ Delayed operation: time after which the sensor is ready to detect again (default: 4 seconds).
  • 🌑 Sensitivity threshold: 3 levels (low/medium/high). For pets, choose "low".

For fine tuning:

  1. Open the sensor card in the application.
  2. Go to Settings. β†’ Extended.
  3. Activate Zone Testing mode – the sensor will flash when motion is detected in each zone.
  4. Adjust the position of the sensor physically or turn off unnecessary areas in the app.

Example of optimal settings for different scenarios:

ScriptSensitivityDelay (sec)Active zones
corridorMedium4All 3 zones.
Children's roomLow.8Zones 1 and 2 (exclude the bed)
OfficeTall.2All zones.

πŸ’‘

Xiaomi motion sensors with firmware 2023+ Supports Pet Immunity, activated in sensitivity settings and reduces false positives on cats/dogs weighing up to 20 kg.

Integration with automation: examples of scenarios

The main advantage of motion sensors is triggers for a smart home.-5 Automation that can be customized via Mi Home or Aqara Home:

  • πŸ’‘ Smart lighting: IF the motion sensor is triggered AT turn on the Yeelight lamp at 70% brightness and turn off after 2 minutes without movement
  • 🚨 Security mode: IF the motion sensor is activated and No-Home mode is active to activate the Aqara siren T1 and send a push notification
  • 🌑 Climate control: IF the movement in the bedroom from 22:00 to 7:00 TO set the temperature of the Xiaomi Mi Air Conditioner at 22Β°C

To create automation:

  1. In the app, go to Automation. β†’ Create β†’ Smart scene.
  2. Select the trigger: Motion sensor β†’ Traffic detected.
  3. Add an action (for example, turning on the lamp).
  4. Set the conditions (time, mode, other sensors).

⚠️ Attention: Automation with motion sensors consumes up to 15% of battery power per month. If the sensor is discharged faster than 12 months, check the number of active scenarios and reduce the frequency of the gateway polling (in the gateway settings). β†’ Extended. β†’ Frequency of the survey).

How to get around the 8 automation limit in Mi Home?
In the free version of Mi Home, you can create only 8 active automations. To add more: 1. Use Aqara Home - there is a limit of 32 scripts. 2. Connect the gateway to Home Assistant through the integration of Xiaomi Mi Home. 3. Buy a premium subscription Mi Home (from 99).β‚½/month) which removes the restrictions.

5. Solving typical connection problems

Even with the right setup, users are faced with errors, and here are the most common ways to fix them:

Problem.Possible causeDecision
Sensor not detectable by the gateway.Protocol incompatibility or discharged batteryCheck compatibility with the table in section 1. Replace the battery (CR2450).
Persistent false positivesHigh sensitivity or interference from other devicesReduce sensitivity in the settings. Move the sensor away from the windows.
Sensor deactivates from the lockZigbee signal weak or network congestionReduce the number of devices on a single Zigbee network (maximum 32 per gateway).
Automation is not working.Script conflict or outdated firmwareUpdate the airlock and sensor firmware, check the priority of the scripts.

If the sensor is connected but does not respond to movement:

  • πŸ” Check the installation angle - the optimal slope: 15-30Β° down-ceiling.
  • πŸ“ Make sure the object moves across the sensor beam (not along it).
  • πŸ”„ Reboot the sensor: Remove the battery for 10 seconds, then insert back.

To diagnose problems in Aqara Home, use the built-in tool:

  1. Open the sensor card.
  2. Go to Settings. β†’ Diagnostics.
  3. Press the Connection Test – the application will show the signal level and response delay.

6. Alternative ways of connecting (without a branded gateway)

If you don’t have a Xiaomi gateway, the motion sensor can be integrated into the smart home system in other ways:

  • πŸ–₯ Home Assistant: Zigbee adapter is required (e.g., Zigbee adapter, CC2531 or ConBee II). All sensor models are supported Xiaomi/Aqara. Instructions: Settings β†’ Devices β†’ Add β†’ Zigbee β†’ Select a sensor.
  • πŸ€– Google Home / Apple HomeKit: First connect the sensor to the Xiaomi gateway, then integrate the gateway into Google Home via Works with Google. M2 2.1.3 firmware+.
  • 🌐 Cloud services (IFTTT, Yandex Alice: Create an applet in IFTTT Xiaomi Mi Home trigger. for Alice, use the Xiaomi Smart Home skill".

Example of connection via Home Assistant:

# Fragment of configuration.yaml


zha:




zigbee:




device: /dev/ttyACM0




baudrate: 115200




After the Home Assistant reboot, the sensor will appear in the Devices section.

⚠️ Note: When connecting Xiaomi sensors to third-party hubs (such as Hubitat or SmartThings), alternative software may need to be firmware, which voids the warranty.

7. Update of sensor firmware and gateway

The manufacturer regularly releases updates to fix bugs and add new features to update the firmware:

  • πŸ“² Through the app: Open the gateway or sensor card. If an update is available, a notification will appear. New firmware is available. Click Update and wait until it is completed (don't turn off the power!).
  • πŸ–₯ Manual (for experienced users): Download the firmware from the official website (Support section) β†’ Use the MiHome Firmware Updater for Windows.

Up-to-date versions of firmware (June 2026):

  • Mi Home Gateway v3: 1.5.6_0046 (Added Matter support).
  • Aqara Hub M2: 2.1.3 (Integration with HomeKit).
  • Sensor. RTCGQ13LM: 20230720 (false positives corrected).

After the update:

  • πŸ”„ Reset the gateway and sensor.
  • πŸ“‹ Check the automation work – some scenarios may reset.
  • πŸ” Aqara Home will have a new section Motion Analytics with activity charts.

8. Xiaomi motion sensor comparison: which one to choose in 2026

Xiaomi's range of motion sensors includes more than 10 models, and we selected the 4 best options for different tasks:

ModelPrice (β‚½)FeaturesBetter for you.
RTCGQ11LM1 200Basic model, angle 120Β°, 7m range, compatible with Mi Home v3Corridors, stairs
RTCGQ13LM1 5003 levels of sensitivity, the function "Ignoring animals"Pet homes.
MS-C01 (FP1)3 500MMWave radar + IR, detection of presence (not just movement)Bedrooms, offices.
VIB-C011 800Combo: Movement + vibration + illuminationSecurity systems

For most users, the best choice is β€” RTCGQ13LM: cheaper FP1, It has all the functions that you need, including sensitivity adjustment, and if you want maximum accuracy (for example, for climate control), you should consider it. MS-C01 radar-powered.

When buying, pay attention to:

  • πŸ“¦ Package – there must be a battery in the box CR2450 double-sided.
  • 🏷 Labeling - models with index CN They may not be working in Europe.
  • πŸ”„ Guarantee – official dealers (Xiaomi Store, Svyaznoy) give 12 months.