Utility meter - values after restart, am I doing it wrong?

What are you meant to use as the source for utility meters?

When I restart, they set to the TOTAL value, instead of continue from where they were prior to the restart.

e.g.

solar_power_production_hourly:
  source: sensor.solar_power_production_total
  cycle: hourly
  name: Solar Power Production (Hourly)

Prior to restart:
Power1

Then - you can see the restart here:

How is sensor.solar_power_production_total defined?

Is it a template sensor?

It comes from the solarman integration - its basically the total solar power produced - so it always hoes up/never resets.

The source sensor is reporting 0 when you restart, rather than unavailable. Then when it jumps to the previous total that whole amount is added to the utility meter. This does not happen if the source sensor goes from unavailable to the total.

The solarman integration appears to be a third party integration. Open an issue with the developer.

Ah - thank you, I can probably fix that with a template in the interim.

EDIT: Confirmed working with template.

I have the same issue, how did you fix it and what template did you use?