Irrigation rule

mustangcoupe

Senior Member
Below is my irrigation control for my 2 zone system.... this could be easily adjusted for more zones with more rules...
I used 1 zone input for a rain sensor, and 2 outputs connected to relays which control the zone valves. I plan to hook up my other 2 zones come spring.

Rule 1

WHENEVER THE TIME IS 6:53 AM
AND THE MONTH IS LATER THAN May
AND THE MONTH IS EARLIER THAN October
AND THE DAY(S) OF THE WEEK IS/ARE S-T-T-S
THEN ACTIVATE Water Lawn (Task 1)

Rule 2

WHENEVER Water Lawn (Task 1) IS ACTIVATED
AND Output 205 STATE IS OFF
THEN TURN Front Lawn (Out 11) ON FOR 10 min

Rule 3

WHENEVER Front Lawn (Out 11) STATE IS TURNED OFF
AND Output 205 STATE IS OFF
THEN TURN Back Lawn (Out 12) ON FOR 10 min
Rule 4

turns off the irrigation and sets a flag if the rain sensor is tripped
WHENEVER Disable Sprinkle (Task 2) IS ACTIVATED
THEN TURN Output 205 ON
THEN TURN Front Lawn (Out 11) OFF
THEN TURN Back Lawn (Out 12) OFF

Rule 5

Resets Irrigation Zone Output as long as no rain is detected today
WHENEVER THE TIME IS 12:00 AM
AND Rain Sensor (Zn 15) IS SECURE
THEN TURN Output 205 OFF
 
IMHO a little better, watering every part on another day:

Rule 1 new, sets a timed flag if the rain sensor is tripped
also turns off running irrigation, just in case

WHENEVER Rain Sensor (Zone 1) becomes NOT SECURE
THEN TURN Output 205 ON for 1 days, restart timer if running
THEN TURN Front Lawn (Out 11) OFF
THEN TURN Back Lawn (Out 12) OFF


Rule 2 new, out 204 = time window (incl. rain-stop)

WHENEVER Output 205 STATE IS OFF
AND THE MONTH IS LATER THAN May
AND THE MONTH IS EARLIER THAN October
THEN time window (output 204) is ON


Rule 3 new , watering via output 11

WHENEVER THE TIME IS 10 minutes before sunrise
AND THE DAY(S) OF THE WEEK IS/ARE S-T-T-S
AND Output 204 STATE IS ON
THEN TURN Front Lawn (Out 11) ON FOR 10 min


Rule 4 new, watering via output 12

WHENEVER THE TIME IS 12 minutes before sunrise
AND THE DAY(S) OF THE WEEK IS/ARE -M-W-F-
AND Output 204 STATE IS ON
THEN TURN Back Lawn (Out 12) ON FOR 12 min


Remarks:
I wrote the rules also with text in small letters,
maybe also the syntax isn't correct in all cases.
But the right syntax is generated automaticly (, - thanks heaven).
Times related to "Sunrise" are also a selectable time condition
"restart timer if running" is an option you can mark in a little square
Using tasks is possible of course, but for me it is easier without (in this simple case)
Maybe you think also about counting the raintime:

WHENEVER every 1 hour
AND Rain Sensor(Zone 1) is NOT SECURE
THEN add 1 to rain-hours (counter 27)

or this way ... same for watering events/time. Later you can display the result on any keypad:

WHENEVER every 30 seconds
THEN DISPLAY "<rain-text> CTR27 ..." in Area x ...

Greetings to the spoiled plants in your yard.
Watering once a week is more reasonable in some/most cases.
Because of better root-growing.
 
Back
Top