MAX temp sensor with resetting everyday at 20:00

Hi
I have now used some hours to get HA to display MAX temperatures measured during the day.
I would like to reset every day at 20:00.

Min_max temperatures cannot be used because it combine the temperatures from more than one sensor.

The project: Monitoring the temperatures in the greenhouse.
I use an Sonoff SI7025 sensor with tasmota.

I use the statistics sensor for this over 24hrs - so it will span the days but generally, the daily minimum is around 6am and maximum in the afternoon so generally speaking it’s correct.

How do you get the max_value out from the statistics sensor?

It’s an attribute - same as min

      bom_today_max:
        entity_id:
          - sensor.bom_gosford_max_temp_c_0
          - sensor.today_temp_bom
        value_template: >
          {%- if states('sensor.bom_gosford_max_temp_c_0') == 'n/a' -%} 
            {{ state_attr('sensor.today_temp_bom', 'max_value') }}
          {% else %}
            {{ states('sensor.bom_gosford_max_temp_c_0') }}
          {% endif %}

      bom_today_min:
        entity_id:
          - sensor.bom_gosford_min_temp_c_0
          - sensor.today_temp_bom
        value_template: >
          {%- if states('sensor.bom_gosford_min_temp_c_0') == 'n/a' -%} 
            {{ state_attr('sensor.today_temp_bom', 'min_value') }}
          {% else %}
            {{ states('sensor.bom_gosford_min_temp_c_0') }}
          {% endif %}


  - platform: statistics
    name: today_temp_bom
    sampling_size: 150
    entity_id: sensor.bom_gosford_air_temp_c
    max_age:
      hours: 24

It only uses the statistics if the forecast value from my BOM sensor has disappeared (which it does after the minimum and maximum have been reached)