I’ve trouble with a self configured statistic sensor. Them same way I also configured a working one for a shorter period of observation.
Working:
- platform: statistics
entity_id: sensor.nano_pk_pellet_consumption
name: pellet-change-7d
state_characteristic: change
max_age:
hours: 168
sampling_size: 275
Behaving strange:
- platform: statistics
entity_id: sensor.nano_pk_pellet_consumption
name: pellet-change-30d
state_characteristic: change
max_age:
hours: 720
sampling_size: 9000
Attributes:
Working:
state_class: measurement
age_coverage_ratio: 0.99
buffer_usage_ratio: 0.47
source_value_valid: true
unit_of_measurement: kg
icon: mdi:calculator
friendly_name: pellet-change-7d
Behaving strange:
state_class: measurement
age_coverage_ratio: 0.35
buffer_usage_ratio: 0.02
source_value_valid: true
unit_of_measurement: kg
icon: mdi:calculator
friendly_name: pellet-change-30d
The source is a total increasing value with no change for negativ rates/values.
Source
Working
Strange
My problem is that the 30d sensort never reach ~1 age_coverage_ratio.
I thought, that configuring a stat sensor is enough to keep the dates. I created that sensor last year. Do I miss something?