Whasher/Dryer statistics with variable timeframe

Hi all,

pretty new to HA and so far I love the possibilities of the system.
Especially the energy dashboard is nice as it shows me the data of a selected timeframe (day, month, year…) and I can compare them to previous timeframes.

I would like to have this information also for other questions like:

  • How many cycles did the dryer finish this year
  • Compare: How many cycles did the dryer finish last year?
  • What`s the total operation time of the dryer in a time period from June to July?

Basically this is possible for the energy consumption as long as there is a sensor which is summing up the consumed energy over time (which I`m already using for the heat pump to track the single consumption).

Is there a way to apply this variable time frame also to other sensors like a counter which simply adds +1 every time the dryer finishes the cycle?
Everything I find is statistics sensors where a fixed time frame is applied.