Modern home automation systems have become a standard of comfort for select enthusiasts, one of the most useful and easy-to-implement scenarios is automatic lighting activated when driving. Xiaomi Mijia Night Light Sensor 2 is a compact device that can instantly transform the space of an hallway, corridor or bathroom.
Unlike its predecessors, the second version of the device has an improved recognition algorithm and a more energy-efficient communication protocol. Connecting the sensor requires a certain sequence of actions to ensure stable operation in the ecosystem of the smart home.
In this article, we will analyze in detail all the stages of integrating the gadget into the Mi Home network, consider the nuances of working with the Zigbee protocol and answer frequent questions of users. You will learn not only to turn on the device, but also to configure complex automation scenarios.
Technical features and preparation for installation
Before you start pairing, you need to understand the architecture of the device. Mijia Night Light Sensor 2 runs on the Zigbee 3.0 protocol, which means that you can not directly connect to the Wi-Fi router. To communicate with your smartphone and the Internet, it needs a network coordinator - a Gateway with support for the corresponding standard. This can be a separate Xiaomi Multimode Gateway hub or a smart socket / lamp with a built-in Zigbee module.
The device is minimalist: the sensor itself, the mounting pad with double-sided tape and the CR2032 battery pill, which is usually already installed inside. The infrared motion sensor is capable of covering an angle of up to 170 degrees, and the range is approximately 5-7 meters in open space. It is important to consider that walls and furniture can significantly reduce the range of the signal.
π‘
Place the sensor at a height of 1.5-2 meters, pointing it perpendicular to the passage area to avoid false positives from pets or drafts.
The device has a degree of moisture protection that allows you to use it in bathrooms, but direct contact with a jet of water is not allowed. Before setting up, make sure that your smartphone is enabled geolocation and Bluetooth, as these services are necessary for the initial identification of the device in the application.
Registration in the Mi Home app
The process of adding a device to the Xiaomi ecosystem begins with the launch of a mobile app. Make sure you are using the current version of Mi Home and your region in the profile settings matches the gateway region (usually China or Europe).
To start the work, perform the following actions:
- π Press the reset button on the sensor body (using a paper clip) and hold 5-7 seconds before flashing the indicator.
- π± Open the Mi Home app and go to your gateway control menu.
- β Click the βAdd Underβ button or the plus icon in the upper right corner.
- π Wait for automatic search or select the device from the list manually.
When you search, the system can request confirmation of the button pressed on the sensor, and if the indicator is blue and the device appears on the list, the process can be considered successful, transferring data to the cloud server can take several seconds, after which the sensor can be assigned a name and select a room.
βοΈ Checking before connection
Importantly, when you add a device, you update the firmware, so don't turn off the gateway power, keep the phone in close proximity to the sensor, and interruption of the process can make the device unavailable for control.
Setup of automation scenarios
The sensor itself only captures motion, but the real value is the scenarios it triggers. In the Mi Home app, go to Automation and create a new scenario. The logic of the work is based on the combination of If (condition) and That (action).
As a condition, choose your Night Light Sensor 2 and the Motion Discovered event. Action can be to turn on a smart lamp, a nightlight outlet, or start another smart device. Shutdown delay is a critical parameter that determines how many seconds the lights go out after the movement stops.
Letβs take a look at the example of a corridor scenario setting:
- π‘ If movement and time between 23:00 and 06:00 is detected, turn the night on the brightness of 10:00%.
- π If the movement of the day is detected, then do nothing (so as not to waste charge).
- β± Set a timer to turn off 30 seconds after the last movement.
Difficult conditions
Do not set too short a time delay, otherwise the light will blink if you freeze in place (for example, brushing your teeth).The optimal value for the passage areas is 45-60 seconds. For toilets, you can increase the time to 2-3 minutes.
Connection problems and their solution
Despite the robustness of the Zigbee protocol, users may encounter difficulties pairing, most often the distance between the sensor and the gateway or the presence of shielding structures. Metal doors, mirrors and thick concrete walls can block the signal.
If the device is not in or permanently losing communication, try the following methods:
- π Replace the battery with a new one, even if the one you have installed seems to be working (low charge affects signal power).
- π‘ Bring the sensor closer to the gateway (up to 1 meter away) at the time of pairing.
- π Perform a full reset of sensor settings by pressing the button for 10 seconds.
β οΈ Note: If you use multiple gateways on the same network, make sure that the sensor is tied to the hub that is in line of sight, otherwise the delays will be significant.
Another common cause of failure is the overload of the Zigbee network with a large number of devices, in which case it is recommended to recreate the network or add intermediate repeaters (device with constant power, working as repeaters of the signal).
π‘
The stability of the sensor is 90% dependent on the quality of the gateway signal and the freshness of the power cell, not on the software settings.
Comparison of characteristics with analogues
To better understand the Mijia Night Light Sensor 2βs market position, itβs worth comparing it to competitors and previous versions.The device stands out for its balance of price, build quality and integration into a single ecosystem, something that is rare for third-party vendors.
| Characteristics | Mijia Sensor 2 | Competitor A (Wi-Fi) | Previous version |
|---|---|---|---|
| Protocol of communication | Zigbee 3.0 | Wi-Fi 2.4 GHz | Zigbee 2.0 |
| Nutrition | CR2032 (up to 2 years) | 220V network/USB | CR2032 (up to 1 year) |
| Viewing angle | 170 degrees. | 120 degrees. | 150 degrees. |
| Signal delay | < 1 sec | 1-3 seconds | 1-2 seconds |
Using the Zigbee protocol provides a key advantage in the form of low power consumption and the creation of a mesh network, where each device amplifies the signal of others. Wi-Fi analogs, on the contrary, land the battery faster and create a load on the main router.
In addition, the second version of the sensor has an improved algorithm for filtering false positives, which is especially important for homes with pets. Although it is difficult to completely eliminate a reaction to a large dog, sensitivity to small objects has been significantly reduced by software methods.