☔ DIY Zigbee rain gauge

Is there still a need for this or any advantages instead of using the history stats way?

When i restart HA the value of the rainsensor won’t reset.

I could never get the original method to work properly, it would always reset after restarting HA and I’d lose the total for the day.

The counter method has worked flawlessly for me.

1 Like

I wanted to show a chart of weekly rainfall over a year. I uses Apex charts as below but the chart only ever shows the current week or so, any suggestions on what I am doing wrong?
Thanks.
type: custom:apexcharts-card
graph_span: 365d
header:
show: true
title: RAINFALL WEEKLY
show_states: true
span:
start: week
offset: ‘-364d’
series:

  • entity: sensor.rainfall_weekly
    color: aqua
    type: column
    group_by:
    func: max
    duration: 1w
    image

It’s probably because your apexchart only looks at the history, which is kept for 2 weeks by default I think. The chart should use the long term statistics, which contains data kept ‘forever’.

You could use the default HA card, and do it like this.

chart_type: bar
period: week
type: statistics-graph
entities:
  - sensor.rain_week
stat_types:
  - state
title: Weekly
days_to_show: 365

Thanks, I tried that and it just stuck on displaying “Loading statistics…”

How is the respons time and sensitivity of this rain gauge? Does it respond immediately when it’s starting to drizzle? Like picture below?
image

This gauge is mainly to measure the amount of rain, rather than detecting rain. For detecting rain, there is a better way. Search for rain drop sensor. You can hook that sensor up to an aqara sensor as well

1 Like

Hi,

I want to setup the apex card to graph the forecast and intensity, I am looking over it probably in this chain, but do you have a code for the card? I tried to make it myself using the attributes of the buienalarm but have not been successful.

Thanks for this DYI project!

Accuracy is 0.3 mm. It reacts after detecting such precipitation. Overall, it works very nicely. I calibrated it with a manual meter and it is perfect.

1 Like

I’ve added it to the original post, under the screenshots of the graphs!