Hello

for my energy Dashboard I have to calculate some values.

I use Templates to split one Sensor with negativ and possitiv values in two Sensors only with positiv values.

And I use a helper (Integration - Riemann sum integral sensor) to calculate from power to energy.

I think If there is long time zero the inegration take the last value and time for the calculation. and I get a jump in the chart.

How can I fix it?