Author Topic: IrrigationCaddy plugin  (Read 11571 times)

Offline a-lurker

  • Hero Member
  • *****
  • Posts: 844
  • Karma: +58/-8
IrrigationCaddy plugin
« on: June 17, 2013, 10:47:09 pm »
An "IrrigationCaddy" plugin to try out. It's pretty minimalist:

1) System On/Off:
Turn OFF all the sprinkler programs - it's raining / it's winter.
Turn ON all the sprinkler programs - the garden is dry.

2) Run a Zone sequence, as set up in sprinkler programs 1, 2 or 3. ie the functionality of  the "Run Now" button on each Sprinkler Program. This would allow a Vera user to run the three different sequences determined by a Vera Schedule, via the plugin.

3) The "Control" tab has a link to the IrrigationCaddy web page

This plugin assumes you have IrrigationCaddy firmware version: "ICEthS1-1.3.223" or better. If you haven't, it won't work. If you upgrade your IrrigationCaddy firmware be careful!

You can read a bit more here:

http://forum.micasaverde.com/index.php/topic,7583.msg115007.html#msg115007

and checking the weather forecast here:

http://forum.micasaverde.com/index.php/topic,10909.15.html

Note: I'm not responsible for any excessive water bills or bricked IrrigationCaddies.

Ver 0.51
This plugin has been tested using the Vera U15 interface and Firefox 21.0 only. Installation for UI5:

Go to UI5-->APPS-->Develop Apps-->Luup files and upload the five files.

Select the "Create device" button on the same page. Enter 'D_IrrigationCaddy1.xml' into the 'Upnp Device Filename' entry box and select the 'Create device' button immediately below. Do a few reloads using the Reload button.

Once the device can be seen in the User Interface go the "Advanced" tab and enter the IP address for the IrrigationCaddy. If you have changed the port address (unlikely), you can add that on to the end of the IP address.  Do a few reloads using the Reload button.

NOTE: Lua outputs all headers in lowercase. However the Irrigation Caddy firmware is sensitive to header case and will not correctly recognise lowercase headers. It therefore does not fully conform to:

 http://www.ietf.org/rfc/rfc2616.txt

"...Each header field consists of a name followed by a colon (":") and the field value. Field names are case-insensitive."

More details here:

http://forum.micasaverde.com/index.php/topic,13081.msg96734.html#msg96734

To resolve this conflict and to get the Irrigation Caddy to co-operate you MUST download this file:

http://forum.micasaverde.com/index.php?action=dlattach;topic=13081.0;attach=15212

and use it to replace the existing  /usr/lib/lua/socket/http.lua  in Vera.

Ver 0.53
  • Minor fixes and additions
This code is on GitHub here:
https://github.com/a-lurker/Vera-Plugin-Irrigation-Caddy

You can install the plugin from the 'Alternate App Store', which works together with 'ALTUI':
http://forum.micasaverde.com/index.php/topic,38102.0.html
Delete any existing 'IrrigationCaddy' device before installing from the 'Alternate App Store'.

Note that 'ALTUI' is highly recommended to all users.

This plugin requires the use of a modified "http.lua" file in Vera. Use the repository file to replace the file located in "/usr/lib/lua/socket/"
Be sure to update this file after each Vera firmware update.
« Last Edit: November 26, 2016, 07:06:14 pm by a-lurker »

Offline Intrepid

  • Hero Member
  • *****
  • Posts: 536
  • Karma: +4/-0
Re: IrrigationCaddy plugin
« Reply #1 on: June 18, 2013, 08:06:31 am »
Thanks, i'm installing some sprinkler heads for my lawn but have not yet purchased a controller.  this looks very promising!

Offline yoabear

  • Sr. Newbie
  • *
  • Posts: 35
  • Karma: +0/-0
Re: IrrigationCaddy plugin
« Reply #2 on: June 24, 2013, 07:10:43 pm »
Hey a-lurker
I am trying to decide between etherrain and irrigationcaddy and the plug in is really import since this is a vacation house.

I loaded your plugin and looked at it.  How do you define the zone sequence?  is that set up through IrragationCaddy s website and the plugin calls on it?

Thanks Jason

Offline a-lurker

  • Hero Member
  • *****
  • Posts: 844
  • Karma: +58/-8
Re: IrrigationCaddy plugin
« Reply #3 on: June 24, 2013, 07:39:10 pm »
The zone sequence is set up through the IrrigationCaddy web page. As mentioned, I see this as a pretty minimalist plugin. You could set up three different sequences and run them when you want, using the plugin. Or the IrrigationCaddy could do it. Perhaps the biggest advantage is being able to turn the sprinklers off when it is raining or going to.

Authorization isn't used, so if you were going to use it remotely with a password, the plugin probably couldn't reach it. I would have to look at how that's all handled.

Offline Intrepid

  • Hero Member
  • *****
  • Posts: 536
  • Karma: +4/-0
Re: IrrigationCaddy plugin
« Reply #4 on: June 28, 2013, 07:21:18 am »
is it possible to see the status of a zone?  or of a sequence?  status on/off status might be useful.

I got my caddy and I'm bench testing it with my two valves.  I'll try to get it installed this weekend.

Offline aloelane

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: IrrigationCaddy plugin
« Reply #5 on: November 19, 2013, 09:51:17 am »
Hi, wanted to find out if anyone has the plugin running successfully? I have the latest firmware in the IC and have disable authentication on the IC but no luck, as mentioned earlier in the post this would be a great product to integrate. I have a number of irrigation zones around my house, which I would like to trigger depending on which alarm PIR is triggered.


Cross-posting is not allowed. Your post from "MiCasaVerde Forum ?General ?Irrigation Control ?IrrigationCaddy" has been removed
« Last Edit: November 19, 2013, 10:02:11 am by mcv.andrei »

Offline sweet0891

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: IrrigationCaddy plugin
« Reply #6 on: March 18, 2014, 07:50:49 pm »
Has anyone been able to get this to work with the Ul6 update?
An "IrrigationCaddy" plugin to try out. It's pretty minimalist:

1) System On/Off:
Turn OFF all the sprinkler programs - it's raining / it's winter.
Turn ON all the sprinkler programs - the garden is dry.

2) Run a Zone sequence, as set up in sprinkler programs 1, 2 or 3. ie the functionality of  the "Run Now" button on each Sprinkler Program. This would allow a Vera user to run the three different sequences determined by a Vera Schedule, via the plugin.

3) The "Control" tab has a link to the IrrigationCaddy web page

This plugin assumes you have IrrigationCaddy firmware version: "ICEthS1-1.3.223" or better. If you haven't, it won't work. If you upgrade your IrrigationCaddy firmware be careful!

You can read a bit more here:

http://forum.micasaverde.com/index.php/topic,7583.msg115007.html#msg115007

and checking the weather forecast here:

http://forum.micasaverde.com/index.php/topic,10909.15.html

Note: I'm not responsible for any excessive water bills or bricked IrrigationCaddies.

Ver 0.51
This plugin has been tested using the Vera U15 interface and Firefox 21.0 only. Installation for UI5:

Go to UI5-->APPS-->Develop Apps-->Luup files and upload the five files.

Select the "Create device" button on the same page. Enter 'D_IrrigationCaddy1.xml' into the 'Upnp Device Filename' entry box and select the 'Create device' button immediately below. Do a few reloads using the Reload button.

Once the device can be seen in the User Interface go the "Advanced" tab and enter the IP address for the IrrigationCaddy. If you have changed the port address (unlikely), you can add that on to the end of the IP address.  Do a few reloads using the Reload button.

Offline PJJP

  • Full Member
  • ***
  • Posts: 149
  • Karma: +2/-0
Re: IrrigationCaddy plugin
« Reply #7 on: June 12, 2014, 05:56:34 pm »
Bummer! I got it installed and configured the IP, but turning it off does not cause my caddy to turn off. I'm trying to use this in combination with Virtual Rain Sensor to prevent watering when it's not needed.

Offline a-lurker

  • Hero Member
  • *****
  • Posts: 844
  • Karma: +58/-8
Re: IrrigationCaddy plugin
« Reply #8 on: June 14, 2014, 04:48:48 am »
In UI5 for the plugin; on the Control Tab does the "IrrigationCaddy web page" link work? And you are using what firmware? And the hardware: WiFi or LAN connected?

Offline PJJP

  • Full Member
  • ***
  • Posts: 149
  • Karma: +2/-0
Re: IrrigationCaddy plugin
« Reply #9 on: July 01, 2014, 05:01:30 pm »
Just got back in town..
In UI5 for the plugin; on the Control Tab does the "IrrigationCaddy web page" link work? And you are using what firmware? And the hardware: WiFi or LAN connected?

Link works fine, firmware IC-W1-1.1.1668, Wifi(works fine through web interface)

Offline a-lurker

  • Hero Member
  • *****
  • Posts: 844
  • Karma: +58/-8
Re: IrrigationCaddy plugin
« Reply #10 on: July 01, 2014, 07:06:44 pm »
I've not tried this on the WiFi version. If the link in the plugin works, that's a good start. Do the any of the buttons do anything and do you see any errors in the log when they are operated?

Offline PJJP

  • Full Member
  • ***
  • Posts: 149
  • Karma: +2/-0
Re: IrrigationCaddy plugin
« Reply #11 on: July 01, 2014, 11:46:46 pm »
I just updated firmware to the latest release. I'll try it out this weekend and post my results.

Offline CoreDex

  • Newbie
  • *
  • Posts: 15
  • Karma: +1/-0
Re: IrrigationCaddy plugin
« Reply #12 on: July 05, 2014, 11:02:14 pm »
a-lurker,
Thanks for creating this plug-in.  I have security (username & password) enabled for my IrrigationCaddy and I'd prefer not to turn it off.

Do you know where parameters for authentication would need to be added to your scripts and the formatting based on what you've developed here?  This would be very helpful.

Thanks!

Offline a-lurker

  • Hero Member
  • *****
  • Posts: 844
  • Karma: +58/-8
Re: IrrigationCaddy plugin
« Reply #13 on: July 05, 2014, 11:55:24 pm »
The plugin could be modified to allow a username and password to be used but these would probably end up MIOS servers. Someone else could no doubt verify that. So it may not be advantageous to make any changes.

Offline dbeck52

  • Sr. Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
Re: IrrigationCaddy plugin
« Reply #14 on: September 29, 2014, 05:21:03 pm »
@a-lurker
I am using ui7(1.7.374) and I have made a run at getting v 0.51 to work with my ic-w1 running the latest firmware.  First, thank you for your effort regarding this plug-in.  The plug-in installs a wave device called irrigation caddy.  It has on/off and three run sequences.  I have tested all the buttons and the only control I get is to turn the irrigation caddy on when it is off.  None of the other controls seem to do anything.  Was only looking to have on/off control and I'm getting half of that.  Would be nice to have control to turn off the caddy when it is on.  Any advice?