☔ DIY Zigbee rain gauge

this was great, very easy to convert this thing to wireless.
I 3D-printed an extension bucket to have a bigger receptor for better accuracy.
Wanted to share with the community.
Link to 3D file

the larger surface area of this one is 231 cm2, so you’ll need to re-calibrate using these numbers.

in return i hope someone can show me yaml code for how to get the past dayly rain and forcast rain for next days into one graph using apexcharts-card as shown in first post.

Cool! Thanks for sharing the 3D file.

Which weather service you want to integrate the forecast with?

im using Open Weather Map

To make a graph like that, you need data points with the amount of rain in the following way

12:00 → 1mm
12:10 → 1.1mm
12:20 → 1.3mm

I don’t think Open Weather Map provides that looking at the documentation, but if you find something like that, let me know.

1 Like

which weather provider did you use for creating that forecast graph from your original post? for me it doesnt matter yet which service to use as i am still setting my entire HA up from scratch

It’s a Dutch weather service so the question is, are you Dutch? :wink:

yep, dutchie here too, but i live in spain. looks like buienalarm works here too. I now saw your earlier post of the code for the apexchart of sept22. So i’ll use that (though i’m strugling to understand the code for the “data_generator”)
Another interesting usable integration would be openweathermapHISTORY. It supports rainforecast per day for the next 7 days. so you could make another chart with that for a longer period.

You’ll need this custom component: GitHub - aex351/home-assistant-neerslag-app: Neerslag app for Home Assistant. All-in-one package (Sensors + Card).

That will create a sensor that contains the precipitation data in it’s attributes.

The code converts it into data that the graph understands.

It’s been almost 3 years since I created the rain gauge and it’s still running on the same battery. Great piece of hardware that Aqara made.

2 Likes

Great, printed it and installed the extension bucket.
Perfect fit.

I recalculated the mm/pulse value to be (based on 231,66 cm2 area)

mm_per_pulse = 0.072088405

I wonder how much this will affect battery life, as it will flip 4x more than the original situation :wink:

3 Likes

hi @jjansen85 , nice solution on roof of garage mounted on a simple piece of wood :+1:
But I would be concerned that the electronics would be flooded in heavy rain (tropic thunder storms) if the roof was “under water” for a short time? :thinking:

br Frank

There is a hole within the wood to drain the collected water.
I have not experienced a flooded roof yet, but that might be an issue for the electronics if it occurs. You’re right.

awesome to see my design in your setup! nice to see its immediately adopted!
my sensor is calibrated at 0,9 mm per pulse, 2,1 ml per tip.
Still had no rain here in spain! so i havent seen my own setup in real action :stuck_out_tongue:

1 Like

In the meantime I have ordered and received several door sensors and the Aquara has several advantages over the other models:

  1. Build Quality is really good
  2. It seems to fit directly into the rain gauge casing

So right now I am using the original magnet that nicely triggers the Aquara Reed sensor - at first I wondered if it will, as the orientation normally is 90deg shifted, but in HA it works perfectly.

So I would just glue the Aqara board to a piece of plastic that keeps the sensor at the correct position for the magnet.

Does anyone have a ready-made solution for this? I ordered the parts as mentioned in this post, but I find it very difficult to attach the wires to the Aqara sensor. very error prone. it drives me crazy

Hi, like the post above, you could try it without soldering, however I would recommend soldering.

The most ready-made solution I could think of (and it is still DIY) is keeping the rain gauge completely original and adding some ESP to the end of the original cable. Hacking the door sensor to accept “close the contact” is a very cool hack and I am thinking about re-using this hack for a different application.
Using the sensor just as it is, keeps more original but yes it requires a mod to keep the small PCB exactly at the right place and also pressed against the plastic to the side of the magnet.

While my version currently is just an idea and POC, the initial proposal is reality-proven since several years. If my version is running as flawless as the original version, we can share recommendations in three years :slight_smile:

I do not think adding an ESP would make this easier to be honest. That would require other challenges like powering the ESP and making sure that it is not exposed to water. And you will still need to solder

Absolutely. I was just thinking if there is an easier way. Presumably it is not.

How has this been working for you? Did you get any casing for the rain detector