Rules: (Relay On / wait) x 4.
Posted: 07 Oct 2019, 19:40
Hi, struggling with Rules, for a Sprinkler system. I have a some working rules that switches on a boreholepump together with the specific leg, of which I have 4. When set on Auto mode, a dummy variable, Vars#AutoI want it to start 15min after sunrise, sprinkle for 13min on Leg1, then wait for 20min for the borehole to fill with water, do the next leg, wait, etc. I have a dummy Device - with variables can set, but initialized with 13min (for relay on) / 20min for wait. This variable's name is then Vars#durLegRest.
So, I decided to use the Delay command - see below. But this does not work - the code goes fast from event,L1 (another action with the instructions to switch on pump and the specific leg), to event,L4 - without executing any of L1,L2,L3 - and only executes L4.
I assume the Delay node cannot wait - how do I do it then? With timerSet ?
So, I decided to use the Delay command - see below. But this does not work - the code goes fast from event,L1 (another action with the instructions to switch on pump and the specific leg), to event,L4 - without executing any of L1,L2,L3 - and only executes L4.
I assume the Delay node cannot wait - how do I do it then? With timerSet ?
Code: Select all
On Clock#Time=All,%sunrise+15m% do
if [Vars#Auto]=1
event,L1
Delay,[Vars#durLegRest]
event,L2
Delay,[Vars#durLegRest]
event,L3
Delay,[Vars#durLegRest]
event,L4
Delay,[Vars#durLegRest]
endif
endon