Hi there,
i have a heat meter which gives an impulse everytime it steps up by 1 kWh. I attached a D1 mini to it and configured it via ESPHomes pulse counter feature to count the impulses and then use the “total” function to give me the readout in HA.
It works good but sometimes the D1 restarts or there is an interruption in the power supply so the value resets to 0.
I want a readout in HA with the actual real value of the heat meter (e.g add the actual value to the sensor via developer settings tab).
So i can’t use the integration sensor as that requires a sensor which reads in W not kWh. Is there some template that i could use so the sensor only ever adds values and never resets to 0?