Hi everyone,
I'm looking for a simple rule to reset a total counter of a pulse sensor to zero every one hour.
I've tried different way to write the rule using for example TaskValueSet etc, also tried to find a solution through the wiki but I couldn't.
The Task No. is 4 and the Value 2 OR Wind_Speed and Wind_Total.
Any help would be really appreciated
Simple time rule to reset a value every 1h
Moderators: grovkillen, Stuntteam, TD-er
Re: Simple time rule to reset a value every 1h
The command to reset the pulse counter is resetpulsecounter, with an optional parameter for task index.
So your rules will be something like this:
N.B. not tested code.
See: https://espeasy.readthedocs.io/en/lates ... Rules.html (Ctrl-F for "Clock#Time")
So your rules will be something like this:
Code: Select all
on Clock#Time=All,**:00 do
resetpulsecounter,4
endon
See: https://espeasy.readthedocs.io/en/lates ... Rules.html (Ctrl-F for "Clock#Time")
Re: Simple time rule to reset a value every 1h
That worked GREAT for me!
Thank you @TD-er
Thank you @TD-er
Who is online
Users browsing this forum: Bing [Bot] and 14 guests