I cannot recreate the scenario, but what happens if the sensor becomes unavailable in this case?
Would the total energy go back to zero or a 0 value would be added to the “increasing total”?
Which is the best practice?
Ok. So the availability template overrides the float (0) function because if, for some reason, the sensor becomes unavailable then the float doesn’t revert to its default value, in my case 0.
It would have be the same if I have written float without the (0) part.