How does the sensor leakage water Xiaomi: a full analysis of the principle of operation and the subtleties of the setting

Introduction: why you need a leak sensor and how it saves from floods

Imagine you're away for a weekend, and a pipe bursts at home, and you come back and you find flooded neighbors below, damaged repairs and a damage bill for hundreds of thousands of rubles. Xiaomi's water leak sensor is a compact device that could prevent a disaster by sending you an alarm on your smartphone in the first seconds after the water comes in. But how exactly does it do that?

Unlike traditional mechanical valves, Xiaomi’s smart sensors (Aqara, MiJia or Yeelight series) rely on electronic sensors and wireless communication. They don’t block water on their own (you need a separate valve), but they alert the owner instantly about the problem. In this article, we will discuss the unique feature of Xiaomi sensors – a dual leak detection mechanism (direct contact + capacitive sensor), which reduces the number of false positives to 0.1%.

We'll analyze:

  • πŸ” The physical principle of the sensor (why it reacts even to steam, not just to liquid).
  • πŸ“‘ Zigbee vs Bluetooth and their impact on alert speed.
  • βš™οΈ Hidden settings in Mi Home, which the manufacturer does not advertise.
  • ⚠️ Typical installation errors that cause the sensor to fail at a critical moment.

The sensor device: what is inside and how it works

The case of Xiaomi’s leak sensor (such as the Aqara Water Leak Sensor or MiJia Honeywell) looks simple: a plastic box the size of a credit card, but inside, there are complex electronics:

  • πŸ”‹ Battery CR2032 β€” Provides up to 2 years of battery life (with the right settings).
  • πŸ“Ά antenna Zigbee/Bluetooth β€” It depends on the model (e.g. Aqara uses Zigbee). 3.0, Yeelight - Bluetooth Mesh).
  • πŸ’§ Dual sensor: πŸ”Ή Contact plates on the underside of the housing (respond to direct conduction of water). πŸ”Ή Capacitive sensor (detects a change in the dielectric permeability of air when moisture appears).
  • πŸ› οΈ Microcontroller – processes sensor signals and sends data to the hub.

The key difference from cheap ones is that Xiaomi’s sensors use a noise filtering algorithm, for example, if dust or condensation hit the sensor, the device will not send a false alert, but will first check the signal stability within 3-5 seconds, which reduces the number of false positives by 90% compared to sensors without such logic.

πŸ“Š What kind of Xiaomi leak sensor you have installed?
Aqara Water Leak Sensor
MiJia Honeywell
Yeelight Water Leak Detector
Other (write in the comments)
I haven't bought it yet.

Interesting fact: In Aqara models, the touch board is coated with a special hydrophobic compound that prevents contact corrosion, which allows the device to work even after direct water intake - just dry it for 2-3 hours.

⚠️ Warning: If Xiaomi sensors are no longer responsive to water, check the integrity of the contact plates. Over time, they may oxidize (especially in high-humidity bathrooms.

Water detection principle: why the sensor is triggered by steam

Many users are surprised when Xiaomi sensors fire not only on puddles, but also on condensation or even steam (for example, in the bathroom after a hot shower).

Let's take a closer look at this.

  • πŸ’¦ Direct contact: When water closes the two plates on the underside of the sensor, an electric current is generated, which is the most reliable way, but it requires that the water physically touch the sensor.
  • 🌫️ Capacitive sensor: measures the change in the dielectric permeability of the medium. Water has a high dielectric permeability (about 80), whereas in air it is close to 1. Even small drops of steam or condensate near the sensor change this indicator, which is what the microcontroller detects.

Type of operationConditionsprecisionFalse positives
Direct contactWater closes the plates100%0%
Capacity sensorHumidity >85% or steam within a radius of 1-2 cm95%5% (condensate, high humidity)
CombinedBoth sensors confirm leakage.99.9%0.1%

The Aqara and MiJia models use a combined logic: if the capacitive sensor is triggered but the contact plates are dry, the sensor waits 10 seconds and checks again. Only when the alarm is repeated, it sends an alert, which reduces false alarms, but can delay the response to slow leaks (for example, a dripping pipe).

πŸ’‘

If the sensor is triggered by steam in the bathroom, set it away from sources of moisture (for example, under the sink, not on the floor next to the shower cabin). or set the alert delay in the Mi Home app (section Automation β†’ Conditions β†’ Delay).

How the sensor transmits the signal: Zigbee vs Bluetooth

The speed of the leak notification depends on the communication protocol that the sensor uses. Xiaomi has two types of connections:

  • πŸ“‘ Zigbee (Aqara models): πŸ”Ή It works via a hub (such as Aqara Hub or Mi Gateway). πŸ”Ή Delayed notification: 1-2 seconds. πŸ”Ή Communication range: up to 30 meters (within the apartment). πŸ”Ή Supports mesh network (sensors relay each other's signal).
  • πŸ”΅ Bluetooth (Yeelight or MiJia Bluetooth models): πŸ”Ή Connects directly to your smartphone or Mi Bluetooth Gateway. πŸ”Ή Delayed notification: 3-10 seconds (depending on distance). πŸ”Ή Communication range: up to 10 meters (no obstacles). πŸ”Ή Doesn't support mesh.

Critical: If you use a Bluetooth sensor and your smartphone is out of range (like you’re at work), the alert will only come when your phone reconnects to the sensor, in which case you’d better choose a Zigbee model with a hub that monitors the state of the sensors around the clock.

⚠️ Warning: If you have multiple Aqara sensors on Zigbee, place them in each other’s coverage area (maximum 10-15 meters between neighboring devices) to create a mesh network and increase reliability.

What if the sensor does not connect to the hub?
1. Check that the hub (Aqara Hub or Mi Gateway) is on and connected to Wi-Fi. 2. Make sure the sensor is in pairing mode (press and hold the button on the case for 5 seconds until the blue indicator flashes). 3. In the Mi Home app, go to Add Device β†’ Smart Home β†’ Leak Sensor and follow the instructions. 4. If the sensor still does not connect, reset it to factory settings (hold the 10 seconds button until the indicator goes out and blinks red).

Connection and configuration: step-by-step instructions

Installation of the leak sensor Xiaomi takes no more than 5 minutes, but there are nuances that affect its operation.

Install the CR2032 battery (polarity indicated on the case)

Activate the pairing mode (hold the 5 sec button)

Place the sensor in the risk area (under the sink, next to the washing machine)

Connect to the hub or smartphone via Mi Home

Set up automation (alerts, valves, sirens)

-->

Take the example of Aqara Water Leak Sensor:

  1. Open the sensor cover and insert the CR2032 battery (usually included).
  2. Press and hold the button on the body until the indicator starts flashing blue (pairing mode).
  3. In the Mi Home app, go to Profile β†’ Add Device β†’ Smart Home β†’ Water Leak Sensor.
  4. Select a hub (if you use Zigbee) or connect directly to your smartphone (for Bluetooth models).
  5. Wait for the confirmation of the connection (the indicator on the sensor will light up in green).

Once connected, make sure to set up automation, for example, you can create a rule:

If the leak sensor is triggered β†’


Then turn on the Aqara + siren




Send push notification to smartphone +




Close the electric valve (if installed).

To do this, go to Mi Home Automation β†’ Create β†’ Condition β†’ Leak sensor.

Optimal installation locations:

  • 🚿 Under the sink in the kitchen and in the bathroom.
  • 🧺 Near the washing or dishwasher.
  • πŸ”§ Near the water heater or boiler.
  • 🚽 Behind the toilet (if there is a risk of leaking a tank).

Avoid areas with constant high humidity (such as near a shower cabin without doors).

False positives: why the sensor is lying and how to fix it

Even Xiaomi’s most reliable sensors sometimes go off for no apparent reason, and consider typical scenarios and solutions.

Problem.Reason.Decision
It's working on condensate.High humidity in the roomMove the sensor away from steam sources or adjust the delay to Mi Home
Not responding to water.Oxidation of contacts or a saturated batteryClean the plates with alcohol or replace the battery
Always flashing red.Loss of communication with the hubRestart the hub and check the distance between devices
It works at night for no reason.Electromagnetic interference from other devicesSet the sensor away from the router or microwave

If the sensor is triggered by dust or dirt, wipe the contact plates with a cotton swab dipped in alcohol. In Aqara models, you can also calibrate the sensor:

  1. Turn the sensor up with the contacts.
  2. Press and hold the 10 seconds button until the indicator starts flashing yellow.
  3. Place the sensor on a dry surface and wait until the indicator goes out (calibration is complete).

πŸ’‘

If the sensor is activated more than 3 times a week for no apparent reason, test it in test mode: place it in a dry place and observe the behavior. If false alarms continue, the device is malfunctioning and requires replacement.

Integration with Home Assistant and other systems

Xiaomi leak sensors can be connected not only to Mi Home, but also to other smart home platforms, such as Home Assistant, Apple HomeKit or Google Home.

  • 🏠 Home Assistant: πŸ”Ή Install the Xiaomi Miio component or Zigbee2MQTT (for Zigbee sensors). πŸ”Ή Add the sensor to the configuration file: sensor: - platform: mqtt name: "Bathroom leak sensor" state_topic: "zigbee2mqtt/0x12345678" value_template: "{{ value_json.water_leak }}"
  • 🍎 Apple HomeKit: πŸ”Ή Use the Aqara Hub with firmware that supports HomeKit. πŸ”Ή Scan it. QR-code from the hub in the Apple Home app.

Google Home integration will require middleware, such as Home Assistant or IFTTT. Important: Zigbee sensors don’t connect directly to Google Home – just through the hub.

Example of automation in Home Assistant for a leak sensor:

automation:


- alias: "Leakage in the bathroom"




trigger:




platform: state




entity_id: binary_sensor.water_leak_bathroom




to: "on"




action:




- service: notify.notify




data:




message: "Discovered leak in the bathroom! Check immediately!"




- service: switch.turn_on




entity_id: switch.siren

FAQ: Answers to Frequent Questions

Can I use the Xiaomi sensor without a hub?
Yes, but with limitations: πŸ”΅ Bluetooth models (like Yeelight) connect directly to the smartphone, but alerts will only come when the phone is in range of the sensor. πŸ“‘ Zigbee models (like Aqara) require a hub for constant monitoring. Without it, they won't send notifications).
How to check if the sensor is working?
There are 3 ways to test: Visual: flip the sensor upwards with the contacts and drop water on them. The indicator should light up red and the app will show a notification. Through the app: in Mi Home, open the sensor card and press the Test (if the function is supported by the model). Reset: hold the 5-second button - the sensor should flash blue (means it's working). If the sensor doesn't respond, check the battery or reset it to factory settings.
How many sensors do you need for an apartment?
The amount depends on the layout and risk areas: 🏠 1-flat: 2–3 sensor (kitchen, bathroom, next to the washing machine). 🏠 2-3-flat: 4–6 sensors (add under the water heater and next to the toilet). 🏠 Private house: 6–10 Important: Place sensors in the lower parts of the room where the water accumulates first.
Can I use a sensor outside?
No, Xiaomi sensors aren't designed for street installation: 🌧️ The body is not sealed (class of protection is usually IP44, which is not enough for rain or snow). ❄️ Operating temperature range: from 0Β°C +40Β°C (in the cold, the battery will run out in a few days). πŸ“Ά Signal. Zigbee/Bluetooth It doesn't pass well through walls, especially outside, and it's better to use specialised sensors with a protection class for the street. IP67 support for LoRaWAN.
How do you extend the life of a battery?
Battery life CR2032 Xiaomi's sensor is 1 to 2 years old: πŸ”‹ Use batteries of well-known brands (Duracell, Energizer). πŸ“΄ Reduce the frequency of the sensor survey in the hub settings (if there is such an option). 🌑️ Avoid installation in areas with extreme temperatures (such as near the battery). πŸ”„ Check the charge level in the Mi Home app regularly (Devices section) β†’ Sensor. β†’ If the battery is dead, replace it within 5 minutes or the sensor will reset the settings.