How to connect the Xiaomi water leak sensor: full instructions from unpacking to setting notifications

Xiaomi’s water leak sensors are compact devices that can prevent severe flooding effects. They work in conjunction with the Mi Home ecosystem or other smart home systems to alert the owner to the appearance of moisture in critical areas. But many users face difficulties already at the connection stage: the device is not detected in the application, the signal disappears after several meters, and notifications come with a delay.

In this article, we will discuss not only the basic procedure for pairing the sensor with the phone, but also the nuances that are not mentioned in the official instructions. For example, why the Aqara Water Leak Sensor (SJCGQ11LM model) requires the presence of a Xiaomi Gateway hub, while MiJia Honeywell (JTYJ-GD-01LM/BW model) can work directly over Bluetooth. You will also learn how to integrate the sensor into the Home Assistant without an official gateway and what alternative methods of notification (call, SMS, Telegram) can be configured.

What models of water leakage sensors Xiaomi produces

Xiaomi and its sub-brands (Aqara, MiJia) have produced several generations of leak sensors, which are not only design, but also communication protocol, compatibility with hubs and autonomy. Below are the models that are relevant for 2026, which can be bought in official stores.

    For most users, Aqara is the best choice. SJCGQ11LM β€” It's cheaper than Honeywell, but more stable thanks to Zigbee. If you want autonomy without buying a hub, look at MiJia. JTYJ-GD-01LM/BW, Be prepared for a limited range of action (up to the end of the day). 10 square-yard).

    πŸ“Š What kind of water leak sensor you have installed?
    Aqara SJCGQ11LM
    MiJia Honeywell JTYJ-GD-01LM/BW
    Another Xiaomi
    I haven't bought it yet.
    Using a different brand sensor.

    What you will need to connect the sensor

    Before you start setting up, make sure you have everything you need. The equipment list depends on the sensor model:

    Sensor modelMandatory equipmentAdditional (optional)
    Aqara SJCGQ11LMAqara Hub Gateway or Xiaomi Gateway v3, smartphone with Mi Home/Aqara appRouter with support for 2.4 GHz, CR2032 battery (included)
    MiJia Honeywell JTYJ-GD-01LM/BWSmartphone with Bluetooth 4.2+ and Mi Home appAdditional sensor for networking (increases range)
    Aqara T1 (WS-EUK01)Aqara Hub M2 gateway or Matter-compatible controller (e.g. Apple TV 4K)Apple ID account for integration with HomeKit

    Important: If you use a Xiaomi Gateway, make sure it is connected to a 2.4 GHz network (not 5 GHz!). Zigbee sensors do not work through modern dual-band routers unless compatibility mode is activated in the settings. Also check that the phone is enabled with Bluetooth (for models with BLE) and geolocation (required for some versions of the Mi Home app).

    ⚠️ Note: Aqara and Xiaomi sensors are not compatible with other vendor gateways (such as Samsung SmartThings or Tuya).If you already have a smart home on another platform, you will need an additional hub or firmware with support. Zigbee2MQTT.

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

    Consider the universal algorithm for most models. If you have a MiJia Honeywell (BLE), skip the steps associated with the gateway.

    1. Install the battery in the sensor. On the back of the device, remove the protective film from the contacts (if any) and insert the CR2032 power supply. The sensor should squeak and flash with a blue LED.
    2. Connect the gateway to the network. If you use the Xiaomi Gateway or Aqara Hub, make sure it is plugged in and connected to Wi-Fi. The indicator on the hub should be blue (green or red means error).
    3. Open the Mi Home app (or Aqara for the brand’s devices) and log in. Go to Devices β†’ Add the device.
    4. Select Sensors β†’ Water Leak Sensor. If your model doesn't show up, search by name (e.g. SJCGQ11LM).
    5. Press the pairing button on the sensor (usually hidden under the lid) and hold for 3-5 seconds until the indicator flashes.
    6. Wait until the process is complete (it can take up to 2 minutes) After a successful connection, the sensor will appear in the list of devices with the status No leak.

    Install battery in sensor |Connect gateway to 2.4 GHz network |Update Mi Home app to latest version |Enable Bluetooth and geolocation on phone |Make sure sensor is within 1-2 meters radius of gateway-->

    If the sensor is not detected, try the following steps:

    • πŸ”„ Reboot the gateway (turn off power for 10 seconds).
    • πŸ“± Reinstall the Mi Home app (sometimes cache interferes with device search).
    • πŸ“‘ Move the sensor closer to the hub (maximum distance for Zigbee is 10-15 meters indoors without obstacles).
    • πŸ”‹ Replace the battery (even if it’s new, factory marriage is possible).

    ⚠️ Note: When connecting Aqara T1 (WS-EUK01) Home Assistant will require manual addition of the device EUI (unique identifier. It can be found on a sticker under the battery or in the QR-packet-code.

    Set up notifications and automation

    The leak sensor itself is useless without an alert system. You can configure the Mi Home app:

    • πŸ“± Push notifications on your smartphone (require permission to send messages).
    • πŸ”” Sound alarm at the gateway (if supported).
    • πŸ’‘ Visual signals (blinking Yeelight lamps when triggered).
    • πŸ”Œ Automatic water shutdown (when integrated with Aqara cranes).

    To set up notifications:

    1. Open the sensor card in Mi Home.
    2. Go to Settings. β†’ Automation.
    3. Click Add Automation Add β†’ If the sensor detects a leak.
    4. Select the action: Send notification, Enable siren or Execute script.
    5. Save the rule and test by dripping water on the sensor contacts.

    For advanced users: if you use Home Assistant, add a sensor through the integration of Zigbee2MQTT or Xiaomi Miio, and then create automation by sending a message to Telegram or email.

    Alias: β€œWater leak – Telegram alert”
    
    
    trigger:
    
    
    
    
    - platform: state
    
    
    
    
    entity_id: binary_sensor.aqara_water_leak_sensor
    
    
    
    
    to: "on"
    
    
    
    
    action:
    
    
    
    
    - service: notify.telegram_bot
    
    
    
    
    data:
    
    
    
    
    message: "⚠️ Water leak detected! {{now().strftime('%H:%M') }}"
    
    
    
    
    title: "Anxiety: sensor in {{state('sensor.aqara_water_leak_location') }}"

    πŸ’‘

    If you have multiple sensors, give them meaningful names in the app (e.g., "Bathroom Under the sink," "Kitchen Under the Refrigerator"), which will help you quickly identify the source of the problem when triggered.

    The best places to install sensors

    The efficiency of the system depends not only on the correct connection, but also on the proper placement of devices, and the sensors should be installed in places with a high risk of leakage:

    • 🚿 Under the sinks (kitchen, bathroom) - fasten on a bilateral tape or magnetic holder.
    • πŸ› Next to the washing machine / dishwasher - place on the floor under the water supply hoses.
    • πŸ”₯ Near a water heater or boiler - especially important for private homes.
    • 🚽 Behind the toilet - often leak connections drain tank.
    • ❄️ Under air conditioning (if the drainage tube is brought into the sewerage system).

    Avoid installation:

    • 🚫 On metal surfaces (contacts may be disrupted).
    • 🚫 In places with direct water intake (the sensor is not waterproof!).
    • 🚫 Near sources of strong electromagnetic interference (microwaves, routers).

    For reliability, use multiple sensors in the same area, for example, under the washing machine, you can place two devices, one under the water supply hose, the other under the drain pipe, which will increase the chances of timely detection of a leak.

    How to check the performance of the sensor without water
    Moisten the cotton swab with alcohol or conductive fluid (such as salt water) and touch the contacts on the underside of the sensor, and if the device is working, it will work and send a notification.

    Frequent problems and their solutions

    Even after a successful connection, users are faced with errors, and let's look at typical scenarios and how to fix them.

    Problem.Possible causeDecision
    Sensor not responding to waterContamination of contacts or discharged batteryWash the contacts with alcohol, replace the battery
    Persistent false positivesHigh humidity in the room (for example, in the bathroom after a shower)Move the sensor to a drier location or set up notification delay
    Sensor shuts off the network.Weak Zigbee/Bluetooth signal or interference from other devicesInstall a signal repeater (e.g. Aqara Range Extender)
    No notifications coming.Push messages are disabled in the settings of the phone or applicationCheck the permissions for Mi Home in iOS/Android settings

    If the Aqara sensor periodically β€œfalls out” of the network, try to force the Zigbee channel to be specified in the gateway settings. By default, channel 11 is used, which can conflict with Wi-Fi. Optimal channels for Zigbee in Russia are 15, 20 or 25 (change in the hub’s web interface by using the Internet). IP-address).

    ⚠️ Note: MiJia Honeywell Bluetooth sensors have a limitation: they can only be connected to one device (phone or tablet).If you log out of your Mi Home account on your main phone, the sensor will become unavailable for control.

    Integration with Home Assistant and other systems

    If you use Home Assistant, OpenHAB or ioBroker, you can connect Xiaomi/Aqara sensors without an official app.

    1. Swipe the Xiaomi Gateway with alternative firmware (e.g. OpenMiHome or Zigbee2MQTT).
    2. Add Zigbee integration to Home Assistant via ZHA or Zigbee2MQTT.
    3. Set up automation using data from the sensor.

    Example configuration for configuration.yaml:

    zigbee:
    
    
    device: /dev/ttyUSB0
    
    
    
    
    baudrate: 115200
    
    
    
    
    
    binary_sensor:
    
    
    
    
    - platform: mqtt
    
    
    
    
    name: "Aqara Water Leak Sensor"
    
    
    
    
    state_topic: "zigbee2mqtt/0x12345678" # Replace with ID your sensor
    
    
    
    
    value_template: "{{ value_json.water_leak }}"
    
    
    
    
    payload_on: true
    
    
    
    
    payload_off: false

    For Apple HomeKit integration (if you have an Aqara T1):

    1. Open the Apple Home app on your iPhone.
    2. Click Add Accessory and Scan QR-sensor-code.
    3. The sensor will appear in the list of devices with the ability to configure notifications via Shortcuts.

    πŸ’‘

    Xiaomi/Aqara sensors with Matter support (e.g. Aqara T1) can be connected simultaneously to Mi Home, Home Assistant and HomeKit without conflict.

    Can I use the sensor without the Xiaomi gateway?
    Depending on the model: Aqara SJCGQ11LM – no, you need a gateway with support for Zigbee. MiJia Honeywell JTYJ-GD-01LM/BW – yes, works via Bluetooth directly with the phone. Aqara T1 (WS-EUK01) – can be connected via a Matter controller (for example, Apple TV or Home Assistant with Matter integration).
    How often should I change the battery?
    Battery life CR2032 Depending on the intensity of use: In rare cases, up to 2 years; in frequent tests or high humidity, 6-12 months; when the battery is discharged, the sensor will send low charge notifications (the icon will appear in the Mi Home). ⚠️).
    Can I use a sensor outside?
    No, all the sensors. Xiaomi/Aqara They are designed for indoor use only. They have no protection against precipitation (water protection class is usually IP44, For open spaces, use specialized devices with IP67.
    How to reset the sensor to factory settings?
    Reset: Remove the battery for 10 seconds. Put the battery back in and press the pairing button immediately (hold 10-15 seconds until the light flashes). The sensor will be ready to reconnect. If the sensor doesn't reset, try using the needle to press the hidden Reset button (located next to the battery compartment).
    What if the sensor is working, but there is no leak?
    False positives occur for the following reasons: High humidity (condensation on contacts); contamination of contacts (dust, fat); electromagnetic interference from nearby devices; Solutions: Wipe the contacts with alcohol; Move the sensor to a dryer place; adjust the delay of the operation (in some Zigbee2MQTT firmware this is available).