History stats are great, but they can only go back as far as the number of days in purge_keep_days
set in recorder
in your configuration. I wanted a way to track and display my furnace filter runtime and an estimated number of days until the filter will need to be changed in my frontend without recording 30+ days of history. This package takes care of that. It only needs one day of history to record total runtime and seven days to calculate the number of days until the filter will need to be changed (based on an hour threshold you set with an input_number).
I released a version of this a few months ago, but I ended up enhancing it so I figured I’d make another post. The link below has everything you need to get started: