Hi, I would need some help in deriving boiler costs.
I have a shelly 1 pm connected to the wires of the boiler that gives me the value in W of the consumption.
I know that when the boiler is on it consumes 62/64 W.
How can I create an entity that gives me the uptime of the boiler only when it is on?
That is, I would like a sensor that would log only when the 60W is exceeded and calculate the uptime.
create a binary template sensor that determines that it will be on when sensor.consumi_caldaia_power’s is above 60. Then create a history stats sensor, tabulating the total time.