Announcement

Collapse
No announcement yet.

DIY Valve Control Box - Getting Remote Capabilities working

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

    #16

    4/5/2023 10:14:15 AM 638162864551674907 | mcsSprinklers Debug | arrLevel=0,100
    4/5/2023 10:14:15 AM 638162864551674907 | mcsSprinklers Debug | arrLevel=0,100
    4/5/2023 10:14:15 AM 638162864551674907 | mcsSprinklers Debug | Commanding 1495 to 2, is an Ailias=True,LastChange=4/5/2023 10:14:15 AM, Status=2gInternallyCommandedDevice =
    4/5/2023 10:14:15 AM 638162864551674907 | mcsSprinklers Debug | Alias Zone=1
    4/5/2023 10:14:15 AM 638162864551674907 | mcsSprinklers Debug | arrLevel=0,100
    4/5/2023 10:14:15 AM 638162864551674907 | mcsSprinklers Debug | Alias for zone/control=1, Act Immediately=False
    4/5/2023 10:14:15 AM 638162864551674907 | mcsSprinklers Debug | Zone Manual On=True, zones ubound=5, alias zone=1, StatusRespone=False, iX10CommandedZone=-1, iX10CommandedStatus=-1, iStatus=2, iZone=1
    4/5/2023 10:14:15 AM 638162864551674907 | mcsSprinklers Debug | LogAction INSERT INTO log (SampleDate,Device,Status) VALUES('2023-04-05 10:14:15','960','External ON')
    4/5/2023 10:14:15 AM 638162864551987409 | mcsSprinklers Debug | CheckManual By HSEvent2 Was rtdZoneDeviceLastChange(1)=4/5/2023 9:39:15 AM
    4/5/2023 10:14:15 AM 638162864551987409 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864551987409 | mcsSprinklers Debug | SetDeviceStatus(S95) iStatus=2, iHSStatus=2
    4/5/2023 10:14:15 AM 638162864551987409 | mcsSprinklers Debug | Scheduling Manual Control from HSEvent
    4/5/2023 10:14:15 AM 638162864552143523 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864552143523 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864552143523 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864552143523 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864552143523 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864552143523 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864552143523 | mcsSprinklers Debug | ManualEnable=False,True,False,False,False,True, Override=True, ASPStop=False, bTransitionToManualMode=True, rtbPreviousModeIsAuto=False
    4/5/2023 10:14:15 AM 638162864553393513 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553393513 | mcsSprinklers Debug | Transition out of Manual Zone 0, Area=0, OnStatus=False, ExitManual=False, bTurnoff=False, bTurnOffArea(iArea)=False, AreaInhibitText=Time 826 mins , SiteInhibitText=, bKeepZoneOn=False, bOverride=True
    4/5/2023 10:14:15 AM 638162864553393513 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553393513 | mcsSprinklers Debug | Transition out of Manual Zone 1, Area=1, OnStatus=False, ExitManual=False, bTurnoff=False, bTurnOffArea(iArea)=False, AreaInhibitText=Time 826 mins , SiteInhibitText=, bKeepZoneOn=False, bOverride=True
    4/5/2023 10:14:15 AM 638162864553393513 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553393513 | mcsSprinklers Debug | Transition out of Manual Zone 2, Area=2, OnStatus=False, ExitManual=False, bTurnoff=False, bTurnOffArea(iArea)=False, AreaInhibitText=Time 826 mins , SiteInhibitText=, bKeepZoneOn=False, bOverride=True
    4/5/2023 10:14:15 AM 638162864553393513 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553393513 | mcsSprinklers Debug | Transition out of Manual Zone 3, Area=3, OnStatus=False, ExitManual=False, bTurnoff=False, bTurnOffArea(iArea)=False, AreaInhibitText=Time 826 mins , SiteInhibitText=, bKeepZoneOn=False, bOverride=True
    4/5/2023 10:14:15 AM 638162864553393513 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553393513 | mcsSprinklers Debug | Transition out of Manual Zone 4, Area=4, OnStatus=False, ExitManual=False, bTurnoff=False, bTurnOffArea(iArea)=False, AreaInhibitText=Time 826 mins , SiteInhibitText=, bKeepZoneOn=False, bOverride=True
    4/5/2023 10:14:15 AM 638162864553393513 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553393513 | mcsSprinklers Debug | Transition out of Manual Zone 5, Area=5, OnStatus=False, ExitManual=False, bTurnoff=False, bTurnOffArea(iArea)=False, AreaInhibitText=Start 10:30 ,Time 826 mins , SiteInhibitText=, bKeepZoneOn=False, bOverride=True
    4/5/2023 10:14:15 AM 638162864553393513 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553393513 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553393513 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553393513 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553393513 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553393513 | mcsSprinklers Debug | bKeepZoneOn=False, bTurnOff=False, bTurnOffArea=False,False,False,False,False,False,False,False ,dTimeLastIteration=4/5/2023 10:14:00 AM, Transition=True,PrevAutoMode=False, AverageWind=4,SiteInhibit=,AreaInhibit=|Time 826 mins |Time 826 mins |Time 826 mins |Time 826 mins |Time 826 mins |Start 10:30 ,Time 826 mins ||
    4/5/2023 10:14:15 AM 638162864553393513 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553393513 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553393513 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | WaterUsedNotComputedList Count=0,iWaterNow(iArea)=0, rtiAreaWaterMeterReading(iArea)=0, hs.isOn(S45)=False, rtiZoneWaterUseHour(mZone)=0
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | EvaluateNow bDoTurnOn=True, bDoTurnOnForMist=True, bTurnOff=False, rtbCarryover=False, bOverride=True, bDoTurnOnByArea=,True,True,True,True,True,True,True,True, RR Delay=,0,0,0,0,0,0,0,0, IZ Delay=,0,0,0,0,0,0,0,0
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | rtbNotificationOfAreaStarting=False, rtiNotifyMinutes=0, rtbAreaCycleActive(0)=False,rtnAreaNextStartDuration(0)=1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | ValveOnLogic, rtbZoneTurnOn(0)=False, iValveOnCount(0)=0, iValveOnCountTotal=0, iFlowTotal=0, rtbZoneCarryover(0)=False, rtiAreaMaxZonesOn=1, rtiAreaMaxFlow=40, bCycleActiveSequential=False, rtnAreaNextStartDuration(0)=1, rtiZoneDurationMonth(0,0)=2, iValvesPowered=0
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | ValveOnLogic, rtbZoneTurnOn(1)=False, iValveOnCount(1)=0, iValveOnCountTotal=0, iFlowTotal=0, rtbZoneCarryover(1)=False, rtiAreaMaxZonesOn=1, rtiAreaMaxFlow=40, bCycleActiveSequential=False, rtnAreaNextStartDuration(1)=1, rtiZoneDurationMonth(0,1)=2, iValvesPowered=0
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | ValveOnLogic, rtbZoneTurnOn(2)=False, iValveOnCount(2)=0, iValveOnCountTotal=0, iFlowTotal=0, rtbZoneCarryover(2)=False, rtiAreaMaxZonesOn=1, rtiAreaMaxFlow=40, bCycleActiveSequential=False, rtnAreaNextStartDuration(2)=1, rtiZoneDurationMonth(0,2)=2, iValvesPowered=0
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553549787 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553706074 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553706074 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553706074 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553706074 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553706074 | mcsSprinklers Debug | ValveOnLogic, rtbZoneTurnOn(3)=False, iValveOnCount(3)=0, iValveOnCountTotal=0, iFlowTotal=0, rtbZoneCarryover(3)=False, rtiAreaMaxZonesOn=1, rtiAreaMaxFlow=40, bCycleActiveSequential=False, rtnAreaNextStartDuration(3)=1, rtiZoneDurationMonth(0,3)=2, iValvesPowered=0
    4/5/2023 10:14:15 AM 638162864553706074 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553706074 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553706074 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553706074 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553706074 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553706074 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553706074 | mcsSprinklers Debug | ValveOnLogic, rtbZoneTurnOn(4)=False, iValveOnCount(4)=0, iValveOnCountTotal=0, iFlowTotal=0, rtbZoneCarryover(4)=False, rtiAreaMaxZonesOn=1, rtiAreaMaxFlow=40, bCycleActiveSequential=False, rtnAreaNextStartDuration(4)=1, rtiZoneDurationMonth(0,4)=2, iValvesPowered=0
    4/5/2023 10:14:15 AM 638162864553706074 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553706074 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553706074 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553706074 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553706074 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553706074 | mcsSprinklers Debug | arrLevel=0,1
    4/5/2023 10:14:15 AM 638162864553706074 | mcsSprinklers Debug | ValveOnLogic, rtbZoneTurnOn(5)=False, iValveOnCount(5)=0, iValveOnCountTotal=0, iFlowTotal=0, rtbZoneCarryover(5)=False, rtiAreaMaxZonesOn=1, rtiAreaMaxFlow=40, bCycleActiveSequential=False, rtnAreaNextStartDuration(5)=1, rtiZoneDurationMonth(0,5)=2, iValvesPowered=0


    The logic to set rtbZoneTurnOn for override/manual case is below.
    rtbZoneTurnOn(iZone) = rtbZoneManualEnable(iZone) AndAlso (Not bPause) AndAlso ((rtiZoneManualDuration(iZone) + rtiZoneManualDurationSeconds(iZone)) > 0) AndAlso Not rtbZoneManualFailed(iZone) AndAlso Not bIndependent

    The most likely case is the user inhibit/pause

    bPause = hs.isOn(rtsHouseCode & cUserInhibit)

    The General Status will show this device as code S26 and it has controls that can be used to change it

    There currently is no debug in the override area. I added it to the attached to confirm each of items to be able to set rtbZoneTurnOn. It goes in a subfolder under \bin to replace the one that currently exists.

    Every HS Device change is reported to mcsSprinklers as part of the HSEVENT callback. 446 is an example of one that mcsSprinklers needs to evaluate to know if it has been setup to use by mcsSprinklers as a valve or alias.
    Attached Files

    Comment


      #17
      Originally posted by Michael McSharry View Post
      There currently is no debug in the override area. I added it to the attached to confirm each of items to be able to set rtbZoneTurnOn. It goes in a subfolder under \bin to replace the one that currently exists.
      I do not see what I should be replacing. This is my C:\Program Files (x86)\HomeSeer HS4\Bin\mcsSprinklers folder contents. I did a search in all the of HomeSeer folders and did not find mcssprinklers*.pdb either. I placed them in the folder below and then controlled my Remote devices to get them all to Off.

      I then set Remote 1 and 6 to On, which I expect to turn on the valves associated with devices 961 and 965, respectively. In this case, nothing happened with my physical relays associated with those devices.

      I next turned On the Valve Devices in HomeSeer, Devices 962 and 963. The relays for these received a command to turn on and later to turn off.

      Debug attached

      Click image for larger version

Name:	image.png
Views:	25
Size:	157.6 KB
ID:	1608362
      Attached Files
      Karl S
      HS4Pro on Windows 10
      1070 Devices
      56 Z-Wave Nodes
      104 Events
      HSTouch Clients: 3 Android, 1 iOS
      Google Home: 3 Mini units, 1 Pair Audios, 2 Displays

      Comment


        #18
        I'm traveling now but did look at debug and did not see any change and in particular the additional debug was not present.

        McsSprinklers_2009.dll could be in HS folder or could be in a subfolder in the /bin path. If in both the the HS folder one has priority.

        The pdb is not needed.

        Did you look at S26. It is the user inhibit device that needs to be inactive.

        Comment


          #19
          I found the dll in the root HomeSeer4 folder and replaced that copy.

          Sorry, I misunderstood the original message regarding S26. It was set to User Paused. I pressed OFF and it is NOW as shown below. Relays are clicking now, but I have no idea why... I let this come to a rest before proceeding.

          I did turn on a Remote device and get a Valve/relay to turn on, then off after a minute. Should the Remote Control item also turn Off at that point? As I would expect, unless the status of the device changes, the plugin doe snot recognize the On request. My device currently has the Last Change Time Updates on Status Change Only checked. It would be nice if the status of the Remote matched the Valve as far as an On/Off are concerned.

          Also, did I see a setting which only allows one Area to be On at a time?


          Click image for larger version

Name:	image.png
Views:	40
Size:	9.5 KB
ID:	1608394
          Karl S
          HS4Pro on Windows 10
          1070 Devices
          56 Z-Wave Nodes
          104 Events
          HSTouch Clients: 3 Android, 1 iOS
          Google Home: 3 Mini units, 1 Pair Audios, 2 Displays

          Comment


            #20
            Is there something you are asking me to look at in the debug?

            You are setup on the Area page for sequence control to have a single master sequence

            The alias is setup using the model of a handheld remote control device that transmits a pulse and does not retain state. When I was testing with HS virtual device I had to wait until the cycle completed before I clicked the OFF button. With a plugin/real device the state is managed by the plugin so it is possible to send pulse without updating state. Something like a MQTT message where multiple ON ON ON can be sent without the need for an OFF.

            Comment


              #21
              There is nothing specific on the debug. More in case you wanted to see what is now being set.

              I will play around with things and see that I have what I am expecting/hoping for. If not, it may be me being unrealistic with regards to how irrigation systems work. The document still has a lot to digest. Hopefully things are set up as they should be now.

              Thank you for all the assistance!!!
              Karl S
              HS4Pro on Windows 10
              1070 Devices
              56 Z-Wave Nodes
              104 Events
              HSTouch Clients: 3 Android, 1 iOS
              Google Home: 3 Mini units, 1 Pair Audios, 2 Displays

              Comment


                #22
                Just to bring this back full circle:

                I have removed the Remote Control settings and will control the HomeSeer devices related to the Valves when I want manual control. This seems to accomplish exactly what I want when remotely controlling the valves and removes devices from HomeSeer. I would have been creating HomeSeer Events to set a device regardless, so I decided I may as well take this route. Otherwise, the additional items I have tested appear to be working as expected.

                Thank you again, Michael McSharry for all the assistance, your patience, and the great plug-ins!
                Karl S
                HS4Pro on Windows 10
                1070 Devices
                56 Z-Wave Nodes
                104 Events
                HSTouch Clients: 3 Android, 1 iOS
                Google Home: 3 Mini units, 1 Pair Audios, 2 Displays

                Comment


                  #23
                  On the Remote Page there are two checkbox settings at the top. One is to disable direct valve control. Consider the original implementation of the plugin was to support the Rain8X10. This was the only available automation interface available that had internal monitoring to prevent a valve from staying on too long. The problem with X10 is that it is subject to powerline noise so it was reasonable to expect at some point in time a X10 command would happen to be one that turns the irrigation ON. The setting was developed so mcsSprinklers would not act upon that request. I believe you could do the same thing if your remote control has limited usage and you want to set the bounds of when it could or could not happen. Similar in concept with the User Inhibit S26 that you experienced, but User Inhibit also inhibits Auto mode operation.

                  Comment

                  Working...
                  X