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

Template as the max_age of a statistics sensor

$
0
0

I noticed that the following does not work.

  - platform: statistics
    name: Statistics Starting at Midnight
    entity_id: sensor.processor_temperature
    state_characteristic: mean
    max_age: "{{ now().timestamp() | timestamp_custom('%H:%M:%S') }}"
    sampling_size: 100000

Is it simply that templating is not accepted here, or am I doing something wrong?

I was trying a way to do the same as the HADailySensor, a custom integration which aggregates until midnight, when it resets. Being able to use the statistics integration for this would make it more advanced.

Any other way I can achieve the same?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 105656

Trending Articles



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