Hi,
Please help me compile a lambda function in which the value for the total energy sensor will be changed from the entered number template and after pressing the button template.
Is there any way to change the value of the total energy sensor?
I want to enter the total production for this sensor which until now I had counted by the assistant in HA. I want to make HA not count these values and esp itself writes to memory.
No, I just want to enter the value that another sensor has been counting so far, and then let this sensor continue counting energy from this entered value.
Ok, I finally understood what you are looking for.
So you basically want to reset the total counter, not to zero, but to your input number.
Unfortunately, I don’t know how to do it. For pulse counter there is syntax for it, so I expect there is for integration sensor as well. I did quick search, didn’t find anything.