We have moved at community.getvera.com

Author Topic: Toro Sprinkler System Automation  (Read 7151 times)

Offline Pseudomizer

  • Sr. Member
  • ****
  • Posts: 376
  • Karma: +8/-1
Toro Sprinkler System Automation
« on: January 19, 2014, 01:47:19 am »
Inspired by the $20 Automation thread I went off to develop my own implementation for my sprinklers. Here is what I have so far and I would appreciate ANY feedback before I wire the whole thing up and I bring it live.

Let's start with the basics first.

Equipment:
- Z-Wave Relay "Evolve LFM-20" for $50 http://www.amazon.com/Evolve-LFM-20-Fixture-Module/dp/B006U1O978/ref=sr_1_1?ie=UTF8&qid=1390110618&sr=8-1&keywords=evolve+lfm-20
- Gang Box for Z-wave and cables with cover door for $23 http://www.homedepot.com/p/Red-Dot-Non-Metallic-Extra-Duty-Kit-Universal-in-Use-Cover-TRWR-S355P/204193191?keyword=Red+Dot+Non+Metallic+Extra+Duty+Kit#
- Power Cord 6ft $8 http://www.homedepot.com/p/Unbranded-6-ft-16-3-SPT-3-Appliance-Cord-Gray-HD-588-547/100672804#
- Single Pole Switch $1 http://www.homedepot.com/p/Leviton-15-Amp-Single-Pole-Toggle-Switch-White-R52-01451-02W/100026991#.UttqY2TTlZI
- Gang box for single pole switch $1 http://www.homedepot.com/p/Steel-City-1-Gang-Handy-Box-Silver-5836112-30R/202601209#.Uttqs2TTlZI
- Gang plate toggle $0.60 http://www.homedepot.com/p/Steel-City-1-Gang-Toggle-Switch-Cover-Silver-58C30-25R/202590843?N=bohmZ6kg%3FNao%3D24%26browsestoreoption%3D1#.UttsN2TTlZI
- Copper Wire 50 feet $12 http://www.homedepot.com/p/Southwire-50-ft-White-14-Stranded-THHN-Wire-22956717/202527256?keyword=stranded+copper+50+feet#
- 2 x Terminal Ground Block $5 x 2 = $10 http://www.homedepot.com/p/Square-D-by-Schneider-Electric-7-Terminal-Ground-Bar-Kit-PK7GTACP/202353316#.UttsxmTTlZI 

Total investment $106

Wiring:
The Toro timers all connect to their corresponding sprinklers and each Toro has one "common" cable typically white connecting all sprinklers. I took the common cable from both Toros and connected them to the Terminal Ground Block.

A second Terminal Ground block is connected via the Z-wave relay and in addition to that I have a manual override switch installed because if something goes wrong with Vera or the Z-wave device malfunctions the sprinklers will not go on or off and they will just stay off.

Please understand that the Toros still have their standard water cycles and zones and times defined and they will always believe that they are doing their job. What I have done is to make them think they are doing their job but I control if they really water or not via Z-wave with Vera. The reason for the switch is because the Z-wave relay is always in an "OFF" state by default and if something goes wrong I am able to go there a use the override switch and the Toros will do their job as usual and the sprinklers will work. Kind of a failsafe if you wish as I don't want to rewire the whole thing if something goes south.

Important note: You have to align the clocks of both Toros with your Vera clock or this whole thing will not work!!!

Logic programming:
I was thinking a lot about how to best utilize this setup and what use cases I want to cover and the only use case I came up for in my particular case is the bad weather condition where I want to be able to tell the system not to water but having been through this before where you walk to the Toros and you manually put them to "OFF" you have to remember to re-enable them again and the same applies here.

I wanted to make sure that if I say "don't water" it should be only for one day and I don't have to go back again. There are other use cases where you want to control specific zones and you could code that by controlling the exact time with my proposed setup but I don't need that.

What I will be doing later is automating the whole thing with the weather plugin which I already installed but that's something for later.

I have a total of 3 switches:
A) the Z-wave relay switch which I called "Sprinkler Switch"
B) Virtual Clock A which I called "Sprinkler Timer ON"
C) Virtual Clock B which I called "Sprinkler Timer OFF"

I have a total of 3 scenes:
1) "Sprinkler ON" which runs immediately and puts switch A above in the "ON" state
2) "Sprinkler OFF" which runs immediately and puts switch A above in the "OFF" state
3) "Stop next sprinkler cycle" which runs immediately and triggers "Stop Next" on switch B + triggers "Stop Next" on switch C above.

Next I programmed switch B to align with the start time of the Toros e.g. 11pm (disregard the time in the screenshot) and I chose to start 2 min earlier just in case the times don't match exactly. I mapped this switch clock to my "Sprinkler ON" scene by adding the number of my scene in the settings e.g. 35
Next I programmed switch C to align with the end time of the Toros where you have to add up all your sprinkler times e.g. 8 + 8 + 8 + 8 = 32 min which means with the 11pm start time I chose 11:35pm as the end time where the z-wave relay disables the common wire. I mapped this switch clock to my "Sprinkler OFF" scene by adding the number of my scene in the settings e.g. 36

Then I tested the scene "Stop next sprinkler Cycle" where if I run this scene the clocks B and C will simply not trigger their scenes for one time only. This means if tomorrow morning you see that it rains outside you can simply press the scene button and it will not trigger the sprinklers tomorrow night while this will only apply for tomorrow. The day after it will continue with the regular cycle.

In summary
I am now able to control my sprinklers centrally with all sprinklers on or off on a daily basis and if I do nothing they will do their daily job
I can now send a command to skip the next sprinkler cycle without having to worry about to re-enable the cycle again

Futures:
I could align this work with the weather plugin and automate if the sprinklers should do their job on a daily basis or if they should skip one daily task and this weather check could run daily and/or even more sophisticated logic could be built around that.

I am attaching Wiring Diagram, screenshot of switches and scenes. If you guys see any flaw or logic or technical issues please let me know as I will start implementing this physically over the next couple of days. All the testing in my garage with the gear and the programming worked out perfectly so far without having touched the Toros yet.

Hope you find all of this useful especially with only $106 bucks investment.
« Last Edit: January 19, 2014, 01:49:17 am by Pseudomizer »
Vera 3, RFWC5AW, 2 x LFM-20, FS20Z, 3 x YRD220ZW619KWKD, 2 x FI9826W, FI9828P, 2 x NEST Gen2, EVL-3CG, 11 x BR30, 3 x A19 Hue, Media Srv, 18 x ZW4004, 8 x ZW3003, 12 x ZW2002, IP2IR Cache, 2 x DSC24, ZWN-SC7, 4 x PIR-ZWAVE2, DSB05-ZWUS, RS100-HC, ECO-TILT-US, Ribu1C, 3 x GE12721, 2 x Echo, ZW078-A

Offline Pseudomizer

  • Sr. Member
  • ****
  • Posts: 376
  • Karma: +8/-1
Re: Toro Sprinkler System Automation
« Reply #1 on: January 19, 2014, 01:42:54 pm »
System is up and running. Will conduct the live test tonight.
Vera 3, RFWC5AW, 2 x LFM-20, FS20Z, 3 x YRD220ZW619KWKD, 2 x FI9826W, FI9828P, 2 x NEST Gen2, EVL-3CG, 11 x BR30, 3 x A19 Hue, Media Srv, 18 x ZW4004, 8 x ZW3003, 12 x ZW2002, IP2IR Cache, 2 x DSC24, ZWN-SC7, 4 x PIR-ZWAVE2, DSB05-ZWUS, RS100-HC, ECO-TILT-US, Ribu1C, 3 x GE12721, 2 x Echo, ZW078-A

Offline Pseudomizer

  • Sr. Member
  • ****
  • Posts: 376
  • Karma: +8/-1
Re: Toro Sprinkler System Automation
« Reply #2 on: January 20, 2014, 01:10:11 am »
Update:

Today we had to replace two broken sprinklers and adjust the sprinkler angles of the new ones. Went to the "override" switch and put it to "manual" and run the manual watering cycle on the Toros. After all the work was done I switched back to "z-wave controlled".

My system just started the watering cycle based on my z-wave commands and I can actually stop and resume the watering based on the "Sprinkler" switch.

My goal is accomplished. Next step will be to automate the bypass water cycle based on the wunderground weather plugin.
Vera 3, RFWC5AW, 2 x LFM-20, FS20Z, 3 x YRD220ZW619KWKD, 2 x FI9826W, FI9828P, 2 x NEST Gen2, EVL-3CG, 11 x BR30, 3 x A19 Hue, Media Srv, 18 x ZW4004, 8 x ZW3003, 12 x ZW2002, IP2IR Cache, 2 x DSC24, ZWN-SC7, 4 x PIR-ZWAVE2, DSB05-ZWUS, RS100-HC, ECO-TILT-US, Ribu1C, 3 x GE12721, 2 x Echo, ZW078-A

Offline baxy_AU

  • Sr. Member
  • ****
  • Posts: 269
  • Karma: +5/-0
Re: Toro Sprinkler System Automation
« Reply #3 on: January 20, 2014, 06:54:36 am »
Great that you have this working for you... Just wondering if you were aware of opensprinker and it's vera plugin?

Offline Pseudomizer

  • Sr. Member
  • ****
  • Posts: 376
  • Karma: +8/-1
Re: Toro Sprinkler System Automation
« Reply #4 on: January 20, 2014, 09:16:58 am »
Great that you have this working for you... Just wondering if you were aware of opensprinker and it's vera plugin?

Yes, I checked out all the three plugins available, checked out all the hardware options and also what other people are using and also the new stuff which just came out which has Wifi built-in but no z-wave compatibility yet.
Vera 3, RFWC5AW, 2 x LFM-20, FS20Z, 3 x YRD220ZW619KWKD, 2 x FI9826W, FI9828P, 2 x NEST Gen2, EVL-3CG, 11 x BR30, 3 x A19 Hue, Media Srv, 18 x ZW4004, 8 x ZW3003, 12 x ZW2002, IP2IR Cache, 2 x DSC24, ZWN-SC7, 4 x PIR-ZWAVE2, DSB05-ZWUS, RS100-HC, ECO-TILT-US, Ribu1C, 3 x GE12721, 2 x Echo, ZW078-A