Enphase Envoy non-zero Todays Power Consumption

Hi.
We have a new Enphase Envoy solar system in two groups of panels (north west and north east). A couple of days ago the installer came and switched us from a two phase setup (one group of panels per phase) to a single phase setup (all panels together).
When the system rebooted, it looks like the total energy production to date was set as the zero point for Todays Energy Produced. Ditto for Todays Energy Consumed. We see some pretty weird values for a tiny home system:

The Envoy seems to report 331kWh as the starting Todays Energy Production.

The dips to zero in the graph above are me using the developer tools State tool to try and set the value to zero. Didn’t work.

This messes up the Energy dashboard: the initial bar is too big: which makes the real usage is just a tiny blip

I’ve tried rebooting everything (envoy + HA), removing the Envoy integration, reboot, then reinstall, and some other general poking around. It appears the offset is coming from the Envoy every few minutes: so its not a HA thing?
Our installer set the System Start Date to the day after the physical change was made to try and reset the value. That didn’t work. I contacted Envoy Support to see if they could reset the value. They said “We can not change the data I am sorry”. I found the installer password generator and poked around in the envoy.local admin panel. I could not see anywhere to reset the statistics.

What else can i try?

The behaviour I expect is that Today’s Energy Consumption would return to zero every day. Same for Todays Energy Production. I see the value return to very large non zero values that swamp the energy graphs.

HA v2022.12. Envoy D5.0.62 (5e57a9)

For those who follow: I never found a fix, but my work around was to create new template sensors in configuration.yaml that subtract the offsets for todays energy production and consumption. I didn’t bother with last seven days and lifetime values because there are better tools inside Home Assistant to view that kind of information

template:
  - sensor:
      # here we fix a bug in Envoy so the Energy dashboard works correctly
      name: "Todays Energy Production"
      unique_id: todays_energy_production
      device_class: energy
      unit_of_measurement: Wh
      icon: mdi:flash
      state_class: total_increasing
      # the magic number below is the offset that the envoy resets to every day at midnight due to a bug in the Envoy
      state: '{{ [0, states("sensor.envoy_today_s_energy_production")|int(default=0) - 310717] | max }}'
  - sensor:
      # here we fix a bug in Envoy so the Energy dashboard works correctly
      name: "Todays Energy Consumption"
      unique_id: todays_energy_consumption
      device_class: energy
      unit_of_measurement: Wh
      icon: mdi:flash
      state_class: total_increasing
      # the magic number below is the offset that the envoy resets to every day at midnight due to a bug in the Envoy
      state: '{{ [0, states("sensor.envoy_today_s_energy_consumption")|int(default=0) - 118004] | max }}'