Long term statistics only work for sensors that have a state_class of measurement, total or total_increasing.