How to connect the motion sensor Xiaomi: full instruction

Integrating motion sensors into the smart home ecosystem significantly improves home comfort and security. Xiaomi sensors are famous for their autonomy and stable operation, but the initial setup often raises questions for beginners. Proper installation ensures that lighting or alarm scenarios are triggered instantly.

The pairing process takes only a few minutes, if you follow the algorithm: you need a smartphone with the Mi Home or Aqara Home app installed, and the sensor itself with the insulation plug removed. It's important to understand that different models may require different gateways or communication protocols.

In this article, we'll look at everything from the choice of installation site to the debugging of complex logic chains. ZigBee technology, which is used in most devices, provides low power consumption and high range inside the apartment. Let's start to study the process in detail.

Preparation of equipment and choice of firmware version

Before you start installing, you need to make sure you have all the necessary components. The main control center is a smartphone, which should be installed in advance with the Mi Home app. The version of the application should be up to date, since older builds may not support new encryption protocols.

The choice of the device version is particularly important, as it determines the choice of the server in the application, and the global versions run through servers outside of China, while the Chinese require switching the region.

  • πŸ“± Smartphone with Android 5.0+ or iOS 11.0+ and Bluetooth enabled.
  • πŸ“‘ Xiaomi account ID (pre-registered).
  • πŸ”‹ Motion sensor with battery installed CR2032.
  • 🌐 Stable 2.4GHz Wi-Fi connection for phone.

⚠️ Note: If you purchase a device labeled "China Version", you will have to change the region in the Mi Home app settings to "China". Global versions may not connect to the Chinese server without changing the firmware.

Check the integrity of the sensor case. There should be a sticker on the back. QR-ZigBee requires a gateway to connect to the Internet, unless it's a Bluetooth version of the sensor. Make sure the gateway is connected to the network and it's on a blue or green light.

πŸ“Š What is your version of the Xiaomi sensor?
Global (Global)
Chinese (CN)
Bluetooth Mesh
I don't know, I'll buy any.

Connection process through the Mi Home application

Launch the app and log in to your account. In the upper right corner, click on the plus to add a new device. The system will offer automatic search for nearby devices via Bluetooth.

If the automatic search didn’t produce results, select the Smart Home category and find your sensor in the list. For Mijia Motion Sensor 2 or Aqara models, the names may differ, so it’s better to use keyword search.

β˜‘οΈ Checklist before pairing

Done: 0 / 4

Once you select the model, you will start the search process, which is when you activate the pairing mode on the device itself, and then press and hold the round button on the case for 5-7 seconds until the indicator flashes blue.

The app will detect the device and request confirmation. Click "Next" and wait until the installation is complete. Successful connection is accompanied by a voice message (if the gateway supports voiceover) or the appearance of the device icon on the home screen.

πŸ’‘

If the sensor is not located, try to bring it close to the ZigBee gateway. the distance at the initial setting should not exceed 30-50 cm.

Setting sensitivity and delay timers

Once you've successfully added to the system, you need to adjust your operating parameters. Go to the device card and select "Settings" where you can find the basic settings that affect false positives.

Sensitivity determines what kind of IR change the sensor is responding to, and high sensitivity allows you to notice small movements, but can respond to pets or curtain fluctuations.

ParameterMeaningDescription of the impact
SensitivityHigh/Mediocre/LowRange and accuracy of reaction to movement
Waiting time1 sec to 60 minInterval before re-operation
Night mode.On/offThe sensor only works in the dark.

The delay timer (or waiting time) is a critical parameter that determines how many seconds after the last movement that you've recorded, the sensor will be active again, and if you set it too low, the light can blink if you stay in the room for a long time.

⚠️ Warning: Do not set minimum waiting times if you plan to use a sensor to control the light in the hallway.The optimal value is 15 to 30 seconds so that the lights do not go out when you just stop.

How does an IR sensor work?
The sensor doesn't respond to the movement of objects, it responds to the change in thermal radiation, so if the temperature of the human body is equal to the temperature of the environment, the sensor may not work.

Creating Automations and Scenarios

The sensor itself only captures the event, and in order for it to be useful, you need to create a script in the Autonomy or Scenarios section, and the logic of the construction is simple: "If (condition) β†’ That (action)".

For example, you can set the nightlight to turn on when driving in the hallway at night, select the condition "Motion sensor detected movement" and add a time limit "Only from 23:00 to 06:00".

  • 🏠 Turning on the main light in the hallway when entering the house.
  • 🚨 Sending push notifications to the phone when driving in the absence of the owners.
  • πŸ’‘ Robot vacuum cleaner launch as everyone left home.

It is important to consider that some activities are performed locally through the gateway, while others require the cloud. For maximum response speed, try to use local scenarios, if your gateway supports it.

πŸ’‘

Local scenarios are faster and work even when the internet is off, unlike cloud scenarios, which rely on Xiaomi servers.

Connection problems and their solution

The most common problem is that the device is not added to the list, which may be due to a battery being discharged or too far away from the gateway, and replace the battery with a new one, even if the old one seems to work.

Another common mistake is "Device is busy" or connection timeout, in which case a full reset of the sensor will help, find a reset hole (usually next to the button) and press it with a paper clip for 10 seconds.

If the sensor periodically loses communication, check the Wi-Fi channel load. Although ZigBee operates on a different frequency, severe interference can affect the gateway. Try reconfiguring the router or moving the gateway closer to the center of the apartment.

⚠️ Warning: Do not place the motion sensor in the corners of the room or behind furniture.The viewing angle is 170 degrees, but any obstacles create "dead zones" where the sensor is blind.

Frequent Questions and Answers (FAQ)

Can you use the Xiaomi sensor without the internet?
Basic functions, such as turning on lights through a gateway, can work locally if the gateway supports stand-alone operation, but setting up, notifying the phone, and controlling from another network require an active Internet connection.
What is the range of the motion sensor?
The maximum detection range is about 7 meters, provided that the viewing angle is right, and in reality, the effective zone is often smaller due to furniture and layout.
Does the sensor work with Google Home or Yandex Alice?
Yes, through account integration, you can add "Mi Home" to your Yandex or Google Home app and log in, and then you can get the devices on your smart home list.
Why does the sensor work at night without movement?
This can be caused by insects flying near the sensor, or by sudden temperature changes from the air conditioner. Try to reduce sensitivity or change the installation site.