How to connect Xiaomi leak sensor to smart home system: full guide 2026

Xiaomiโ€™s smart water leak sensors are an inexpensive but effective solution to protect your home from floods. They instantly alert you to moisture, preventing serious damage. However, many users face problems when they first connect: the device is not detected in the app, the signal disappears after a few days, or the sensor works incorrectly with other ecosystem devices. This article will help you understand everything from model selection to integration with Home Assistant and automation of the reaction to the leak.

We will look at two of the most popular options: Aqara Water Leak Sensor. SJCGQ11LM) MiJia Honeywell Water Leak Detector (JTYJ-GD-01LM/BW). Despite their similarities, they have different communication protocols, hub requirements, and customization options, and you'll learn how to place sensors in the bathroom or kitchen correctly, what errors lead to false positives, and how to set up automatic water closures when a leak is detected.

What Xiaomi leak sensors exist and how they differ

There are three main models of leakage sensors under the Xiaomi brand, but only two of them are relevant in 2026, the main difference is the communication protocol and the requirements for the central hub.

  • ๐Ÿ”น Aqara Water Leak Sensor (SJCGQ11LM) โ€” It runs on Zigbee 3.0, requires an Aqara Hub (e.g., a hub, M2 or E1). Supports scripts in Mi Home and Apple HomeKit (via Aqara hub) M2).
  • ๐Ÿ”น MiJia Honeywell (JTYJ-GD-01LM/BW) โ€” Bluetooth Low Energy is used for Bluetooth Low Energy (BLE), Connects directly to the Xiaomi Mi Gateway or smartphone 3. No dependence on Zigbee hubs, but a smaller range.

A key advantage of Aqara is the stability of communication and the ability to create complex automations (for example, simultaneous alerting and blocking water through an electric valve). MiJia Honeywell is easier to set up, but requires that the smartphone or gateway is within a radius of 10-15 meters from the sensor. Both models are protected. IP67, This allows you to install them in bathrooms and under sinks.

๐Ÿ“Š What kind of leak sensor are you using?
Aqara SJCGQ11LM
MiJia Honeywell JTYJ-GD-01LM/BW
Another brand
I haven't bought it yet.

What you need to connect: configuration and requirements

Before you start setting up, make sure you have everything you need. Different sensor models require different components:

Sensor modelRequired hub/gatewayProtocol of communicationMax. Numbers at 1 hub.Radio of action
Aqara SJCGQ11LMAqara Hub M2, E1, Camera Hub G3Zigbee 3.0up to 128 devicesup to 70 m (indoors)
MiJia Honeywell JTYJ-GD-01LM/BWXiaomi Mi Gateway 3 or SmartphoneBLE 5.0up to 30 devices15m
Mi Sensor SJWS01LM (obsolete)Xiaomi Mi Gateway 1/2Zigbee 1.2up to 32 devices50m

Aqara requires a Zigbee hub, without which the sensor won't work. MiJia Honeywell can be connected directly to the phone via Mi Home, but in this case alerts will only come with active Bluetooth on the smartphone. Mi Gateway 3 is needed for round-the-clock monitoring.

โš ๏ธ Note: If you use the Aqara Hub in Mi Home mode (rather than Aqara Home), some sensor features may be limited.For example, Mi Home cannot configure the delay of operation available in the Aqara proprietary app.

Also prepare:

  • ๐Ÿ“ฑ Smartphone with Mi Home app installed (version no lower than 6.5.400) or Aqara Home.
  • ๐Ÿ”Œ Power supply for the hub (if required).
  • ๐Ÿ“ก A stable Internet connection (for synchronization with the cloud).
  • ๐Ÿ”ง Fixing elements (usually included, but for non-standard surfaces may need double-sided tape).

Step-by-step: how to connect the leak sensor to the Mi Home

Consider a universal way to connect for both models through the Mi Home app. If you have an Aqara sensor, we recommend using the branded Aqara Home app - there are more automation settings.

Install Mi Home (App Store/Google Play)

Register a Xiaomi account (or sign in to an existing one)

Connect the hub to the network (if required) and add it to Mi Home

Make sure the sensor is charged (battery) CR2032 complete)

Place the sensor in the range of the hub (or next to the smartphone for the BLE-model)-->

Step 1: Adding the device to Mi Home

  1. Open Mi Home and go to the Devices tab โ†’ Add the device (+).
  2. Select the Sensors category โ†’ Water leak sensor.
  3. For Aqara: press and hold the button on the sensor for 5 seconds until the blue light flashes. For MiJia Honeywell, remove the protective film from the battery (the device activates automatically).
  4. Bring the sensor to the hub (or smartphone for the device) BLE-model, not more than 1 metre.
  5. Wait until the process is completed (on average, it takes 20โ€“40 seconds).

Step 2: Set up notifications

After the device has been added:

  1. Go to the sensor card in Mi Home.
  2. Press three points (โ‹ฎ) โ†’ Notification settings.
  3. Turn on the options: ๐Ÿ”” Water leakage (main alert) ๐Ÿ”‹ Low battery charge ๐Ÿ“ถ Loss of communication if the sensor stops responding)

Push notifications

SMS

Call.

Step 3: Checking the performance

To make sure that the sensor is working correctly:

  1. Place the sensor on a wet surface (for example, wet a napkin and put it under the contacts).
  2. After 3-5 seconds, the signal (sound and light) should work and a notification should arrive in Mi Home.
  3. If there is no reaction, check it out: ๐Ÿ”‹ Battery charge (in the device card). ๐Ÿ“ถ Signal level (for Zigbee should be at least lower) -70 dBm). ๐Ÿ”„ Restart the hub (turn off power to the 10 seconds).

๐Ÿ’ก

If the sensor is not added to the Mi Home, try changing your account region to Mainland China in your profile settings, and some models (especially new ones) appear there first.

Common mistakes and their solutions

Even with the right connection, Xiaomiโ€™s leak sensors can be unstable, and here are the typical problems and ways to fix them:

  • ๐Ÿšจ Sensor not responding to water Causes: Contact contamination (wipe with alcohol) Too little water (contacts must be completely closed) Battery malfunction (check voltage with the tester - must be at least 2.8 V).
  • ๐Ÿ“ต Permanent loss of communication Solutions: For Aqara: add a Zigbee repetitor (like Aqara Smart Plug or Wall Switch). For MiJia Honeywell: reduce the distance to the hub/smartphone or move the hub to the center of the apartment. Check for interference from Wi-Fi routers (channels 11-14 may conflict with Zigbee).
  • ๐Ÿ”” False positives What to do: Make sure the sensor is not installed in the condensate zone (for example, on cold pipes). Check the density of the contacts to the surface. In the Aqara Home settings, you can increase the delay of the response to 10 seconds (to exclude short-term drops).

โš ๏ธ Note: If the MiJia Honeywell sensor is connected only to a smartphone (without a hub), alerts will not come when the Bluetooth is off or the phone is out of range.

Another common problem is that the Mi Home status is not properly displayed, and the sensor shows a leak when there is no water.

  1. Reboot the hub.
  2. Remove the device from the application and add again.
  3. Update the Hub's firmware (in Hub Settings) โ†’ Update).

Integration with Home Assistant and other smart home systems

If you use Home Assistant, Xiaomi leak sensors can be connected via official integrations or custom components.

  • ๐Ÿ  AQARA: Zigbee Home Automation integration (ZHA) or deCONZ (c) USB-ConBee key II).
  • ๐Ÿ“ก MiJia Honeywell: Xiaomi integration BLE (It requires constant Bluetooth scanning through ESP32 Or Raspberry Pi).

Instructions for Home Assistant (Aqara example):

  1. Establish integration ZHA through settings โ†’ Devices and services โ†’ Add integration.
  2. Connect a Zigbee adapter (e.g. Sonoff Zigbee 3.0) USB Dongle Plus).
  3. Click Add the device and activate the sensor (hold the 5 seconds button).
  4. After adding the device will appear in the list of entities as binary_sensor.aqara_water_leak_sensor_....

To automate the leak response, create a script in configuration.yaml:

automation:


- alias: "Close the water when it leaks"




trigger:




platform: state




entity_id: binary_sensor.aqara_water_leak_sensor




to: "on"




action:




- service: switch.turn_on




entity_id: switch.water_valve # ID of your electric valve




- service: notify.notify




data:




message: "Discovered leak! Water is blocked."

MiJia Honeywell is a difficult process to follow. BLE. It will:

  1. Install ESPHome on a Bluetooth device (e.g, ESP32).
  2. Set up a scan. BLE-Devices and data sent to Home Assistant.
  3. Use Xiaomi Custom Integration BLE (available HACS).
How to check the signal level of Zigbee in Home Assistant?
Open the Settings. โ†’ Zigbee, find your sensor in the list of devices. LQI (Link Quality Indicator should be above 100. If below 70, add a repeater or move the hub closer.

Where and how to properly install leakage sensors

The effectiveness of sensors depends not only on their technical characteristics, but also on the correct placement.

  • ๐Ÿšฟ Under the sinks, install the sensor on the floor directly under the siphon. Avoid areas where condensate may accumulate (for example, on cold metal pipes).
  • ๐Ÿ› Next to the bath/shower cabin, the best place is at the bath legs or under the drainway. Do not place the sensor in the shower tray (where water appears every time you use it).
  • ๐Ÿงบ Under the washing machine, place the sensor on the floor at the back of the machine. Many leaks start with water supply hoses.
  • ๐Ÿ”ฅ Near the water heater -- especially for boilers over 5 years old. Place the sensor under the safety valve.
  • ๐Ÿšช In the passage of pipes through walls / ceiling โ€“ there are often leaks due to corrosion or leaky joints.

Installation tips:

  • ๐Ÿ“ Minimum distance between sensor contacts and potential water source โ€“ 1-2 cm.
  • ๐Ÿ”„ Check the operability of the sensor at least 1 time a month (drip water on the contacts).
  • ๐Ÿ”‹ Battery (CR2032) Change every 1.5 to 2 years, even if the app doesnโ€™t signal a low charge.
  • ๐Ÿ›  For fastening, use double-sided scotch 3M VHB โ€” It can withstand humidity and will not fall off with time.

โš ๏ธ Warning: Do not install sensors in places where extreme temperature changes are possible (for example, on the balcony in winter); condensation from temperature differences can cause false positives. Optimal operating range: from 0ยฐC +50ยฐC.

A critical mistake many users make is to install the sensor on vibrating surfaces (such as a washing machine during spinning), which can cause short-term closure of contacts and false alarms, in which case use silicone pads for cushioning.

Automation: How to adjust the reaction to leakage

A simple leak alert is often not enough, so you need to automatically shut off the water and turn off potentially dangerous appliances.

  • ๐Ÿšฐ Electrical valve (e.g. Aqara Water Valve) E1 Or MoesHouse Zigbee Valve, which is installed at the entrance of the water pipe to the apartment.
  • โšก Smart socket (to turn off the washing machine or boiler when leaking).

Example of the scenario in Mi Home:

  1. Open Mi Home โ†’ Automation โ†’ Create a script.
  2. Select the condition: If the leak sensor is working.
  3. Add action: ๐Ÿ”Œ Disable the smart washing machine socket (Switch off the device). ๐Ÿšฐ Close the valve (Switch off the valve). ๐Ÿ”” Turn on the siren (Activate the alarm clock). ๐Ÿ“ฑ Send push notifications to all attached devices.

Save the script and test it (mimic leakage).

Automation is more flexible in Home Assistant โ€“ you can add:

  • ๐Ÿ“น Recording from the camera when the sensor is triggered.
  • ๐Ÿ’ก Blinking with smart lamps (e.g. Yeelight).
  • ๐Ÿ“ž Calling your phone via Telegram Bot or Call Service.

Important: when setting up automation, consider execution delays, for example, if you turn off the washing machine first and then shut off the water, the valve may not be able to work due to a drop in pressure.

  1. Shut off the water (valve).
  2. Disconnect electrical appliances (outlets).
  3. Activate siren and alerts.

๐Ÿ’ก

For reliability, duplicate alerts through several channels: push notifications, SMS, This ensures that you know about the leak even if the phone is dead or the Internet is out.

FAQ: Answers to Frequent Questions

Can I connect the Xiaomi leak sensor without a hub?
Only the MiJia Honeywell model JTYJ-GD-01LM/BW It can work without a hub, connecting directly to a smartphone via Bluetooth, but in this case, the alerts will only come when the phone is within range of the sensor (up to the time of the sensor). 15 For round-the-clock monitoring, you need a Mi Gateway. 3. Aqara SJCGQ11LM It requires a Zigbee hub (e.g. Aqara Hub). M2).
How many sensors can be connected to a single hub?
It depends on the hub model: Aqara Hub M2/E1: before 128 Devices (not more than recommended) 50 For stable operation. - Xiaomi Mi Gateway 3: before 30 BLE-Devices (including leakage, temperature, etc.) If there are too many devices, there may be delays in alerts: 1 hub 20โ€“30 sensor.
How to check if the sensor is working?
There are three ways: Manual check: drip water on the sensor contacts. The audible signal should be triggered and the notification will come. Through the application: in the device card in Mi Home, click Test (if available). View logs: in Home Assistant, check the history of the state of the entity. binary_sensor.your_device. If the sensor is not responding, check the battery, the purity of the contacts and the signal level.
Can you use Xiaomi sensors on the street or in the garage?
Technically yes, but with reservations: ๐ŸŒก Operating temperature range: from 0ยฐC +50ยฐC. In the cold below -5ยฐC possible failures. ๐Ÿ’ง Protection IP67 allows you to stay in water for a short time, but is not intended for permanent exposure to precipitation. ๐Ÿ“ถ Radio of action Zigbee/BLE downstreet 10โ€“20 For the street, it is better to choose specialized sensors with a IP68 and support for LoRaWAN (e.g. Dragino) LSN50).
What if the sensor constantly shows a leak, even though there is no water?
Causes and solutions: ๐Ÿ”‹ Weak battery: Replace the element CR2032 (Even if the app shows 80% charge). ๐Ÿงฒ Close contacts: wipe contacts with alcohol and dry the sensor with a hair dryer (cold air). ๐Ÿ“ก Interference: Move the sensor away from sources of electromagnetic interference (microwaves, routers). ๐Ÿ”„ Firmware failure: remove the sensor from the app and add it again. If the problem persists, the sensor is defective (contact group may fail).