Calculate Rain Rate from Rain Sensor

Hi,

I am new in Home Assistant and still a little bit struggeling with the sensors.

I have a WUnderground Weather Station with a rain sensor.

I can read the sensor sensor.pws.precip_today_metric.

Can I somehow use this sensor and calculate a hourly rain rate for an intervall of 10 minutes?

Best Regards,
Johannes

How are you defining your hourly rate? Is it just WU’s value divided by 24?

Hi,

I would say:

Take the “today value” every 10 minutes. substract the vlaue from 10 minutes ago, multiply with 6.
Then I should have a hourly rate which is updated every 10 minutes.

Br,
Johannes

I’m not sure you can schedule when you get the sensor update, and I’m not sure either how you’d get the value from 10 min ago. It sounds a bit complicated…

Perhaps a moving average filter sensor.