Hi,
I have this sensor:
sensor:
- platform: statistics
name: "Potenza media 1 Piano"
entity_id: sensor.sonoff_power
state_characteristic: mean
sampling_size: 5
max_age:
minutes: 1
Every minute the statistic sensor will be reset (max_age
) indipendently from sampling_size
. I need to get the last sensor value before the reset, that correspond to the correct mean value in a minute. Is it possible? Without using automation or secondary sensor. Can help age_coverage_ratio
or buffer_usage_ratio
attributes?
Thanks