Please excuse my ignorance on all things statistical(!)
I’m after creating a graph/sensor of the rate of change of a vehicle odometer. The vehicle sensor currently just changes to the current mileage of the car every now and then - I’d really like a sensor showing the rate of change (over the last 7/14/30 days), that way I can predict what the mileage will be in 12 months (it’s a lease vehicle so we don’t want to over-do the mileage)
The derivative would normally be used for rate of change, but that isn’t very well suited for long periods or sensors that do not change often, or stay constant for long periods.
For your usecase I would advise the Utility Meter integration, It is not a range of change, but you can get milage per week/month etc. from the odometer. While it is described for energy, there’s no reason it couldn’t be used for other total counters.
unfortunately you’re right about that. but also unfortunately it’s a self-inflicted bug that no one seems interested in trying to solve. The bug report has been open for months.
Otherwise the derivative sensor would be the perfect use for that.