How make MQTT sensor reset every day at midnight?

I have a battery storage system that every 5 minutes sends the daily total in KWh for battery charge and battery use, to HASS. My purpose is to use these for the energy dashboard.

However I cannot figure out how to make HASS to reset these at midnight everyday.
Seen a lot of posts on similar but I cannot find a solution thats understandable to me.

I guess I should use last_reset, but how to make it reset at 00:00 every day?

mqtt:
sensor:
- name: “TodaysBatteryCharge”
state_topic: “ESS/ToBattery”
unit_of_measurement: “kWh”
unique_id: “TodaysBatteryCharge”
device_class: energy
state_class: total

- name: "TodaysBatteryUsage"
  state_topic: "ESS/FromBattery"
  unit_of_measurement: "kWh"
  unique_id: "TodaysBatteryUsage"
  device_class: energy
  state_class: total

Does your battery system support a reset command ? If not, use an Utility Meter