Buienradar Rain 1d

QQ for verification: Buienradar has very many sensors, but I am interested in these:

  • Rain 1d, Rain 2d, Rain 3d, Rain 4d, Rain 5d

Are these backward looking? Meaning do they tell how much rain fell yesterday, day before yesterday, etc?

Looking to this to maybe assist me in determining whether to turn on sprinklers

According to the documentation these look forward. For backward values you can use the history of the Rain last 24h

Thanks, your empirical highness!

So this is a running total…

If I would like to 1) check every day at 20:00 (irrigation after dark, but to be decided when I’m still awake), what the 2) total rain was for the last 5 days. Preferably not by using an automation but by some sort of statistics sensor?

Hello Spiffo,

Personally, I look at yesterdays rain by storing the value in a helper just before midnight, then use that to vary the amount of time the sprinkler is on the next day. The compensation Integration calculates the number based on my parameters.
This is the 3 chunks of code for that:

I think this is possible with a statistics sensor like this:

sensor:
  - platform: statistics
    name: "Rain last five days"
    unique_id: uid_rain_last_five_days
    entity_id: sensor.rain_last_24h
    state_characteristic: sum_differences_nonnegative
    max_age:
      days: 5

This uses the “Rain last 24h” sensor from Buienradar, and sums all the values from the last five days.

Hmmm… I have to come back on this, because it isn’t functioning like I expected.
This statistics sensor works perfectly with my Netatmo rain sensor, but apparently the Buienradar 24h sensor behaves differently.
The Netatmo sensor counts the total precipitation for the current day, and this value is reset at 00:00 every day:

The statistics sensor handles that correctly, showing the total amount of precipitation for the last five days:

However, the Buienradar sensor gives the total amount of precipitation for each last 24 hours:

And the statistics sensor also counts the values when the amount goes down:

I did expect that only the values going up would be counted (nonnegative), but apparently it doesn’t work like that.

Perhaps it is possible to use the Buienradar sensor “Rain 1d” with a statistics sensor like this?
Anyhow, it of course is better to use real measured precipitation values, like with a Netatmo sensor, and not use predicted values like the Buienradar sensors.