I have a robot vacuum, which integrates with Home Assistant through the Tuya integration.
It gives me two statistics on its most recent run: how much time the run took, and how many square meters it cleaned.
I find these statistics very interesting, but unfortunately they reset to zero the next time the robot vacuum starts. This makes the statistics somewhat unusable, as I want to be able to see things like “how much time has the vacuum cleaner been running the entire month”, rather than “how much time did the last run take”, which is the only thing I can see now – and that only if I did not have to interrupt the run, which I sometimes have to do if the vacuum cleaner starts eating some cables or a stray sock or some such.
I had a look at some of the integrations that exist, and the closest I could find was the “integral” integration, which creates a Riemann sum, but that seems like it would miss a step and not the best way regardless.
Help?