Rain Advisory Sprinkler Help

Hey all, I am just now getting around to re-writing my sprinkler control code for the new Rain advisory. This is where I am currently at, however it doesn't matter what value the "RaidAdvisory" flag gets set to in Haiku, my sprinklers never run unless I manually turn off the Rainadvisory flag. Could someone with a brain better than mine help me out a little?  I would also like to create a "Run Sprinklers" button for those times when I just want a little extra water, is there an easy way to add that into this code, or better yet, do one of you have a much better and refined sprinkler code that you wouldn't mind sharing? 
 
Thanks in advance.
 
 
 
 

1. // /////////////////////////////////////////////////////////////////////////////////////////
// IRRIGATION SYSTEM ROUTINES
//
// Each zone checks to see if Haiku Helper RainAdvisory has flagged before starting. If one
// zone is canceled, then the remaining zones are canceled also.
//
// System logs event if sprinkler activates or is bypassed by RainAdvisory
//
// Can also start any zone without triggering the others.
//
// If irrigation is attempted but stopped by a triggered RainAdvisory, then log that event.
//
// /
2. TIMED 5:00 AM MTWTFSS
AND IF Bypass Sprinklers OFF
AND IF RainAdvisory ON
OR
AND IF RainAdvisory CURRENT VALUE IS GREATER THAN 40
THEN LOG RainAdvisory; Bypass Sprinklers
THEN SHOW RainAdvisory; Bypass Sprinklers NO BEEP OR LED
3. // If sprinklers begin normally (not bypassed by rain advisory), Then log the event and
// start the sprinkler program.
4. TIMED 5:00 AM MTWTFSS
AND IF Bypass Sprinklers OFF
AND IF RainAdvisory CURRENT VALUE IS LESS THAN 40
AND IF Outside Temperature CURRENT READING IS GREATER THAN 36
THEN Sprinkler Program Running ON
THEN LOG Sprinkler Program Started
THEN FLOWERBEDS ON FOR 15 MINUTES
5. WHEN FLOWERBEDS OFF
AND IF RainAdvisory CURRENT VALUE IS LESS THAN 5
AND IF Sprinkler Program Running ON
THEN BACKYARD ON FOR 15 MINUTES
6. WHEN BACKYARD OFF
AND IF RainAdvisory CURRENT VALUE IS LESS THAN 5
AND IF Sprinkler Program Running ON
THEN AC UNITS ON FOR 15 MINUTES
7. WHEN AC UNITS OFF
AND IF RainAdvisory CURRENT VALUE IS LESS THAN 5
AND IF Sprinkler Program Running ON
THEN MAILBOX ON FOR 15 MINUTES
8. WHEN MAILBOX OFF
AND IF RainAdvisory CURRENT VALUE IS LESS THAN 5
AND IF Sprinkler Program Running ON
THEN WEST FRONT ON FOR 15 MINUTES
9. // 9. WHEN WESTSIDE OF HOUSE OFF
// AND IF RainAdvisory CURRENT VALUE IS LESS THAN 5
// AND IF Sprinkler Program Running ON
// THEN WEST FRONT ON FOR 15 MINUTES
10. WHEN WEST FRONT OFF
AND IF RainAdvisory CURRENT VALUE IS LESS THAN 5
AND IF Sprinkler Program Running ON
THEN EAST DRIVEWAY/ISLAND ON FOR 15 MINUTES
11. WHEN EAST DRIVEWAY/ISLAND OFF
AND IF RainAdvisory CURRENT VALUE IS LESS THAN 5
AND IF Sprinkler Program Running ON
THEN EAST OF DRIVEWAY 1 ON FOR 15 MINUTES
12. WHEN EAST OF DRIVEWAY 1 OFF
AND IF RainAdvisory CURRENT VALUE IS LESS THAN 5
AND IF Sprinkler Program Running ON
THEN EAST OF DRIVEWAY 2 ON FOR 15 MINUTES
13. WHEN EAST OF DRIVEWAY 2 OFF
AND IF RainAdvisory CURRENT VALUE IS LESS THAN 5
AND IF Sprinkler Program Running ON
THEN ISLAND ON FOR 15 MINUTES
14. WHEN ISLAND OFF
AND IF RainAdvisory CURRENT VALUE IS LESS THAN 5
AND IF Sprinkler Program Running ON
THEN DRIVEWAY FLOWERBED ON FOR 15 MINUTES
15. WHEN DRIVEWAY FLOWERBED OFF
THEN LOG Sprinkler Program Stopped
THEN Sprinkler Program Running OFF
THEN SHOW Sprinklers Ran Today NO BEEP OR LED
16. WHEN RainAdvisory ON
AND IF Sprinkler Program Running ON
THEN FLOWERBEDS OFF
THEN BACKYARD OFF
THEN AC UNITS OFF
THEN MAILBOX OFF
THEN UNIT 5 OFF
THEN WEST FRONT OFF
THEN EAST DRIVEWAY/ISLAND OFF
THEN EAST OF DRIVEWAY 1 OFF
THEN EAST OF DRIVEWAY 2 OFF
THEN ISLAND OFF
THEN DRIVEWAY FLOWERBED OFF
THEN Sprinkler Program Running OFF
THEN LOG Sprinkler Program Stopped
THEN LOG RainAdvisory; Bypass Sprinklers
 
 
 
 

serky

Member
Hi,
 
There are so many different ways to do irrigation. If HaikuHelper is checking the RainAdvisory very often, that could be turning off the irrigation because whenever the flag turns ON, you are turning OFF all the zones.  I am not sure how often the system checks for that. I had messed with the RainAdvisory for a long time.  In my opinion, it used to be better in some regards but not in others.  When it was going to rain in 2 days, the flag was = 2 but you didn't know how much ran was coming.  I decided to go with a rain sensor and eventually use the RainAdvisory Flag in limited areas.  Here are some examples of mine.
 
I used to do this:
 
 
TIMED WATER LAWN TIME WATER LAWN DAYS
AND IF RAIN SENSOR SECURE
AND IF DAY IS ODD
AND IF RainAdvisory CURRENT VALUE IS LESS THAN 15 
THEN RUN WATER LAWN
 
I switched it to this because I only cared if it actually rained, not the probability of it raining a certain amount in the future.That forecast might not be accurate and my lawn wouldn't get enough water. I live in a hot area and need water.  The rain sensor has a changeable setting for the amount of actual rain.

TIMED WATER LAWN TIME WATER LAWN DAYS
AND IF RAIN SENSOR SECURE
AND IF DAY IS ODD
THEN RUN WATER LAWN
 
I have created a QUICK H2O button that does not turn on my Flag when I automatically water the lawn.  If that flag is OFF, the ODD DAY and RAIN SESOR are not in the equation.  Then I just hit the button and It goes through all the zones no matter what.  In this case, my User Settings have different zone times for this occasion. You could do this for yourself, just take out the RainAdvisory Flag and have the AND IF Sprinkler Program Running OFF .  I have created User Setting for LAWN DAYS, LAWN TIMES, LANDSCAPE DAYS, TIMES.  Also created User Settings for different watering zone times for some zones such as Landscape, Driveway area, Main Zones.  This way you can change the amount of time to water easily without reprogramming all the time.  
 
I have also created other scenarios that pause the system on a zone if someone takes a shower and it restarts back on that zone it left off when they are done.  
 
I know I might have not fully answered your questions but maybe gave some ideas for some other approaches.
 
I found my issue, I was doing to many checks, I was checking each time to see if the "rainadvisory" flag had tripped, and had a value to low set. removed that all together, and just did a global kill all if the flag flips higher than the value I want. Thanks for helping talk me through it! :)
 
Top