Turn an Aqara Water Leak Sensor into an instant rain meter

Disclosure: This post contains affiliate links. If you click through and make a purchase, I’ll earn a commission, at no additional cost to you. Read my full disclosure here.

In this guide I’ll be showing you how to convert a readily available Aqara Water Leak Sensor into an instant rain meter. This project requires no soldering and only a few jumper wires and a rain sensor board to be completed. There is no complicated setup and, as long as you are already using Zigbee and have a hub set up, it will be integrated with Home Assistant instantly.

Please note that when purchasing any Aqara sensor, you might discover that there is a new version available. One with the ending T1. The Aqara T1 devices are Zigbee certified and all use Zigbee 3.0. In this case, however, the Aqara Water Leak Sensor T1 is only confirmed to be working with Zigbee2MQTT and ZiGate. If you can, go with the T1 version but the non-T1 version will have a broader compatibility.

At a glance

Aqara Water Leak Sensor

IP rating: IP67 Dustproof and Waterproof Rating

Compatibility: Zigbee2MQTT, ZHA, Tasmota, deCONZ

I’ve long been a big fan of Aqara Zigbee products. They look good, don’t cost much, and are generally pretty accurate. There exactly the type of no-nonsense smart home products I like. Additionally, as this project shows, they can be easily modified for to fulfil a different function than they’re intended for.

A rain sensor which can be attached to an Aqara Water Leak Sensor
An example of a rain sensor

This project utilizes a rain sensor, which has a series of exposed traces on one side. These traces are not connected but are near enough to each other to be bridged by raindrops. Thus, the first drop of rain will immediately close the circuit, changing the binary status of the Aqara Water Leak Sensor.

How to attach a rain sensor to an Aqara Water Leak Sensor

The fact that the Aqara Water Leak Sensor has two probes on its underside, to which you can attach any binary sensor, makes this project a lot easier. There is absolutely no soldering involved. All you need is a hex screwdriver to loosen the probes.

The probes on an Aqara Water Leak Sensor
The probes on an Aqara Water Leak Sensor

Most rain sensors will come with a daughterboard, which will turn the digital signal (on/off) in to an analogue signal, which can report the exact impedance back to the controller. This project only uses the rain sensor, so it will only report whether it is raining or not, and not how much water is on the board.

Fielect Raindrops Module Raindrop Detection Sensor Humidity Rain Weather Sensitivity Monitoring for Arduino 1pcs
  • This module can monitor various weather conditions
  • Comparator output with clean signal, good waveform and more than 15mA strong driving ability
  • Output form: digital switching output (0 and 1) and analog AO voltage output
  • When there is no water droplet on the sensor board, the DO output is high level, the switch indicator light is off
  • With a potentiometer to adjust the sensitivity, use a wide voltage LM393 comparator

The rain sensor will have two pins on one of its sides, which you can easily attach to the probes using two jumper wires. To make things a bit more secure, I would use some hot glue to attach the wire to the sensor more permanently.

Where to place the rain meter

As the Aqara Water Leak Sensor is IP67-rated, it should survive in a body of water up to a meter deep for half an hour. For you, that means that you needn’t be too picky about where to place your newly constructed rain meter.

There are also a number of 3D prints available for exactly this project. Just make sure you buy a rain sensor that fits the slot, or you will have to manually adjust the model.

Possible issues with the Aqara rain meter

Depending on where you live, the nighttime humidity might be enough to trigger the sensor, as the creator of this 3D model found out. But as you’re unlikely to need a rain meter during the night, you might be able to live with it.

Another issue is that the rain sensor isn’t heated as it would be on many commercially available products. While your sensor will immediately react to rain, it might take some time for it to be able to report that it isn’t raining any more.

Finally, a shoddily constructed rain meter will degrade over time. The traces might rust or the jumper wires come loose. If you do want to extend the lifetime of your rain meter, makes sure you give it proper protection by placing everything that doesn’t need to be exposed into a chassis.

About Liam Alexander Colman

Liam Alexander Colman has been using Home Assistant for various projects for quite some time. What started of with a Raspberry Pi quickly became three Raspberry Pis and eventually a full-blown server. I now use Unraid as my operating system and Home Assistant happily runs in a Docker container. My personal setup includes many Zigbee devices as well as integrations with existing products such as my Android TV box. Read on to find out more on how I got started with Home Assistant.

Leave a comment