Hello community,
in order to be able to trace the life of an UV lamp, I would like to implement an operating hours counter in Pimatic. The lamp is switched on and off via MQTTSwitch-Device. In a rule I want to add up the minutes/hours the lamp was on. I have tried to find a solution with the pimatic-DateTime, but I did not make any progress.
The idea is to set a variable with the current time when the lamp is turned on. When you switch it off, the content of this variable is subtracted from the current time. The difference is stored in a second variable, which is added up again and again.
Has anyone already implemented such a solution in Pimatic?
Best regards