Contents
- Preparation for connection: what will be needed
- Physical installation of the sensor: location selection and installation
- Step-by-step connection through Mi Home/Aqara Home
- Setting up sensitivity and automation scenarios
- Typical errors and their solutions
- Integration with Google Home, Home Assistant and other systems
- Security and Privacy: What You Need to Know
Xiaomiβs motion sensors (Mi Home and Aqara series) have become an integral part of todayβs smart home systems, allowing you to automate lighting, security systems and even climate control, responding to the presence of a person in the room. However, many users face difficulties already at the first connection stage: the device is not detected by the application, constantly disconnects or works with delays. This article will help you understand all the nuances from choosing the optimal installation location to fine-tuning scenarios in Mi Home or Aqara Home.
It is important to understand that Xiaomi motion sensors come in two types: Zigbee support (requires a hub) and Wi-Fi (work directly).For example, Xiaomi Mi Motion Sensor 2 uses the Zigbee 3.0 protocol and necessarily needs a gateway (Aqara Hub). M2, Mi Smart Home Gateway, while the old Xiaomi Mi Home Security Motion Sensor could connect over Wi-Fi, weβll look at both options and also explain how to avoid common synchronization errors.
Preparation for connection: what will be needed
Before you start installing, make sure you have everything you need. The Zigbee sensors (most of the current models) require a gateway, without which the device simply cannot transmit data to the network. If you don't already have a hub, note:
- πΉ Aqara Hub M2 β Supports up to 128 devices, works with HomeKit
- πΉ Mi Smart Home Gateway 3 is a budget option, but without HomeKit support
- πΉ Xiaomi Mi Smart Multimode Gateway β compatible with Zigbee, Bluetooth and Wi-Fi
Wi-Fi sensors (such as older models) do not require a gateway, but they are less stable and drain the battery faster.
- π± Smartphone on Android 6.0+ or iOS 12.0+ with Mi Home (version 6.0 and higher) or Aqara Home installed.
- π Battery CR2450 (complete with a sensor, but sometimes discharged).
- πΆ A stable Internet connection (for synchronization with the cloud).
- π§ Screwdriver (if you plan to attach the sensor to the wall).
β οΈ Note: If you use an iPhone, make sure that the settings allow notifications for the Mi Home app and Bluetooth access. On Android, additionally check the resolution for the exact location - without it, the sensor may not be determined.
If you already have other Xiaomi devices in the ecosystem (such as light bulbs or sockets), adding a motion sensor will take no more than 5 minutes, otherwise you will have to configure the gateway first, a process we will also describe below.
Physical installation of the sensor: location selection and installation
The sensorβs positioning is responsible for 80 percent of its efficiency.Most Xiaomi models have 170 viewing angles.Β°, But the real detection area is reduced to 120.Β° when installed at a height of more than 2.5 meters:
- π Height: 2β2.2 meters (at the level of the door jamb).
- π Inclination angle: 15-30Β° downwards.
- πͺ Control area: no more than 7 meters (for Aqara Motion Sensor) P1 β 9m).
- π‘οΈ Temperature: from -10Β°C +50Β°C (avoid installation near batteries or air conditioners).
| Sensor model | Max. range. | Viewing angle | Recommended height | Type of attachment |
|---|---|---|---|---|
| Xiaomi Mi Motion Sensor 2 | 7m | 170Β° | 2.5 m | Double-sided scotch/screws |
| Aqara Motion Sensor P1 | 9m | 170Β° | 2-3 m | Magnetic anchorage |
| Mi Home Security Motion Sensor (Wi-Fi) | 5 m m | 120Β° | 1.5β2 m | Sticky ribbon |
Avoid installation in the following places:
- π‘ Right in front of windows β sunlight can cause false positives.
- π Near fans or air conditioners β air movement interferes with the infrared sensor.
- π In the area of access of pets (if the weight of the pet) > 10 kg, the sensor will respond).
- πͺ Opposite doors opening outwards - a draft can trigger trigger triggers.
π‘
If the sensor is used for security alarms, set it so that it covers all possible paths of penetration (windows, doors). To save energy in "Home" mode, set the schedule of disconnection through the application.
Use double-sided tape from the kit or screw (if the wall is not plastered). Magnetic models (Aqara) P1) You can easily remove it for transfer. After mounting, check the stability, the sensor should not stagger, otherwise it will cause false positives.
Step-by-step connection through Mi Home/Aqara Home
The connection process varies depending on the protocol (Zigbee or Wi-Fi) and the application used.
Option 1: Connecting a Zigbee sensor (via the gateway)
Install and configure the gateway (Aqara/Mi Gateway)|Connect the gateway to the Wi-Fi network 2.4 GHz|Update the gateway firmware in the app|Insert the battery into the sensor (remove the protective film)|Place the sensor in the zone of the gateway (max) 10 )-->
1. Open the Mi Home or Aqara Home app and go to Devices section β Add the device.
2. Select category Sensors β Motion sensor (or enter the model name manually).
3. Press Add and follow the instructions on the screen. When the system asks to activate the sensor, press the button on the body three times (most models have it on the side).
4. Wait until the synchronization is completed (it will take 10β30 seconds). If the process is delayed, check:
- π Battery inserted correctly (contacts not oxidized).
- πΆ The distance to the lock does not exceed 10 meters (walls reduce the range of action).
- π Gateway connected to 2.4 GHz network (Zigbee does not work with 5 GHz).
Option 2: Connecting a Wi-Fi sensor (without a gateway)
1. Turn on the sensor by holding the power button for 5 seconds (the indicator should flash blue).
2.In the Mi Home app, select Add Device β Sensors. β [Your model].
3. Connect to the sensorβs temporary Wi-Fi network (the name will start at the Xiaomi_).
4. Return to the application and wait for the setup to be completed. If the process is interrupted, restart the sensor (hold the 10 seconds button).
β οΈ Note: Xiaomi Wi-Fi sensors do not support work in networks with hidden SSID or enterprise authentication (e.g. in offices) and they may conflict with TP-Link routers in mode 11n Only β in this case, switch the router to mode 11b/g/n mixed.
Once you've successfully connected, the sensor will appear in the main menu of the app, and you can now start setting the parameters.
Setting up sensitivity and automation scenarios
By default, Xiaomiβs motion sensor has standard settings that are rarely suitable for specific tasks, such as high sensitivity in the hallway, and minimal sensitivity in the bedroom, so as not to work on pets.
Open the sensor card in the application and go to Settings β Detection options. Options are available here:
- π Sensitivity: Low/Mediternary/High (it is recommended to start with medium).
- β±οΈ Delayed operation: 5-300 seconds (time during which the sensor ignores repeated movements).
- π Night mode: turns off the sensor in the dark (useful for street models).
- π Interview interval: how often the sensor sends data to the gateway (a value of 1 second drains the battery faster).
How to check your current sensitivity?
To create automatic scripts, go to Automation and click Add. Examples of useful rules:
- Lighting: If the motion sensor is triggered β switch on the Xiaomi Yeelight lamp.
- Security: If traffic is detected at night β Turn on the siren and send a push notification.
- Climate control: If there is no movement for 30 minutes β turn off.
For advanced users, you can set up via Yandex Alice or Google Assistant, for example, you can voice activate the No-Home mode, which will turn off all motion sensors except security.
π‘
The more sensitive the sensor, the faster the battery discharges.Optimum balance for home use: Average sensitivity + 30 seconds delay.
Typical errors and their solutions
Even after a successful connection, the sensor may not work properly, so let's look at some of the most common problems and how to fix them.
| Problem. | Possible cause | Decision |
|---|---|---|
| The sensor is not defined by the application | Battery discharged or incorrectly inserted | Check the polarity (+/-) And replace the battery with a new one. CR2450 |
| Persistent false positives | High sensitivity or interference from the sun/ventilator | Reduce sensitivity or change the installation angle |
| The sensor is shut down after 1-2 days | Weak Zigbee signal or conflict with Wi-Fi channel | Move the gateway closer or change Wi-Fi to 1, 6 or 11 |
| Delayed response >5 seconds | Overloaded gateway or weak Internet | Restart the gateway and check the network speed (min 2 Mbps) |
If the sensor periodically disappears from the network, check:
- πΆ Zigbee Signal Level: Open the Gateway in the Aqara Home app β Network status. If the signal <50%, Move the sensor closer.
- π Battery charge: at level <20% The sensor may be switched off. Replace the power supply.
- π Interference from other devices: microwaves, wireless headphones and 2.4GHz cameras can block the signal.
To reset the sensor to factory settings, hold the button on the case for 10-15 seconds until you flash a red LED. After that, repeat the connection process.
Integration with Google Home, Home Assistant and other systems
Xiaomi motion sensors can be integrated into third-party smart home ecosystems, and letβs look at the most popular options.
1. Connect to Google Home / Google Assistant
1. Make sure your Mi Home account is linked to the same email as Google Home.
2.In the Google Home app, click Add β The device β Works with Google.
3. Find Mi Home on the list and log in.
4. Select the motion sensor in the list of available devices.
You can now use voice commands like, "OK Google, turn on the lights in the hallway if there's traffic."
2.Integration with Home Assistant
To connect via Zigbee:
- Install the component ZHA (Zigbee Home Automation or deCONZ.
- Connect the Aqara gateway to the Home Assistant via USB-adapter (e.g, CC2531).
- Add the sensor to the configuration file: sensor: - platform: zha device_id: your_device_id_here
For Wi-Fi sensors, use the Xiaomi Miio component:
sensor:
- platform: miio
host: 192.168.1.100 # IP- sensor address
Token: YOUR_TOKEN # Get it through Mi Home Token Extractor3. Sync with Apple HomeKit
Aqara sensors only (e.g. Aqara Motion Sensor) P1) They support HomeKit directly:
- Open the Aqara Home app.
- Go to Gateway Settings. β HomeKit.
- Scan it. QR-code from the gateway body in the Apple Home app.
β οΈ Note: When integrated with Home Assistant or HomeKit, some sensor features (such as delay settings) may become unavailable in the original Mi Home app.
Security and Privacy: What You Need to Know
Xiaomi's motion sensors are feeding data to the company's cloud, raising questions about privacy.
- π Encryption: All data is transmitted by protocol AES-128 (for Zigbee, and TLS 1.2 (for Wi-Fi).
- π Data storage: Motion logs are stored on Xiaomi servers in Singapore or Germany (depending on the region of the account).
- π± Third party access: When integrated with Google Home or Alice, data may be shared with partners.
To minimize the risks:
- Use local scripts (without cloud) through Home Assistant.
- Turn off Cloud Sync in the gateway settings (a feature available in Aqara Home).
- Regularly update the sensor and gateway firmware (in the About Device menu) β Update of the PO).
If you are concerned about data breaches, consider alternatives:
- πΉ Aqara (same manufacturer but with better data localization in Europe).
- πΉ Philips Hue Motion Sensor (without the cloud, but more expensive).
- πΉ Sonoff SNZB-03 (Zigbee, open protocol).
π‘
For complete anonymity, use sensors with support Zigbee2MQTT β This will allow you to manage the device without the Xiaomi cloud, through a local server.