The smart home system is no longer a fantasy and has become a reality for millions of users, offering comfort and security. A key element of this ecosystem is a motion sensor that can automatically turn on lights, send notifications to a smartphone or start recording a security camera. Devices from Xiaomi and its sub-brands (Aqara, Yeelight) have proven to be reliable and affordable solutions that require minimal effort for initial integration.
However, while simple, the setup process can raise questions for beginners, especially when trying to create complex automations. It is critical to understand that a compatible Gateway is essential for the Zigbee series sensors to work smoothly, while Bluetooth models can work directly with a smartphone but with limited functionality. In this article, we will go into detail all the steps from unpacking to creating advanced scenarios that will make your home truly smart.
Properly adjusting the viewing angle and sensitivity will avoid false positives when light is turned on from a flying fly, and will provide an instant reaction to real movement. You will learn how to choose the optimal place to install, understand the types of connection and understand how to connect a device with voice assistants. PIR-Sensors (passive infrared sensors) will help you to squeeze the most out of the purchased gadget.
Selection of the appropriate model and preparation for installation
Before you start setting up, you need to decide on the type of device, as it depends on the method of connection and the list of available functions. The market offers a wide range of sensors, which are divided by communication protocols: Zigbee, Bluetooth Mesh and classic Wi-Fi. Zigbee-based models (for example, Aqara Motion Sensor) require a hub gateway, but consume minimal energy and work in a common mesh network, increasing the stability of the entire smart home system.
Bluetooth versions like the Xiaomi Motion Sensor 2 can connect directly to the phone for setup, but for remote control and automation, they will also need a Bluetooth Gateway (often built into smart speakers or cameras) gateway. Wi-Fi sensors are less common due to high power consumption, which makes it more common to change batteries, but they work without additional intermediaries.
When choosing a location, you should consider the angle of view, which is usually 170 degrees, and the range of action, up to 7 meters. It is not recommended to install a sensor in front of windows with bright sun or over heating devices, as sudden temperature changes can cause false positives. It is also important to ensure that there is a stable signal at the mounting point, especially if we are talking about Zigbee devices that depend on the quality of communication with the hub.
Most wireless models require a battery such as the CR2032 or CR2450, which is usually included but can be discharged during long-term storage. Before installation, it is recommended to check the charge of the battery and replace it with a new one if necessary to avoid connection problems in the future.
Connection process through the Mi Home application
The main tool for managing the ecosist is the Mi Home app (or Aqara Home for the devices of this brand), which you need to download and install on your smartphone. Before adding a new device, make sure that your account is registered and the region in the application settings corresponds to the region selected when setting up the gateway (usually โChinaโ or โRussia / Europeโ, depending on the version of the device). mismatch regions are a common reason why gadgets are not displayed in the list.
The pairing process starts with opening the app's home screen and selecting the device add button. If you have a gateway, the best way to add a sensor through it is to click on the gateway icon, select Add a child, and follow the instructions on the screen, at which point you need to activate the pairing mode on the sensor itself, usually by quickly pressing the reset button or by removing and installing the battery.
โ๏ธ Checklist of connection
When you search for a device, keep your smartphone and sensor close to the gateway to provide a better signal. The app will automatically identify the sensor model and assign it a name that can be changed to a more understandable one, such as "Sensor in the hallway" or "Move at the front door." Once successfully added, the device will appear in the list of available gadgets, and you can see its status in real time.
โ ๏ธ Note: If the application is looking for a device for a long time and can not find it, try to bring the sensor close to the hub (at a distance). 10-20 (cm) and repeat the procedure. Sometimes it takes several attempts to quickly press the reset button.
Setting up scenarios and automation
The power of Xiaomiโs ecosystem is to create scenarios that allow devices to interact with each other without human intervention. The basic โIf... Then...โ scenario is set up in the โAutomationโ or โScenariosโ section of the app, and you select the condition (the trigger is motion detection) and the action that should follow that event.
Popular scenarios include turning on the lights when you enter a room, sending a push notification to your phone when youโre driving in the absence of your owners, or running a video on your camera, and combining conditions with time constraints (like only working at night) or the state of other devices (only if someone is at home) creates a flexible safety and comfort system.
| Type of script | Condition (Trigger) | Action. | Additional parameters |
|---|---|---|---|
| Night-nighter | Traffic detected. | Turn on the smart lamp (10%) | Only 23:00 to 7:00. |
| Guards. | Traffic detected. | Send a notification | Only when the No Home regime |
| Bathroom | Traffic detected. | Insert the hood | Turn it off in 15 minutes. |
| Security | Traffic detected. | Turn on the siren | With active alarms |
For more complex tasks, use logic operators "E" or "OR." For example, the light in the hallway can only tan if the motion sensor is triggered and the light sensor indicates that the room is dark, such combinations save energy and make the behavior of the system more natural and predictable for residents.
๐ก
Use the shutdown delay in light scenarios to keep the lamp from blinking if you just walked through the sensor area rather than staying in the room.
Fine adjustment of sensitivity and intervals
In advanced settings (available when clicking on the sensor icon), it is possible to adjust the parameters of its operation, which is especially important for rooms with complex geometry. The sensitivity parameter determines what change in infrared radiation the sensor will respond to. High sensitivity is useful for large rooms, but can lead to a response to pets if they pass too close to the device.
The re-detection interval (or inactivity interval) is the time that must pass after the last recorded movement before the sensor again sends a signal of the event. The standard value is often 1-2 minutes, but it can be reduced to 15 seconds or increased to several minutes. This helps to avoid "storming events" when the application is flooded with notifications when a person is in the visual area for a long time.
You should also look at Night Mode, or integration with a light sensor if the model supports it, which allows you to turn off your reaction to movement during the day when the room is already light, saving battery power and preventing the unnecessary action of smart lamps. Some models allow you to calibrate the angle of installation through the application, although physical positioning remains a more effective method.
โ ๏ธ Warning: Do not set a minimum re-detection interval if the sensor is used for security. The attacker can move in jerks, getting into the "blind" time intervals between the signals.
Integration with voice assistants and third-party services
Xiaomi ecosystem is great friends with popular voice assistants such as Yandex Alice, Google Assistant and Apple HomeKit (for devices with the appropriate labeling). To connect to Yandex, you need to link the Mi Home account in the Yandex application, after which the sensors will appear in the list of smart home devices, this allows you to voice request status or use the sensor in Yandex scenarios.
Integration with Apple HomeKit requires an Aqara gateway with support for this technology or the use of a special software bridge (for example, Homebridge) on a computer or Raspberry Pi. After adding to the โHomeโ on the iPhone, the motion sensor becomes available for control through Siri and can participate in the most complex automation of iOS, beyond the capabilities of the native application.
How does integration with HomeKit work?
Using aggregator platforms like Home Assistant or MajorDoMo allows access to on-premises device management without the cloud and allows for unlimited complex logical chains, but this requires a dedicated server (like an old laptop or single board computer) and some technical knowledge to configure the integrations.
Diagnostics and troubleshooting
Despite the reliability, sometimes users face problems when the sensor stops responding or displays as "Offline" in the application. The first thing to do is check the battery charge - even if the indicator shows a full charge, under load the voltage can drop dramatically, causing communication failures. Replacing a quality battery from a known manufacturer often solves the problem instantly.
If the connection is a problem, check the distance between the sensor and the gateway. Walls, mirrors and metal structures can significantly weaken the signal Zigbee or Bluetooth. In such cases, it helps to install an intermediate device (for example, a smart socket or lamp) that will act as a repeater of the signal, expanding the network.
In case of persistent false positives, wipe the sensor lens with a soft dry cloth โ dust and spider webs can distort infrared radiation. Also make sure that the sensor is not aimed at heat sources or oscillating objects (swinging curtains, running fan) that can simulate the movement of a thermal object.
๐ก
90% of Xiaomi motion sensor problems are solved by replacing the battery with a quality one or moving the device closer to the gateway.