How to add a leak sensor Xiaomi: setup and automation

Modern smart home systems are becoming the standard of safety, preventing costly repairs after flooding. Xiaomi ecosystem devices are leading the way thanks to affordable prices and stable operation in conjunction with the Mi Home app. Proper sensor configuration requires attention to detail, because it depends on the speed of the system’s response to an emergency.

In this article, we will take a look at the complete installation cycle, from location selection to complex automation scenarios, and learn how to avoid typical connection errors and ensure reliable humidity monitoring in critical areas of the apartment.

Using leak sensors is not just a gadget, but a necessary measure to protect your property. Integration with the gateway allows you to receive instant alerts on your smartphone, even if you are not home.

Preparation for installation and location selection

Before you start installing, you need to identify the most vulnerable areas in your home, traditionally areas under sinks, washing machines, dishwashers and near water risers, and it's important to ensure that the sensitive elements are in direct contact with the floor.

Make sure that the ZigBee or Bluetooth signal is stable in the selected location, depending on the model of your device. If the gateway is far away, you may need to install an intermediate signal repeater.

⚠️ Note: Do not place the sensor in places where a high-pressure jet of water can directly hit, as this can damage electronic components despite the declared waterproofing.

For the sensor to work properly, the floor surface must be flat so that water can reach the contact plates without any problems. Avoid places with constant high humidity, such as directly above a hot bath, to exclude false positives from condensation.

Instructions for connecting to the Mi Home application

The process of pairing the device with the phone takes only a few minutes, if you follow the algorithm. First, open the Mi Home app and make sure that your account is authorized and the region is configured correctly (often you need to choose the β€œChina” region for full functionality).

Press the badge Β«+Β» In the upper right corner of the main screen, the system will offer scanning. QR-code that is on the back of the device or in the instructions, or find the device in the list manually.

β˜‘οΈ Checklist before connection

Done: 0 / 4

Once you detect the device, press "Plug in." At this point, you need to activate the pairing mode on the sensor itself. This usually requires pressing and holding the function button for 5-7 seconds until the indicator flashes blue.

If the search for the device is delayed, try bringing the phone and sensor closer to the gateway, sometimes helping to remove the battery and re-insert just before you try to connect.

Setup of notifications and automation scenarios

The main value of a smart sensor is not the fact of water registration, but the system's response to this event. The basic setting involves sending push notifications to a smartphone, but this is not enough for real protection.

From the device menu, go to Automation or Scenarios, and you can create a chain of actions where you say, "If a leak is detected, then...." The platform's capabilities allow you to control many other gadgets.

πŸ“Š What should happen when a leakage occurs?
Only a phone notification.
Closing the ball crane
Switching on siren
All at once.

The most effective scenario is a smart ball tap, and when the sensor is triggered, the system automatically shuts off the water to prevent flooding, and you can add a siren to alert the occupants.

To implement complex scenarios, you may need to create a separate automation through the Smart Scenes tab. Select Device -> Leak Sensor -> Leakage Sensor. Then add an action, such as Device Control -> Balloon -> Close.

Compatibility table and specifications

When choosing equipment, it is important to consider communication protocols, since not all gateways support all types of devices.

ModelProtocol of communicationType of foodWe need a lock.
Aqara Water Leak SensorZigBeeCR2032Yeah (ZigBee)
Xiaomi Mi Smart HomeZigBeeCR2032Yeah (ZigBee)
IMILAB Water Leak DetectorBluetooth / Wi-FiAAA (2 units)No (for Wi-Fi)
Tuya Smart SensorZigBee / Wi-FiCR2032Depends on the version.

Note that ZigBee models consume significantly less power and are more stable on larger networks, but require a compatible gateway. Wi-Fi devices connect directly to the router, making installation easier but draining the battery faster.

The average lifespan of a single battery in standby mode is 1 to 2 years, depending on the frequency of operation and the quality of the battery. Use only high-quality alkaline or lithium batteries.

How to extend the life of a battery?
Reducing the frequency of sensor status surveys by the gateway can increase the lifespan, but this is only available in advanced Home Assistant settings or through modified plugins. There is no such option in the standard Mi Home app, so it is important to monitor the charge level.

Troubleshooting and frequent errors

Despite the simplicity of the system, users often face connectivity problems. If the sensor is not added, check if the battery is discharged. The indicator should flash when you press a button; if there is no glow, replace the battery.

A common mistake is to choose the wrong region in the app. Devices purchased on the global market may not be seen if China is selected in the profile, and vice versa. Try changing the region in the profile settings.

⚠️ Note: If the indicator flashes red or flashes blue quickly without going into pairing mode, it is possible that the contacts inside the battery compartment have oxidized or incorrectly inserted.

Notification delay issues can be related to an unstable internet connection or ZigBee network congestion.Make sure the gateway is not near powerful interference sources, such as microwaves or routers running at the same 2.4GHz frequency.

πŸ’‘

Use lithium-composite batteries (Li-FeS2) instead of conventional alkaline batteries if the sensor is installed in an unheated room (garage, cottage).

Enhanced Opportunities and Integration

For advanced users, Xiaomi’s ecosystem opens the door to full automation, and through integration with platforms like Home Assistant or HomeBridge, you can connect the sensor to devices from other manufacturers.

For example, if you detect water, you can not only block the tap, but also send a message to Telegram, turn on the light in the entire apartment in red or run a robot vacuum cleaner to collect water (if the model allows).

Event logging is also available, and you can see the history of all the positives in the app, which is useful for analyzing the frequency of humidity problems in certain places.

πŸ’‘

Maximum efficiency is achieved only with an integrated approach: sensor + smart crane + siren + notifications.

Remember to run test runs regularly, at least every six months, and drop some water on the sensor to make sure the chain of action is running correctly and notifications are coming on time.

Can you use the Xiaomi sensor without the internet?
Without an internet connection, the device is severely limited, and the sensor can transmit a signal locally to the gateway, and scripts configured to run locally can work (e.g., turn on the siren), but push notifications will not arrive on the phone, as this requires communication with the cloud server.
What's the range of the sensor?
The range of the ZigBee protocol in the room is about 10-20 However, in a gateway system, every device powered by the network (sockets, lamps) acts as a repeater, significantly increasing the network coverage.
What if the sensor is constantly losing contact?
Check the signal level in the device settings in the app. If it's low, try moving the gateway closer or adding a ZigBee intermediate device powered from the network between the gateway and the sensor.