How to monitor the max voltage with the corresponding date and time

I want to monitor the maximum voltage on the GRID. I have already a shelly PM installed nearby the power meter, so that one can monitor the voltage. But i want to monitor also the maximum value ( peak) and its time/date when it happons

I used first

# Example configuration.yaml entry
  - platform: min_max
      - sensor.shelly_wtw_voltage

but it his not work , ik did not het a max value
So i tried a different one

  - platform: statistics
    name: "shelly voltage (max)"
    entity_id: sensor.shelly_wtw_voltage
    state_characteristic: value_max
      hours: 168

This one is working , but i need to add a max_age. But i need a unlimited one, who will not reset after a time.
And also i want to add its date/time when this peak happoned, and it should not resetted when HA is rebooted