Statistics Sensor and Null Values

How do statistics sensors handle null values?

I have a CT Clamp on my HVAC and I’m using the statistics sensor to get an average of power usage when the only the fan is on. I’m hoping to use this to get notified when I need to change the filter when the wattage goes above a value where I know it is clogged and should be changed.

I’m using the statistics sensor to calculate the daily average but I think it is being affected when there are more or less data to calcuate on. Like when the heating is on longer on cold days, there are less values for the calcualtion when only the fan is on and the average is dropping. I’m currently using ‘mean’ because it is timeless.


I changed the filter on December 12th and you can see the average dropping, but then it raised and dropped again, and I’m not sure why.

Am I using the right state_characteristic?

image