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.
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.
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.
- 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.