rule flow clarrification

You can execute tasks using rules, very easy, just look in the rules popup menus. Using tasks is actually very useful, treat them like 'functions' (assuming you are familiar with programming). Put all the code under a task, you can either schedule the task to execute at a certain time, or manually execute it using phone or touch screen interface.

Hey Dan,

I'm so glad to see my thread(poor man's sprinkler system) on the contribution thread you started. :)

Thanks for letting me know about things we can do with tasks!
 
You can do whatever you want really. A task can be activated from the kpd, a rule, etc. You don't even need to use a task at all if you don't want. The suggestion was mainly to make it more flexible. If I need to change a run time, I just update a custom setting and I am done. My irrigation rules are pretty old but they work and are based on that link. I'm sure they can be made more efficient but I have not modified them from their original yet. Here they are:

Code:
WHENEVER  F4 KEY ON ANY KEYPAD ACTIVATES
			THEN ACTIVATE Disable Sprklers (Task 4)
 
WHENEVER  Disable Sprklers (Task 4)  IS ACTIVATED
			THEN TURN Sprinkler Front (Out 9) OFF
			THEN TURN Sprinkler North (Out 10) OFF
			THEN TURN Sprinkler Back (Out 11) OFF
			THEN TURN Sprinkler South (Out 12) OFF
			THEN TURN Output 207 ON
			THEN TURN Output 206 OFF

WHENEVER THE TIME IS 4:00 AM
	  AND THE DAY(S) OF THE WEEK IS/ARE ---W--S
	  AND Output 207 STATE IS OFF
			THEN ACTIVATE Water Lawn (Task 3)

WHENEVER  Water Lawn (Task 3)  IS ACTIVATED
			THEN TURN Output 206 ON
			 THEN TURN Sprinkler Front (Out 9) ON FOR Sprklr Front (Cust Set 1)

WHENEVER  Sprinkler Front (Out 9) STATE IS TURNED OFF
	  AND Output 207 STATE IS OFF
	  AND Output 206 STATE IS ON
			THEN TURN Sprinkler North (Out 10) ON FOR Sprklr North (Cust Set 2)

WHENEVER  Sprinkler North (Out 10) STATE IS TURNED OFF
	  AND Output 207 STATE IS OFF
	  AND Output 206 STATE IS ON
			THEN TURN Sprinkler Back (Out 11) ON FOR Sprklr Back (Cust Set 3)

WHENEVER  Sprinkler Back (Out 11) STATE IS TURNED OFF
	  AND Output 207 STATE IS OFF
	  AND Output 206 STATE IS ON
			THEN TURN Sprinkler South (Out 12) ON FOR Sprklr South (Cust Set 4)
			THEN TURN Output 206 OFF

So the Disable Sprklers (Task 4) is just an entry in Tasks right and it's checked or with a mark X?

Awesome rules!!!
 
I need some help again. I'm having some issues with custom settings. I just finished writing tasks and it's working great. However, my sprinkler turned on but turned off too quickly as well. Is the custom setting variable expressed in seconds?

These are my settings:
customsettings.png


Also, I added a Disable Sprinkler tasks. However, when I turn it off, I'm getting a hammer. Hammer is really bad for the pipes. I'm running 2 sprinkler valves at the same time on different spigots. How will I put a delay in between turning off of each outputs?

Whenever Disable Sprinklers(task 1) is activated (F4 on keypad)
turn off output 9
turn off output 10
turn off output 11
turn off output 12
turn off output 13

and I would like to make it like this

Whenever Disable Sprinklers(task 1) is activated (F4 on keypad)
turn off output 9
delay 5 seconds
turn off output 10
delay 5 seconds
turn off output 11
delay 5 seconds
turn off output 12
delay 5 seconds
turn off output 13
 
Yes, the custom settings are expressed in seconds. If you want ten minutes you enter 600. You can implement delays using Outputs as timer. Like turn output x on for 5 seconds.
 
Thanks Steve.

About delays, I'm not going to apply it when I turn it on like what you mentioned on your last post. I would like to implement the delay in between turning off of each output. For example, I would like ELK not to TURN OFF output 10 until 30 seconds have elapsed after turning off output 9.
 
Back
Top