I have a Popp rain sensor which displays the accumulated rain volume since it was included in the system. I have included the sensor in the recorder and I can see a history chart of the value by clicking the sensor.
What I would like is to extract is the accumulated rain volume during the last 12 or 24 hours, i.e. rain_volume(now) - rain_volume(now - 12 hours).
Except I think the max_age of the stats sensor is broken.
I was getting odd values when trying to find the maximum value of one of my sensors over the last 8 hours. Then I found this: https://github.com/home-assistant/home-assistant/issues/11801 looks like a fix has fallen off the end of the to-do list.
Yes I’ve been using the history stats sensor to count the number of times a door/window sensor is activated with the idea that I can (eventually) have an idea of when the batteries will run out. I found it unreliable and I was using count.