I have fair success creating sliding windows as discussed in this thread:
https://community.home-assistant.io/t/statistics-sensor-becomes-intermittent/591213
But in that thread I also raised a question about a problem that I’m having where some data is just being ignored during heavier rain events. No feedback as of yet. And I haven’t fought with it much the last few days to try and find a solution.
One of the things I also generated from the 1 hour sliding window statistics sensor is a bar graph like this using the ‘statistics graph card’:
It does a pretty good job of giving you a sense of the rain rate hour by hour. Though there is some flakiness with how it updates between rain events.
Hopefully what I have done will offer you some ideas or inspiration.