and it works, but as soon as the energy is updated by template/integration it returns to old value.
Should I restart HA as soon as I reset ? Is there a trick? thanks!
The default trapezoidal method should only be used if your power sensor changes very smoothly. If your power switches on/off (squarewave-ish) then make sure to specify the left method.