Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105653

Statistic sensor. Get the correct mean value at the end of max_age

$
0
0

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

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 105653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>