Daily counter

Post Reply
Posts: 7
Joined: Monday 26 December 2016 19:59
Target OS: Windows
Domoticz version:

Daily counter

Post by gurushastri » Thursday 12 January 2017 8:13

I'm trying to figure out how long during a day my water heater is working.
i've figure out how to use the time-difference function in LUA but i can't seem to aggregate the differences to a total amount.

from what i know the scripts run every minute by domoticz, and inside the script there's no variable who can keep the information without it getting written-over. I've tried using user variables but those too didn't kept the information.

is there a place or a way to create variables "above" the scripts? something that will keep the information?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests