Daily counter

Moderator: leecollings

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

Daily counter

Post by gurushastri »

Hi
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 1 guest