Announcement

Collapse
No announcement yet.

New OpenSprinkler Plugin

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mattygee, thank you for your response.

    I am on firmware Version 2.1.6(1), Hardware 2.3 - DC
    Just to confirm: since I have the web app set to 32 stations, all is well, that is, until I change it to 40 which is the available stations. The controller itself works fine with the 40 stations.

    /jp
    {"nprogs":1,"nboards":4,"mnp":28,"mnst":4,"pnsize":20,"pd ":[[1,21,0,[360,0,0,0],[1200,1200,0,180,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0],"Flower Bed Drips"]]}

    /js
    {"sn":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0],"nstations":32}

    /jn
    {"masop":[255,255,255,255],"ignore_rain":[0,0,0,0],"masop2":[0,0,0,0],"stn_dis":[0,0,0,0],"stn_seq":[255,255,255,255],"stn_spe":[0,0,0,0],"snames":["S01 Drip Sth Drip FlwrBd","S02 Drip Nth Drip FlwrBd","S03 Drip Sth Drip Garden","S04 Bk Nth Fill Fntn Lg","S05 Fr Sth Rtrs Flwr Bd","S06 Fr Sth Rtrs Pwr Box","S07 Fr Sth Rtrs Mid","S08 Fr Sth Rtrs @ Street","S09 Fr Mid Rtrs @ FDoor","S10 Fr Mid Rtrs @ Nrth","S11 Fr Mid Rtrs @ Street","S12 Fr Nth Spry Flwr Bd","S13 Fr Nth Rtrs @ Street","S14 Bk Nth Spry Trls/Hse","S15 Bk Nth Spry Trls/Fen","S16 Bk Nth Rtrs Trls/Fen","S17 Bk Nth Rtrs Pool/Fen","S18 Bk Nth Rtrs Trls/Fir","S19 Bk Nth Rtrs Casa/Fir","S20 Bk Nth Rtrs Casitas","S21 Bk Nth Rtrs Club Nth","S22 Bk Nth Rtrs Club Est","S23 Bk Mid Spry Pat Nrth","S24 Bk Mid Spry Pat Sou","S25 Bk Mid Rtrs Hammocks","S26 Bk Mid SpryRtrs PlDb","S27 Bk Mid Rtrs Slide/EQ","S28 Bk Mid Rtrs PoolEQ","S29 Bk Mid Rtrs GreenHse","S30 Bk Sth Rtrs GreenHse","S31 Bk Sth Rtrs Tramp","S32 Bk Sth Rtrs Fen"],"maxlen":24}

    /jo
    {"fwv":216,"tz":28,"ntp":0,"dhcp":0,"ip1":10,"ip2":0,"ip3":1 ,"ip4":189,"gw1":10,"gw2":0,"gw3":1,"gw4":1,"hp0":80,"hp1":0 ,"hwv":23,"ext":3,"sdt":0,"mas":0,"mton":0,"mtof":0,"urs":0, "rso":0,"wl":46,"den":1,"ipas":1,"con":150,"lit":100,"dim":1 5,"bst":320,"uwt":1,"ntp1":50,"ntp2":97,"ntp3":210,"ntp4":16 9,"lg":1,"mas2":0,"mton2":0,"mtof2":0,"fwm":1,"fpr0":100,"fp r1":0,"re":0,"reset":0,"dexp":4,"mexp":6,"hwt":220}

    /jc
    {"devt":1475325373,"nbrd":4,"en":1,"rd":0,"rs":0,"rdst":0,"l oc":"33.09982,-96.59677","wtkey":"84c57e661826b201","sunrise":440,"sunset": 1150,"eip":1078474847,"lwc":1475322432,"lswc":1475322433,"lr un":[3,1,180,1475217781],"curr":0,"sbits":[0,0,0,0,0],"ps":[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],"wto":{"h":100,"t":100,"r":100}}

    Comment


      Here's the responses when I have all 40 zones enabled

      /jp
      {"nprogs":1,"nboards":5,"mnp":28,"mnst":4,"pnsize":20,"pd ":[[1,21,0,[360,0,0,0],[1200,1200,0,180,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0],"Flower Bed Drips"]]}

      /js
      {"sn":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0],"nstations":40}

      /jn
      {"masop":[255,255,255,255,255],"ignore_rain":[0,0,0,0,0],"masop2":[0,0,0,0,0],"stn_dis":[0,0,0,0,0],"stn_seq":[255,255,255,255,255],"stn_spe":[0,0,0,0,0],"snames":["S01 Drip Sth Drip FlwrBd","S02 Drip Nth Drip FlwrBd","S03 Drip Sth Drip Garden","S04 Bk Nth Fill Fntn Lg","S05 Fr Sth Rtrs Flwr Bd","S06 Fr Sth Rtrs Pwr Box","S07 Fr Sth Rtrs Mid","S08 Fr Sth Rtrs @ Street","S09 Fr Mid Rtrs @ FDoor","S10 Fr Mid Rtrs @ Nrth","S11 Fr Mid Rtrs @ Street","S12 Fr Nth Spry Flwr Bd","S13 Fr Nth Rtrs @ Street","S14 Bk Nth Spry Trls/Hse","S15 Bk Nth Spry Trls/Fen","S16 Bk Nth Rtrs Trls/Fen","S17 Bk Nth Rtrs Pool/Fen","S18 Bk Nth Rtrs Trls/Fir","S19 Bk Nth Rtrs Casa/Fir","S20 Bk Nth Rtrs Casitas","S21 Bk Nth Rtrs Club Nth","S22 Bk Nth Rtrs Club Est","S23 Bk Mid Spry Pat Nrth","S24 Bk Mid Spry Pat Sou","S25 Bk Mid Rtrs Hammocks","S26 Bk Mid SpryRtrs PlDb","S27 Bk Mid Rtrs Slide/EQ","S28 Bk Mid Rtrs PoolEQ","S29 Bk Mid Rtrs GreenHse","S30 Bk Sth Rtrs GreenHse","S31 Bk Sth Rtrs Tramp","S32 Bk Sth Rtrs Fen","S33","S34","S35","S36","S37","S38","S39","S40"],"maxlen":24}

      /jo
      {"fwv":216,"tz":28,"ntp":0,"dhcp":0,"ip1":10,"ip2":0,"ip3":1 ,"ip4":189,"gw1":10,"gw2":0,"gw3":1,"gw4":1,"hp0":80,"hp1":0 ,"hwv":23,"ext":4,"sdt":0,"mas":0,"mton":0,"mtof":0,"urs":0, "rso":0,"wl":46,"den":1,"ipas":1,"con":150,"lit":100,"dim":1 5,"bst":320,"uwt":1,"ntp1":50,"ntp2":97,"ntp3":210,"ntp4":16 9,"lg":1,"mas2":0,"mton2":0,"mtof2":0,"fwm":1,"fpr0":100,"fp r1":0,"re":0,"reset":0,"dexp":4,"mexp":6,"hwt":220}

      /jc
      {"devt":1475325985,"nbrd":5,"en":1,"rd":0,"rs":0,"rdst":0,"l oc":"33.09982,-96.59677","wtkey":"84c57e661826b201","sunrise":440,"sunset": 1150,"eip":1078474847,"lwc":1475322432,"lswc":1475322433,"lr un":[3,1,180,1475217781],"curr":0,"sbits":[0,0,0,0,0,0],"ps":[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],"wto":{"h":100,"t":100,"r":100}}

      Comment


        So, a new version should fix most of those bugs. Here is what has changed:

        Mark S: Added a "on" button (sets it for 6 hours run). This should help with your HSTouch integration. With the "Master" issue - there are two master stations. Can you confirm that nothing is set in master 2? Otherwise please send me your "jo=" string as per previous post.

        Travis: Your "no programs" bug should be squashed. PS. Why would you not have any programs?

        jbbtex: I've had a go at fixing your rain delay issue. Can you test and let me know. I'm not at home so can't (easily) test on my own system right now.

        GearyT: I believe I have this fixed now (although i tried to fix it once before).

        PJJPtx: It should work for up to 64 zones now.

        Please disable the plugin, overwrite your current exe file with the new one attached, reenable, and let me know if your problems are fixed or not. Just send me the error message from the log and a description of the problem.

        Cheers!
        Attached Files

        Comment


          Originally posted by cheeryfool View Post
          I am interested as to the heatbeat mechanism utilised by the Plugin as Ray is suggesting that any frequent pinging of the hardware could result in a loss of network connectivity - although not controller functionality which is prioritised ahead of the network connectivity.

          I am not yet sure whether the PI could be causing this - I also had a Domotz.com agent that was monitoring the OS Controller, which I have now deactivated - or whether I do actually have some sort of hardware issue with the controller itself.

          If anyone else has seen the controller go offline fairly frequently please chime in also

          Thanks
          James
          The old firmware (V2.0.6) used to be very robust for network comms, but as they have added more features it's become a little less responsive at times. Around firmware 2.1.3 I had to re-write it a bit to reduce network traffic because many people were having issues.

          The plugin needs to poll the unit to get the information it needs because the unit doesn't tell the plugin, the plugin has to ask the unit. The plugin has to ask 5 different questions (5 pings) to get all the info it needs, it originally did all 5 at once - every poll interval, but now I've spaced them out over the poll interval. Some calls are more often than others. It is a bit complex to explain but basically it will ping every 1/5 of a poll interval, but will update all devices every 3/5 of a poll interval.

          I can't remember what I have set (not at home right now) but its something like 10 seconds poll interval and I have no issues. If you slowed polling to 15 minutes, the plugin would be unusable (would still give commands immediately but wouldn't update very fast).

          When the plugin says "comms error" it basically means it has had 30 consecutive failed pings to the unit.

          Comment


            So far, so good!!!

            Much thanks!!

            Comment


              Thanks, Matt.

              I can confirm I only have one Master (Master 1) defined. I ran /jo, but all I got was {"fwv":216}
              Mark

              Comment


                Originally posted by Mark S. View Post
                Thanks, Matt.

                I can confirm I only have one Master (Master 1) defined. I ran /jo, but all I got was {"fwv":216}
                Can you temporarily disable your password and do it again?
                From that I can work out the issue.
                Cheers.

                Comment


                  Rain delay change is great and works great.

                  Thanks

                  Comment


                    Sorry, missed that password part. Here it is:
                    {"fwv":216,"tz":32,"ntp":1,"dhcp":0,"ip1":122,"ip2":144,"ip3 ":166,"ip4":148,"gw1":122,"gw2":144,"gw3":166,"gw4":1,"hp0": 144,"hp1":34,"hwv":23,"ext":0,"sdt":0,"mas":6,"mton":0,"mtof ":2,"urs":0,"rso":0,"wl":100,"den":1,"ipas":1,"con":250,"lit ":170,"dim":140,"uwt":0,"ntp1":XX,"ntp2":XX,"ntp3":XXX,"ntp4 ":XXX,"lg":1,"mas2":0,"mton2":0,"mtof2":0,"fwm":1,"fpr0":100 ,"fpr1":0,"re":0,"reset":0,"dexp":0,"mexp":6,"hwt":172}

                    Thanks.

                    Edited to hide my IP.
                    Mark

                    Comment


                      New version 2.1.6.6:

                      1) Fixed issue with master station status being shown on the final station (was missing a line of code). It's always been broken and was also broken on my setup. Mark was the first to notice.

                      2) Added two new config options. You can now select the maximum station run time and maximum rain delay time. This is done because HS3 creates it's own dropdown lists in Events builder and HSTouch based on the range. By using a smaller range (I use 20 minutes) it creates sensible dropdown lists. Note: The "On" button for each zone simply sets the time to whatever is specified in MaxTime.

                      Brady - notice I had to partially roll back the rain delay fix I did because I lost the "No rain delay button" when allowing the slider to start at zero hours ("No rain delay" = zero). Hopefully this new config setting helps you out. I'm not sure how to make the events builder let you enter a number direct?

                      Please provide any feedback, if all is good I'll push this version out to the official updater.
                      Attached Files

                      Comment


                        Thanks. I like the flexibility.

                        But so far, I have one issue. I changed the new config for maximum on time to 60 minutes, but it still turns on for 6 hours (the default).
                        Mark

                        Comment


                          Mark S - Have you clicked "rebuild devices" or alternatively stopped and restarted the plugin? It should work.

                          Comment


                            Thanks. I rebuilt devices and it's better. I have it set at 60 minutes, but it runs for 61. I'm OK with the extra minute, but thought you should know.
                            Mark

                            Comment


                              Maybe It's Just me

                              Another issue I'm seeing - I see frequent errors in Event Viewer - at least once a day. But it seems like the plugin keeps working anyway - kinda slow though. The errors always appear back to back:

                              The first
                              Log Name: Application
                              Source: .NET Runtime
                              Date: 10/15/2016 11:44:07 AM
                              Event ID: 1026
                              Task Category: None
                              Level: Error
                              Keywords: Classic
                              User: N/A
                              Computer: Audrey4
                              Description:
                              Application: HSPI_OpenSprinkler.exe
                              Framework Version: v4.0.30319
                              Description: The process was terminated due to an unhandled exception.
                              Exception Info: System.NullReferenceException
                              at System.Runtime.Remoting.Messaging.LogicalCallContext.Propaga teIncomingHeadersToCallContext(System.Runtime.Remoting.Messa ging.IMessage)
                              at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(Syst em.Runtime.Remoting.Proxies.MessageData ByRef, Int32)
                              at HomeSeerAPI.IHSApplication.WriteLog(System.String, System.String)
                              at HSPI_OpenSprinkler.utils.Log(System.String, LogLevel)
                              at HSPI_OpenSprinkler.OpenSprinkler.ReadOpenSprinkler(Boolean, Boolean, Boolean, Boolean, Boolean)
                              at HSPI_OpenSprinkler.plugin.RunPlugin()
                              at System.Threading.ThreadHelper.ThreadStart_Context(System.Obj ect)
                              at System.Threading.ExecutionContext.RunInternal(System.Threadi ng.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
                              at System.Threading.ExecutionContext.Run(System.Threading.Execu tionContext, System.Threading.ContextCallback, System.Object, Boolean)
                              at System.Threading.ExecutionContext.Run(System.Threading.Execu tionContext, System.Threading.ContextCallback, System.Object)
                              at System.Threading.ThreadHelper.ThreadStart()

                              And the second:
                              Log Name: Application
                              Source: Application Error
                              Date: 10/15/2016 11:44:07 AM
                              Event ID: 1000
                              Task Category: (100)
                              Level: Error
                              Keywords: Classic
                              User: N/A
                              Computer: Audrey4
                              Description:
                              Faulting application name: HSPI_OpenSprinkler.exe, version: 2.1.6.0, time stamp: 0x57676ad6
                              Faulting module name: mscorlib.ni.dll, version: 4.6.1586.0, time stamp: 0x575a1299
                              Exception code: 0xc0000005
                              Fault offset: 0x003d0ea2
                              Faulting process id: 0x101c
                              Faulting application start time: 0x01d2264a20944f1d
                              Faulting application path: C:\Program Files (x86)\HomeSeer HS3\HSPI_OpenSprinkler.exe
                              Faulting module path: C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\mscorlib\4057 1abae9422cd2ca6fafbbde1c3cdc\mscorlib.ni.dll
                              Report Id: ac45f1f2-d31e-448a-bdd6-dcf3242cdc45
                              Faulting package full name:
                              Faulting package-relative application ID:

                              This might be related to some Homeseer crashes I've been seeing. Any idea what could be wrong with mscorlib.ni.dll?
                              Mark

                              Comment


                                Waaay over my head here sorry. Can't help.

                                PS. I'm away of the maxtime being 1 minute over. It's because I wanted the droplist to contain the maxtime and I can't have both that and the "on" button share the same value.

                                Comment

                                Working...
                                X