So I seem to either do not understand platform statistics (which is fully possible) or there is some sort of gremlin I am fighting…
In my configuration.yaml I have created a few statistics sensors:
If I use “mean” everything works.
If I use “average_linear” it kind of works, however from time to time I loose a few hours of data, if the max_age is 6h
If I on the other hand use “average_linear” with a max age of 72h - it works.
If I choose to look on the graph on the sensor that is used for the statistic sensor, the “sensor.ljussensor_sovrum_air_temperature” it shows data for all time, there are no visible gaps of data.
But for max_age = 6h and average_linera, there are drop outs from time to time for a hour or two - I find no reason for the drop outs. I simply fail to understand why it from time to time is unavaible statistic sensor data… From my point of view the data is in the original sensor - it is just when I set max_age to 6h it seems to fail for me?
Am I doing something wrong here?