short question about the rule below for ESPEasy:
My rule starts over and over again because the brightness value is constant
is above the threshold. What would I have to build in to make the rule only
once if the lux value is over or undercut for 5 seconds.
is performed?
Thanks in advance!
greets bonsai
Code: Select all
On Licht#Lux>25 do
event,Tag
endon
On Licht#Lux<25 do
event,Nacht
endon
on Tag do
WemosMotorShieldCMD,0,Forward,20 // open tuer
timerSet 1,5 // 5 sec timer
endon
On Rules#Timer=1 do //When Timer1 expires, do
WemosMotorShieldCMD,0,Stop
endon
on Nacht do
WemosMotorShieldCMD,0,Forward,20 // close tuer
timerSet 2,1 // 1 sec timer
endon
On Rules#Timer=2 do //When Timer2 expires, do
WemosMotorShieldCMD,0,Stop
endon