Cost-Sensor for Energy resets every Time HA restarts

Hello
This spring I installed some PV-Panels on my house. I included them in my energy dashboard. I also added the tariffs in the energy dashboard to keep track of the cost and compensation of energy used/produced.
However, it doesnt’ quite work as its supposed to. Every time HA is being restarted, those “monetary” sensors are being reseted and start back at zero.

I found a couple of topics, where people were dealing with the same problem, but there was never really a solution to this problem.
Since those sensors, are created automatically created in the energy dashboard, i can’t provide a code.
Does anyone know how to fix this problem, or at least work around it?

i have the same problem, anyone have an workaround?

Is this really a problem? The energy dashboard doesn’t care if they reset, it should still track cumulative cost correctly.

Why do you need to work around it? Could use a utility_meter I guess…