How to connect the water leak sensor Xiaomi: instructions with photos and installation tips

Water accidents are one of the most common causes of apartment flooding, causing costly repairs to neighbors below. Even a small leak under the sink can turn into mold, spoiled furniture and conflicts with the management company. Xiaomi’s water leak sensor solves this problem by instantly alerting you to moisture β€” but only with the right connection and setting.

In this article, you will find the latest connection instructions for all modern sensor models (MiJia Honeywell Water Leak Sensor, Aqara Water Leak Sensor and their clones), including the nuances of working with the Mi Home application and alternative platforms like Apple HomeKit. We will analyze not only the basic installation, but also the optimal layout, setting up automatic scenarios (for example, overlapping water through the valve) and ways to eliminate typical errors like β€œI don’t see the sensor in the application”.

What models of water leakage sensors does Xiaomi produce?

Under the Xiaomi brand and its Aqara ecosystem, several sensor models are produced, distinguished by design, communication protocol and compatibility.

  • πŸ”Ή MiJia Honeywell Water Leak Sensor (MJWSD05MMC) β€” The classic Zigbee model, running through the Xiaomi Gateway, supports the temperature sensor and external contacts to connect wires.
  • πŸ”Ή Aqara Water Leak Sensor (SJCGQ11LM) β€” compact version with Zigbee 3.0, compatible with Apple HomeKit (requires Aqara Hub gateway) has a built-in buzzer for sound alerts.
  • πŸ”Ή Xiaomi Mi Sensor Set (includes leak sensor) – budget set with Bluetooth sensor, works directly with the smartphone (without a gateway), but with a limited range.

Important: Bluetooth models (such as those from the Mi Sensor Set) don’t automatically integrate with smart valves or other devices, they only send notifications to the phone. Full automation (overlapping water, turning on lights when leaking) requires a Zigbee sensor and a gateway.

ModelProtocolNeed a lock?Compatibility with HomeKitAdditional functions
MiJia Honeywell MJWSD05MMCZigbeeYes.No.Temperature sensor, external contacts
Aqara SJCGQ11LMZigbee 3.0Yes.Yes (via Aqara Hub)Zummer, compact body
Mi Sensor Set (Bluetooth)Bluetooth LENo.No.It works without a gateway, low price

If you’re just planning to buy, look for Zigbee models, which offer more automation options, and a Bluetooth option is also suitable for rental housing or temporary use.

πŸ“Š What kind of water leak sensor do you have?
MiJia Honeywell
Aqara
Mi Sensor Set (Bluetooth)
Other
I haven't bought it yet.

What's it gonna take to connect?

Before you start installing, check for everything you need. For Zigbee sensors (MiJia Honeywell or Aqara), you will need:

  • πŸ“± Smartphone with Mi Home app installed (Android/iOS) Aqara Home (for HomeKit).
  • 🌐 Xiaomi Gateway (for MiJia) or Aqara Hub (for Aqara) connected to Wi-Fi and outlet.
  • πŸ”‹ Battery CR2032 (It usually comes in a bundle, but check the charge before installing).
  • πŸ“Ά Stable Internet connection (gateway must be online).

Bluetooth models (Mi Sensor Set) do not need a gateway, but keep in mind:

  • ⚠️ Radio of action - up to 10 meters in line of sight (walls reduce the range).
  • ⚠️ The phone must be constantly in the range of the sensor to receive notifications.

⚠️ Note: If you are using the Aqara Water Leak Sensor with Apple HomeKit, the Aqara Hub gateway must be stitched to the latest version of the software (check in the Aqara Home app in Devices section). β†’ Gateway β†’ Update: Older firmware versions may not support HomeKit.

Also prepare the installation site: the sensor should lie on a flat surface, and the contacts (two metal pins on the bottom panel) should be directed down. Avoid places with constant vibration (for example, near the washing machine during spinning) - this can cause false positives.

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

Take a look at MiJia Honeywell Water Leak Sensor (MJWSD05MMC) β€” The steps are similar for Aqara, but instead of Mi Home, use the Aqara Home app.

  1. Set the battery. On the back of the sensor, move the latch and insert the battery. CR2032 (Polarity is indicated on the case. Close the lid before you click.
  2. Activate pairing mode. Press the button on the sensor for 5 seconds until the indicator flashes blue (yellow for Aqara).
  3. Add the device to Mi Home: Open the Mi Home app and go to the Profile section β†’ Settings β†’ Add the device. Select the Sensor category, then the Water Leak Sensor. Follow the instructions on the screen. If the sensor is not located, check:

Make sure the gateway is on and connected to Wi-Fi|

Check the distance between the sensor and the gateway (max. 10-15 )|

Reset the gateway (remove the plug from the socket for 30 seconds)|

Update the gateway firmware in Mi Home (Profile) β†’ Xiaomi Gateway β†’ Update)|

Try resetting the sensor (clip the button for 10 seconds until double blinking)-->

Once you've successfully connected, the sensor will appear in the list of devices.

  • πŸ”” Set up notifications (enable the Alert option when water is detected).
  • πŸ“Š View the history of the operation (section Journal).
  • πŸ”§ Assign a name (for example, "Sensor under the bathroom" or "Kitchen under the sink").

⚠️ Note: If you use a sensor in a system with multiple gateways (such as a large house), tie it to the gateway that is physically closer. 1-2 minute.

Where to install the water leak sensor correctly?

The efficiency of the sensor depends on the location of the installation, and here are the optimal areas for placement, taking into account typical leakage sites:

  • 🚿 Under the sink in the kitchen / bathroom: place the sensor on the floor next to the siphon. If space is limited, use extension wires (company with MiJia Honeywell) - they can be stretched to the most "problematic" place.
  • 🚽 Next to the toilet: optimally, at the junction of the supply hose and the tank. If you're afraid of false positives from condensation, put a piece of foam under the sensor.
  • πŸ› Under the bathtub: the sensor should be on the floor at the feet of the bathtub. If the bathtub is closed by a screen, drill a small hole for wires in it.
  • ❄️ Under the washing machine/dishwasher: place the sensor on the floor by the drain hose. Avoid areas where splashes are possible while the machine is running.
  • πŸ”₯ Near water heater: especially relevant for boilers over 5 years old.Install the sensor under the safety valve.

Tip: If you have multiple sensors, give them names with location (e.g., "Kitchen under sink," "Bathroom under shower"), which will help you navigate quickly when you activate.

How to check the operability of the sensor?
To make sure that the sensor is working, drop a few drops of water on its contacts. 1-2 seconds: 1. Blink the red indicator. 2. Signal (if there is a buzzer). 3. Send a push notification to your phone, and if nothing happens, check the battery or reconnect the sensor.

To improve reliability, use sensors paired with a smart water-overlapping valve (such as the Aqara Water Valve Controller), in which case, if a leak is detected, the system will automatically block the water.

Automation setting: water closure and notifications

Basic leak notifications are good, but true flood protection requires automatic action. - With sensors Xiaomi/Aqara Based on Zigbee can be configured:

  • 🚰 Overlaying water through a smart valve (e.g., Aqara) E1).
  • πŸ”” Sound siren (through a gateway or device like the Aqara Alarm).
  • πŸ’‘ Turning on the light (for example, flashing the Yeelight light bulb when triggered).
  • πŸ“± Calling the phone (via the service) IFTTT or Mi Home Automations).

Let’s look at the example of automatic water cover:

  1. Make sure you have a smart valve installed (like the Aqara Water Valve Controller) and it is connected to the same gateway as the sensor.
  2. Open Mi Home, go to Automation section β†’ Create β†’ If....
  3. Select the condition: Water leak sensor β†’ Water presence detected.
  4. Add the action: Smart valve β†’ Close it.
  5. Save the script and test it by dripping water onto the sensor.

For Apple HomeKit, the setting is similar, but it is done in the app Home (iOS):

  1. Go to Automation. β†’ Create personal automation.
  2. Select the trigger Sensor detected water.
  3. Add Valve Control (select your Aqara Valve).
  4. Press Ready and turn on automation.

⚠️ Warning: If you have a pressure pump installed, adjust the delay before closing the valve (2-3 Abrupt closure can cause hydraulic shock and damage to pipes. Delay can be added to the script via the option Delayed execution.

πŸ’‘

For additional protection, set up duplicate notifications via Telegram bot. Mi Home has built-in integration with the app. IFTTT, where you can create an applet: "If the sensor is triggered β†’ send a message to Telegram".

Typical errors and their solution

Even with the right connection, users face problems, and here are the most common ones and ways to fix them:

Problem.Possible causeDecision
The sensor is not in Mi Home.Gateway not online or too far awayCheck the gateway connection to Wi-Fi and distance (max. 10-15 )
False positivesCondensation or splashes get on the contactsMove the sensor or use a foam substrate
No phone notifications.Push notifications are disabled in Mi Home settingsCheck the permissions in the phone settings β†’ Notifications β†’ Mi Home
Sensor not responding to waterBattery discharged or contacts oxidizedReplace the battery and wipe the contacts with alcohol
Automation with the valve does not workThe valve is not on the same network as the sensor.Reconfigure the script by making sure both devices are tied to the same gateway

If the sensor is periodically disconnected from the gateway, try:

  • πŸ”„ Reconnect it (remove and add again).
  • πŸ“Ά Install a Zigbee repeater (e.g., Aqara Range Extender) to amplify the signal.
  • πŸ”‹ Replace the battery – even if the indicator shows charge, the battery can be β€œsucked".

To diagnose connection problems in Mi Home, go to Profile β†’ Devices β†’ Select a sensor β†’ Status. This is the signal strength (RSSI). The optimal value is higher -70 dBm, if the score is worse. -90 dBm, the sensor is too far from the gateway.

Compatibility with other smart home systems

Xiaomi’s water leak sensors can be integrated not only into its ecosystem, but also into other platforms.

  • 🍎 Apple HomeKit: Only Aqara Water Leak Sensor runs through the Aqara Hub Gateway M1S or M2). Use the Aqara Home app to set up, then add the gateway to the Home (iOS).
  • πŸ€– Google Home: No official support, but you can use Home Assistant with Xiaomi Mi Home Integration plugin. YAML-configuration.
  • 🌐 Home Assistant: Supports all Zigbee sensors through integration ZHA (If you have a Zigbee coordinator like Sonoff Zigbee 3.0 or Mi Home Integration for cloud connectivity).
  • πŸ”„ IFTTT: Mi Home has built-in integration, for example, you can create an applet: If the sensor is triggered. β†’ turn on a smart socket with a pump for pumping water".

For advanced users, an interesting option would be to bundle with Home Assistant, for example, you can configure:

  • Sending. SMS via Twilio in leakage.
  • Automatically create a task in Trello or Google Sheets with time and place of operation.
  • Integration with cameras (e.g. Xiaomi Camera) to record video when water is detected.

Example of code for Home Assistant (add to configuration.yaml):

binary_sensor:


- platform: mqtt




name: "Water Leak Sensor Kitchen"




state_topic: "zigbee2mqtt/Kitchen_Water_Sensor"




value_template: "{{ value_json.water_leak }}"




payload_on: true




payload_off: false

⚠️ Note: When using Home Assistant with cloud connectivity (via Mi Home Integration), notifications may be delayed until 5-10 For critical systems (e.g. water closure), it is better to use local connection via Zigbee.

FAQ: Frequent questions about Xiaomi water leak sensors

Can I use the sensor without a gateway?
Yes, but only Bluetooth models (such as those from the Mi Sensor Set) that send notifications directly to the phone, but do not support automation with other devices, and to work properly (including integration with valves or sirens) you need a Zigbee sensor and gateway.
How often should I change the battery?
Battery life CR2032 β€” It is recommended that the battery is discharged more quickly if the sensor is triggered frequently (for example, due to false signals), and that the battery be checked every 6 months through the Mi Home app in the Device Status section.
Can I connect the sensor to multiple gateways?
No, the sensor can only be tied to one gateway.If you need to duplicate the signal to another gateway (for example, for redundancy), use automation through Home Assistant or IFTTT, where one gateway will be the source of data and the other the performer.
What if the sensor is working but there is no water?
Probable causes: Condensate β€” wipe the sensor and move it away from cold surfaces; dust or dirt on the contacts β€” clean them with a cotton swab dipped in alcohol; electromagnetic interference β€” check if there are powerful sources nearby (microwave, router); malfunction β€” try to reset the sensor (press the button for 10 seconds) or replace the battery.
Will the sensor be suitable for a tank with an aquarium?
Technically yes, but keep in mind: 🐟 The sensor will only work when it comes into direct contact with water – if the aquarium is leaking down a drop, the alert may come too late. πŸ’§ For aquariums, it is better to use water level sensors (for example, Aqara Flood Sensor), which respond to changes in the height of the liquid. ⚑ If you use a leak sensor, place it under the joints of the aquarium glass or next to the filter.