Don’t know if I have put this in the right category, hope so.
I have a powerplug for a furnace burner that is on all the time to log the power consumption used. I would also like to know how long time the burner are ‘on’ for a day by looking at the watt usage. When the burner is off the watt usage is 0. Is it possible to sum up the time / hours logged when the watt have been above 0 ? If I have that number I can estimate how much oil was used
Template binary sensor that records whether it’s on or off based on the threshold you want (might be slightly above zero, perhaps).
History stats sensor that reads that binary sensor. Note the time limit of that sensor, though — you may need to do a daily automation that takes the end-of-day number and adds it to an input_number helper or something, if you need longer-term records.