Xiaomi motion sensor installation: from unpacking to smart home integration

Xiaomi’s motion sensors have become an integral part of modern smart home systems, combining affordable price, compact dimensions and wide-ranging functionality, enabling automating lighting, triggering motion alarms, or even running complex scenarios via Mi Home or Apple HomeKit (for compatible models), but many users face difficulties already during the installation phase, from choosing the optimal installation location to synchronizing with a hub or router.

In this article, we will look at the entire process, from unpacking the sensor to fine-tuning it, taking into account the nuances of different models (Mi Motion Sensor 2, Aqara Motion Sensor, Mi Home Security Motion Sensor).

1.Selecting Xiaomi motion sensor model: what to buy in 2026

Xiaomi’s motion sensor lineup and its Aqara sub-brand includes more than 5 models, differing in communication protocol, viewing angle and ecosystem compatibility.

  • πŸ“Ά Communication protocol: Zigbee (requires hub) Mi/Aqara Gateway or Wi-Fi (works directly with the router) Zigbee is better for stability, it is less prone to interference.
  • πŸ‘οΈ Angle of view: from 120Β° 170Β°. 120 corridors are fine.Β°, for large rooms - 170Β°.
  • πŸ”‹ Power: batteries CR2450 (lasts for 2 years; or USB-C (rarely, for example, in Aqara FP2).
  • 🏠 Compatibility: Check your ecosystem support (Mi Home, Home Assistant, Apple Home).

The most popular models in 2026:

ModelProtocolViewing angleFeaturesPrice (β‰ˆ)
Xiaomi Mi Motion Sensor 2Zigbee 3.0170Β°Compact, works with Mi Home and Home Assistant1 200 β‚½
Aqara Motion Sensor (FP1)Zigbee 3.0170Β°Animal Protection, Apple HomeKit Support1 800 β‚½
Aqara FP2Wi-Fi 2.4 GHz140Β° + PIR + mm-wave radarHigh accuracy, no false positives, power from USB-C3 500 β‚½
Xiaomi Home Security Motion SensorZigbee 3.0120Β°Budget option, only for Mi Home800 β‚½

If you want maximum reliability, choose Aqara. FP2 β€” he uses a combination PIR-It's a sensor and an mm-wave radar, which eliminates false positives from drafts or pets. For simple tasks (lights on in the corridor) you can use Mi Motion Sensor 2.

πŸ“Š What kind of motion sensor Xiaomi uses?
Mi Motion Sensor 2
Aqara FP1
Aqara FP2
Another Zigbee sensor
Wi-Fi sensor
I haven't bought it yet.

Preparation for installation: tools and location selection

Before installing the motion sensor, check three key points:

  1. Hub presence (if Zigbee sensor) without Mi/Aqara Gateway or alternatives (e.g. Home Assistant with a Zigbee2MQTT) the device will not work.
  2. Network coverage quality. It is important for Zigbee that there are no thick walls or metal obstacles between the sensor and the hub. For Wi-Fi, check the signal strength at the installation site (at least 70%).
  3. If the sensor is battery-powered, prepare spares. CR2450. For models with USB-C (for example, Aqara FP2) think about the cable laying.

The best places to install:

  • πŸšͺ Corridors and stairs: at an altitude of 2-2.5 m, an angle of inclination of 15-30Β° This ensures maximum coverage of the traffic area.
  • πŸ’‘ Room angles: The sensor must β€œsee” the front door and key areas (such as a sofa or desktop).
  • 🚿 Bathrooms: only waterproof models (e.g. Aqara) FP1 classy IP54). Keep away from the sources of steam.
  • πŸš— Garages/Subways: Avoid areas with direct sunlight – they can cause false positives.

Critical error: mounting a sensor against windows or air conditioners. PIR-sensor, leading to chaotic response.

Make sure the sensor is compatible with your ecosystem|Check the cover. Zigbee/Wi-Fi site|Prepare tools (drill, bilateral scotch, level)|Choose a place with minimal interference (draughts, sun)|Install the Mi app Home/Aqara/Home Assistant-->

Physical installation: fastening and power connection

Most Xiaomi motion sensors come with double-sided tape 3M And we'll look at both of these mountings:

Method 1: Scotch fastening (without drilling)

  1. Clean the surface of dust and fat with an alcohol napkin.
  2. Remove the protective film from the tape on the back of the sensor.
  3. Press the device against the wall for 30 seconds for a secure fixation.
  4. Check the angle of inclination with the level (optimum - 15-30)Β° downward).

Method 2: Fixing on screws (for reliability)

  1. Apply the sensor to the wall and mark the mounting holes with a pencil.
  2. Drill holes with a drill (diameter 2-3 mm) and insert dowels.
  3. Lock the sensor with screws from the kit. Don't pull it over - the case is plastic!

For models with USB-C (for example, Aqara FP2):

  • πŸ”Œ Use a cable no longer than 1.5 m long to avoid voltage losses.
  • πŸ“‘ Lay the cable along the plinth or in the cable channel.
  • ⚑ Connect to the power supply. 5V/1A (Do not use β€œcharges” from smartphones – they can give power surges).

⚠️ Warning: If the sensor is powered by batteries, do not install it in places with temperatures below 0°C or higher than 40°C. This reduces the life of the batteries by 2-3 times.

4. Connect to the ecosystem: Mi Home, Aqara, Home Assistant

The process of adding a sensor depends on the protocol and the ecosystem, and let's look at three popular options:

Option 1: Connect to Mi Home (Zigbee)

  1. Open the Mi Home app and go to Devices β†’ Add the device.
  2. Select the Sensors category and find your model (e.g. Mi Motion Sensor 2).
  3. Press and hold the button on the sensor (usually 3-5 seconds) until the indicator blinks.
  4. Follow the instructions in the app. If the sensor is not located, check: Distance to the hub (maximum 10 m without obstacles). No interference from other Zigbee devices (for example, IKEA Tradfri).

Option 2: Connect to Aqara Home (Zigbee)

The algorithm is similar to Mi Home, but with nuances:

  • πŸ“± In the Aqara Home app, select Add Device β†’ Motion sensor.
  • πŸ”„ If the sensor was previously paired with another hub, reset its settings: hold the button for 10 seconds until flashing yellow.
  • 🏠 To integrate with Apple HomeKit after adding to Aqara Home, go to Device Settings β†’ HomeKit and scan it QR-code.

Option 3: Connect to Home Assistant (Zigbee2MQTT or ZHA)

For advanced users:

  1. Make sure you have the setup. Zigbee2MQTT or ZHA (through HUSBZB-1 or CC2531).
  2. Transfer the sensor to pairing mode (hold the button until blinking).
  3. In Home Assistant, go to Settings β†’ Devices and services β†’ Add the device.
  4. Once the sensor is detected, assign it an area (area) and a room (room).

What to do if the sensor is not connected?
1. Check the Hub firmware version (update via Mi Home) β†’ Hub settings β†’ Software Update). 2. Make sure there are no other Zigbee devices in pairing mode (they can block the channel). 3. Try resetting the sensor: remove the battery for 10 seconds, then insert back and hold the 5 seconds button. 4. If Home Assistant is used, check the log Zigbee2MQTT error-proof (e.g., "Device not supported" means an outdated version of the sensor firmware).

5.Sensitivity settings and automation scenarios

By default, Xiaomi motion sensors have an average sensitivity, which can lead to false positives. Adjust the settings depending on the task:

Setup in Mi Home/Aqara Home

  • πŸ“Š Sensitivity: Select High (for detecting small movements), Medium (optimally for home) or Low (for street) in the device card).
  • ⏱️ Delayed operation: sets the time during which the sensor ignores repeated movements (from 5 to 300 seconds). 30 seconds for lighting, 5 seconds for alarm.
  • πŸ• Animal filter: in Aqara FP1/FP2 Turn on the option to ignore animals if the pet is less than the weight of the pet. 10 kilogram.

Examples of automation

ScriptConditionsAction.Example of devices
Smart lightingMovement + time (18:00-23:00)Turn on the lamp for 2 minutes.Yeelight, Philips Hue
Security alarmsMovement + no-home regimeΒ»Turn on the siren, send a notificationAqara Hub, Mi Home Alarm
Saving energyNo movement for 30 minutesTurn off the sockets with household appliancesXiaomi Smart Plug

To create scripts in Mi Home:

  1. Go to Automation. β†’ Create β†’ If.
  2. Select a motion sensor and condition (e.g., Motion Detected).
  3. Add an action (e.g., Enable Yeelight).
  4. Save the script and test it out.

⚠️ Warning: If the sensor is used for alarms, do not set the delay of more than 10 seconds.

πŸ’‘

To test the sensor sensitivity, use the Log mode in Mi Home, which shows all the positives in the last 24 hours, which will help you to find the optimal settings.

Typical problems and their solution

Even when installed correctly, Xiaomi’s motion sensors may not work properly, and here are the most common problems and ways to fix them:

Problem 1: The sensor is not responding to motion

  • πŸ”‹ Check the battery (Mi Home shows the level). If below 20%, replace the element. CR2450.
  • πŸ“‘ Make sure the sensor is in the hub area. For the test, bring it closer (1-2 meters).
  • πŸ”„ Reboot the hub: disconnect it from power for 10 seconds.
  • πŸ› οΈ Check the angle of view – it is possible that the sensor is pointed at the wall or ceiling.

Problem 2: False positives

  • 🌬️ Eliminate drafts: Close windows or move the sensor to another location.
  • β˜€οΈ If direct sunlight hits the sensor, use a visor or change the angle of inclination.
  • 🐢 For models without an animal filter (Mi Motion Sensor 2), set the sensor above 2.5 m to reduce the response to cats and dogs.
  • πŸ“‰ Reduce sensitivity in device settings.

Problem 3: The sensor is disconnected from the network

  • πŸ”„ For Zigbee sensors, check for interference from Wi-Fi routers (channels 11-14 often overlap with Zigbee.
  • πŸ”‹ If the sensor is battery-powered, replace them – even at the shown charge level of 30%, the device can turn off.
  • πŸ“‘ For Wi-Fi sensors (Aqara) FP2): Check the stability of the 2.4 GHz network (5 GHz not supported!).

πŸ’‘

If Xiaomi's motion sensor freezes periodically, reset it to factory settings (hold the 10 seconds button) and reconnect it again, which solves the problem 80 percent of the time.

7. Integration with other systems: Home Assistant, Apple HomeKit, Yandex Alice

Xiaomi motion sensors can be used not only in native ecosystems, but also in third-party platforms.

Home Assistant (via Home Assistant) Zigbee2MQTT or ZHA)

For full control of the sensor:

  1. Make sure the sensor is connected to Zigbee2MQTT or ZHA.
  2. In the configuration file configuration.yaml add:
binary_sensor:


- platform: mqtt




state_topic: "zigbee2mqtt/[Friendly_Name]/occupancy"




name: "Motion sensor (living room)"




device_class: motion

  1. Create automation through Automations in the Home Assistant interface.

Apple HomeKit (Aqara only) FP1/FP2)

For integration:

  1. Add the sensor to the Aqara Home app.
  2. Go to the device settings and select Add to HomeKit.
  3. Scan it. QR-code from the sensor body in the Apple Home app.
  4. Configure scripts through the Home app (for example, turning on lights when moving).

Alice Yandex (via Mi Home or Home Assistant)

Xiaomi doesn’t officially support direct integration with Alice, but there are workarounds:

  • πŸ”— Through Mi Home: connect your Mi Home account to Yandex.Smart Home in Alice Settings.
  • 🏠 Home Assistant: Use the Yandex Smart Home component and export the sensor as a switch.

Limitation: Voice commands for motion sensors are only supported in scenarios, for example, you can't say "Alice, show sensor status," but you can create a rule "If you're moving, turn on the lights."

FAQ: Frequent questions about Xiaomi motion sensors

Can I use a Xiaomi motion sensor on the street?
Most of the models are Mi Motion Sensor 2, Aqara FP1) protection-class IP54, However, for open spaces, it is better to choose specialized street sensors (for example, Aqara Outdoor Motion Sensor with a veranda). IP65). When installed outdoors: Use a silicone case to protect against rain. point the sensor downward at an angle of 45Β°, Check the batteries every 3 months - low temperatures reduce their lifespan.
How to increase the range of the Zigbee sensor?
If the sensor is located at the edge of the hub coverage, use the following methods: Add a Zigbee router: devices permanently connected to the network (for example, Xiaomi Smart Plug or Aqara Wall Switch) act as repeaters of the signal. Optimize the network topology: Place the hub in the middle of the house, not in the corner. Use directional antennas. Mi/Aqara Gateway can be purchased with amplification antenna 5 Change the Zigbee channel: in the hub settings, select a channel that does not overlap with your Wi-Fi (for example, 20 or 25). Use the Zigbee Mapper app (available for Home Assistant) for the coverage test).
How many motion sensors can you connect to a single Xiaomi hub?
Theoretical limit for Mi/Aqara Gateway β€” 128 In practice, however, it is recommended not to exceed 30–40 sensors per hub. Causes of limitations: πŸ“‘ Network load: Each sensor sends data to each 1–5 second-on. πŸ”‹ Hub power: with a large number of devices, an external power source may be required (for example, USB 5V/2A). ⏱️ Delays: when 50+ The system response can be slowed down to 1–2 If you need more sensors, divide them between multiple hubs or use Home Assistant with multiple Zigbee coordinators.
How to reset the Xiaomi motion sensor to factory settings?
To reset, follow the following steps: Remove the battery (if any) or turn off the power. USB-C. Hold the button on the sensor (usually one) for 10-15 seconds. The indicator should flash yellow (for Aqara) or red (for Mi Home). Put the battery back in or plug the power in. Once reset, the sensor will be ready to reconnect. If the indicator doesn’t flash, repeat the procedure or check the battery contacts.
Can I connect the Xiaomi motion sensor without a hub?
Wi-Fi only models (e.g. Aqara) FP2) They can work without a hub, connecting directly to the router. 2, Aqara FP1) Requires a Coordinator to be present: Mi/Aqara Gateway – Official Solution from Xiaomi Home Assistant with Zigbee Adapter (HUSBZB-1, CC2652P). Zigbee2MQTT on a Raspberry Pi or NAS. Without a Zigbee hub, the sensor will be useless – it will not be able to transmit data to the network.