Energy sensor goes to zero every time template is changed

Hi,

why an energy sensor goes to zero every time the template in the yaml is changed?

Use a Trigger-based Template Sensor.


For future reference, you should post the configuration of your Template Sensor so we have more information about how you designed it.

See guideline 11 in the FAQ:

1 Like