Author Topic: OpenSprinkler Plugin Update for firmware 2.1.3+  (Read 29269 times)

Offline integlikewhoa

  • Master Member
  • *******
  • Posts: 5618
  • Karma: +157/-380
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #30 on: March 12, 2015, 03:47:45 pm »
So how do you use it Kyle? Do you have like 5 scenes correlating to each irrigation zone as an on/off with the predefined run time?

As you use it in authomation I mean.

Yea I haven't found much use of this. I have had to add my own options like runing a full cycle not just open and close one valve. Also when I run a zone I would like my predetermined time to run, each zone is different. Right now I can set only run time for all.
So to me this plugin needs alot more features to make it something more then just manual turn on/off.

Offline kyle.dawson

  • Jr. Member
  • **
  • Posts: 91
  • Karma: +0/-1
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #31 on: March 12, 2015, 05:01:39 pm »
I admit, the OpenSprinkler is really all I needed, it has app and really runs on its own with logging, etc.  I just wanted to have one feature, ability to control from internet without putting the OpenSprinkler on the internet directly for on demand on/off.   I am coming home from work and decided I wanted to mow, I can tell it not to run so when I get home, grass is not wet. My entire design for my automation is that Vera is my Portal for my home.  I have lots of apps and systems I can open to the internet, but the fewer the more secure I may be.  I really like the option to connect all my systems together, so if one day I need it, its there. 


As for what I did, I have three zones.  I create 6 Scenes, on/off for each zone.  Create Favorite area named sprinkler, I can see all 6 on one screen.  I let the OpenSprinkler run is programs, the zimmerman logic with the weather lookup feature.  That really has the best water solution for me.  I set to run 30 min, but based on rain, humidity, temp, etc... It will change the run time from 0% to 200% based on past and future weather.


I plan to have the datamining vera plugin as well, that would help me calculate how much water I use based on run time I hope.  OpenSprinkler has this data, but not as rich as I could do in Vera. 


VeraPlus UI7(1), Sonos(3), GE Switch(25), GE Dimmer(1), GE Zwave Outlet(3),Aeon Labs Z-Wave Smart Energy Switch(1) , MimoLight Garage Door(1), MimoLight  Door Bell(1), Foscam Camera(8), Enerwave Z-wave PIR Sensor(1), Aeon Labs Z-Wave Multi-Sensor(2), Fibaro Motion(6), Honeywell Thermostat(2)

Offline integlikewhoa

  • Master Member
  • *******
  • Posts: 5618
  • Karma: +157/-380
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #32 on: March 12, 2015, 06:11:58 pm »
I am coming home from work and decided I wanted to mow, I can tell it not to run so when I get home, grass is not wet.

Is this using the enable/disable on the master? I guess that's a pretty good use.

Other then that I found that I can train my Mailman to not walk across the grass and use the walkway instead. Thanks to camera/motion setup I used to use only for notification now can flip on the sprinklers for 10 sec.   

Offline automationKing

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #33 on: March 24, 2015, 11:58:08 pm »
Is there any way to turn the debug logging off?  95% of my log is opensprinkler...


Offline integlikewhoa

  • Master Member
  • *******
  • Posts: 5618
  • Karma: +157/-380
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #34 on: March 25, 2015, 01:12:20 am »
Is there any way to turn the debug logging off?  95% of my log is opensprinkler...

I see the same

Offline brucehvn

  • Jr. Member
  • **
  • Posts: 77
  • Karma: +1/-3
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #35 on: March 25, 2015, 03:55:49 pm »
Is there any way to turn the debug logging off?  95% of my log is opensprinkler...

Sure, at the top of I_OpenSprinkler1.xml you will see something like this:

Code: [Select]
  local TASK_HANDLE = nil
  local PW = ""
  local HASHEDPW = nil
  local MSG_CLASS = "OpenSprinkler"
  local DEBUG_MODE = true

Just change the DEBUG_MODE variable to "false" and it turns off the debug logging.  Upload the file after changing it and restart luup and it will be set.

Since most people seem to be working fine with the current code, I'll probably make that change myself and post it here soon.  There might be quite a bit of non-debug logging as well.  If you still feel it's a bit too verbose for you, then let me know and I'll see if I can move some of that into debug output.

Bruce
« Last Edit: March 25, 2015, 03:57:28 pm by brucehvn »

Offline integlikewhoa

  • Master Member
  • *******
  • Posts: 5618
  • Karma: +157/-380
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #36 on: March 25, 2015, 05:31:12 pm »
Is there any way to turn the debug logging off?  95% of my log is opensprinkler...

Sure, at the top of I_OpenSprinkler1.xml you will see something like this:

Code: [Select]
  local TASK_HANDLE = nil
  local PW = ""
  local HASHEDPW = nil
  local MSG_CLASS = "OpenSprinkler"
  local DEBUG_MODE = true

Just change the DEBUG_MODE variable to "false" and it turns off the debug logging.  Upload the file after changing it and restart luup and it will be set.

Since most people seem to be working fine with the current code, I'll probably make that change myself and post it here soon.  There might be quite a bit of non-debug logging as well.  If you still feel it's a bit too verbose for you, then let me know and I'll see if I can move some of that into debug output.

Bruce

I decided to just remove the plugin for now. I was having issues with the edge slowing up and after posting the logs people recommend house cleaning.

The Open Sprinkler API is very good and has a complete list of options that can be sent via Http. The plugin Didn't have time settings, run all zones or alot of other useful options that I could see. At this point it seemed better to setup a few Scenes with wget Http commands to.

What are the planned expansions on this plugin? 

Offline brucehvn

  • Jr. Member
  • **
  • Posts: 77
  • Karma: +1/-3
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #37 on: March 25, 2015, 06:38:06 pm »
I decided to just remove the plugin for now. I was having issues with the edge slowing up and after posting the logs people recommend house cleaning.

The Open Sprinkler API is very good and has a complete list of options that can be sent via Http. The plugin Didn't have time settings, run all zones or alot of other useful options that I could see. At this point it seemed better to setup a few Scenes with wget Http commands to.

What are the planned expansions on this plugin?

It kind of depends on what people want out of this plugin.  The OS software is really pretty good, and there's no real good way to duplicate a lot of the functionality in the vera UI.  So, I think the main point of the plugin was to make sure there was manual control of your sprinkler valves and any scheduling, etc., that one might want to do could be done through vera scenes.  The plugin uses the HTTP API, that you are using in your scenes, but there's likely to be people that aren't that familiar with using wget and HTTP calls, so using the scenes to operate valves via the plugin makes more sense for them.

So, if there are suggestions that make sense to have in the plugin, then I'm certainly open to looking into them.

Bruce

Offline integlikewhoa

  • Master Member
  • *******
  • Posts: 5618
  • Karma: +157/-380
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #38 on: March 25, 2015, 06:59:13 pm »
I decided to just remove the plugin for now. I was having issues with the edge slowing up and after posting the logs people recommend house cleaning.

The Open Sprinkler API is very good and has a complete list of options that can be sent via Http. The plugin Didn't have time settings, run all zones or alot of other useful options that I could see. At this point it seemed better to setup a few Scenes with wget Http commands to.

What are the planned expansions on this plugin?

It kind of depends on what people want out of this plugin.  The OS software is really pretty good, and there's no real good way to duplicate a lot of the functionality in the vera UI.  So, I think the main point of the plugin was to make sure there was manual control of your sprinkler valves and any scheduling, etc., that one might want to do could be done through vera scenes.  The plugin uses the HTTP API, that you are using in your scenes, but there's likely to be people that aren't that familiar with using wget and HTTP calls, so using the scenes to operate valves via the plugin makes more sense for them.

So, if there are suggestions that make sense to have in the plugin, then I'm certainly open to looking into them.

Bruce

Sounds logical, I'll work on a few ideas I have now and see how that goes.

Offline brucehvn

  • Jr. Member
  • **
  • Posts: 77
  • Karma: +1/-3
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #39 on: March 25, 2015, 07:15:15 pm »
Sounds logical, I'll work on a few ideas I have now and see how that goes.

It certainly would be feasible to grab the programs people have programmed into OS and their names and create child UI elements for those like we do for the manual valves.  Then you could basically start a program from a vera scene.  But it still remains to be seen if that's really necessary when you can schedule those programs so easily in OS.

Bruce

Offline integlikewhoa

  • Master Member
  • *******
  • Posts: 5618
  • Karma: +157/-380
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #40 on: March 25, 2015, 07:38:07 pm »
Sounds logical, I'll work on a few ideas I have now and see how that goes.

It certainly would be feasible to grab the programs people have programmed into OS and their names and create child UI elements for those like we do for the manual valves.  Then you could basically start a program from a vera scene.  But it still remains to be seen if that's really necessary when you can schedule those programs so easily in OS.

Bruce

Yea I see where your coming from. Maybe this is more then enough in Vera for most and use the OS app for the rest. I'm playing with Virtual Panel also and this might be a good place to setup a tile with all of this and multistring to get some current data in there too. Like count down timer and such.

Offline automationKing

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #41 on: March 27, 2015, 01:40:09 am »
A few thoughts:

 - Yeah, I edited the XML, so that worked great.  Thanks...
 - As far as scheduling?  I use OS's builtin feature to turn sprinklers on/off.  Would be cool though, to be able to disable/enable sprinklers from the plugin.  Think remotely/on vacation.  Plus I love that it gives me the ability to turn the stations on/ff if I wanted to.  Say just for fun, or because I detect motion, etc.

The author is right, there's no reason to duplicate any functionality in OS, but what e has there now seems to be a good match.  Perhaps the only thing I 'd do is move the debugging log leves up to the UI level.  In any case, I love having this plugin, and appreciate the effort involved.

Offline integlikewhoa

  • Master Member
  • *******
  • Posts: 5618
  • Karma: +157/-380
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #42 on: March 28, 2015, 03:29:07 am »
Would be cool though, to be able to disable/enable sprinklers from the plugin. 

I think what your asking for is on the master plugin already no?

Offline tomgru

  • Hero Member
  • *****
  • Posts: 1402
  • Karma: +18/-6
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #43 on: March 28, 2015, 02:32:58 pm »
Summer is coming, and it's time to update my plugin and firmware.... 

One question i had... are/were you guys using the virtual rain sensor along with this plugin?  Worked great... but seems like potential overkill now that it's built into OS.  (and i could use the same weather underground key). 

Ironically, that's also the key reason i wanted Vera integration in the first place.  So (as you are discussing already on this thread), do i really need this plugin that much, other than additional control from one main interface for all my HA stuff?

What am i missing?

Also, i see that my version for the plugin (with auto update) is v1.4.  what version is the latest? 
« Last Edit: March 28, 2015, 02:50:21 pm by tomgru »

Offline TC1

  • Hero Member
  • *****
  • Posts: 1088
  • Karma: +90/-88
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #44 on: March 28, 2015, 05:00:10 pm »
I don't use this product (yet), but one practical application of having Vera talk to any irrigation system is for scene/mode integration.

As others have stated, let the sprinkler do what it does best (schedules, zone control, moisture sensing, etc) but allow your HA system to override the scheduling. Perfect example: you have a party or just know know that people are coming over, you activate your "party" mode or scene on Vera (disables auto-locking on the doors, puts some music on, maybe lighting, etc) and that in turn also temporarily suspends any zones scheduled on the sprinkler.

Another use case is approaching or leaving the house, your geo-location or alarm arm scenes/modes could also temporarily suspend watering.

If people are already using the present plugin in this fashion, awesome. I look forward to adding an irrigation system to my home this spring.