I created an automation that counts the defrosting of my heat pump. The counter value counter.defrost gets correctly incremented each time the the heat pump defrosts. Now I want to see how many defrosting I have per day/per week/per month and so so on and do some statistics. How can this be done? The standard history_stats do not support values of type “counter”.