Ja
Du kan lett lage en min og max hjelper og deretter bruke statistikk på disse to.
En kan også droppe min, max og statistikk hjelpere og heller lage to mal-sensorer der en selv setter betingelse for "nullstilling".
I eksempelet nedenfor blir det nullstilt hver 3. time
- unique_id: 47be1d1a-a2be-44c5-b0fc-ed699bd2f4a1
name: "max spenning siste timer"
unit_of_measurement: "V"
state: >-
{% if now().minute == 0 and now().hour % 3 == 0 %}
{{ (states('sensor.klepp_energi_spenning_l1')|float, states('sensor.klepp_energi_spenning_l2')|float, states('sensor.klepp_energi_spenning_l3')|float)|max }}
{% else %}
{{ (this.state|float(0.0), states('sensor.klepp_energi_spenning_l1')|float, states('sensor.klepp_energi_spenning_l2')|float, states('sensor.klepp_energi_spenning_l3')|float)|max }}
{% endif %}
- unique_id: 7bcf9dfd-2735-46cb-817a-a7b5abc7000a
name: "min spenning siste timer"
unit_of_measurement: "V"
state: >-
{% if now().minute == 0 and now().hour % 3 == 0 %}
{{ (states('sensor.klepp_energi_spenning_l1')|float, states('sensor.klepp_energi_spenning_l2')|float, states('sensor.klepp_energi_spenning_l3')|float)|min }}
{% else %}
{{ (this.state|float(400.0), states('sensor.klepp_energi_spenning_l1')|float, states('sensor.klepp_energi_spenning_l2')|float, states('sensor.klepp_energi_spenning_l3')|float)|min }}
{% endif %}