Announcement

Collapse
No announcement yet.

Scripts Not Holding In Events

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

    Scripts Not Holding In Events

    Can Someone please help me? I have an event that updates 4 devices and executes 4 scripts. The first part of the event turns on 2 devices, and executes 2 scripts. Then there is a 6 minute hold in the event. The remaining 2 device changes hold, but the remaining 2 scripts execute without holding.

    Am I missing something in the event setup? Is this by design? Do I have to use a hold command in my scripts as well?

    TIA

    #2
    Not sure if it will help, but try using the "wait for script to finish" checkbox:
    Attached Files
    HS4Pro on a Raspberry Pi4
    54 Z-Wave Nodes / 21 Zigbee Devices / 108 Events / 767 Devices
    Plugins: Z-Wave / Zigbee Plus / EasyTrigger / AK Weather / OMNI

    HSTouch Clients: 1 Android

    Comment


      #3
      Yup I checked those

      Ok I did notice that there is a delay for devices but not for scripts in the event setup. I figured that event execution was a trickle down structure but I figured wrong. I have included at sample of the event.

      TIA
      Attached Files

      Comment


        #4
        That script will run the scripts after each other, the delay on the devices will create several delayed action events, rather than stop the event - everything will be run at once.

        The command you need in the event is the Wait command, you can set it to seconds/minutes and you need this inbetween the on/off's and the scripts - i'm not sure how the timing will work but give it a go.

        Comment


          #5
          Thanks for the Reply

          So, do I put the wait command in a separate script or at the end or beginning of the script or will either do. My thinking is to create a separate script and call it 6min. That way I can use it over and over.

          TIA

          Comment


            #6
            Originally posted by bsnedek View Post
            So, do I put the wait command in a separate script or at the end or beginning of the script or will either do. My thinking is to create a separate script and call it 6min. That way I can use it over and over.

            TIA
            You can do it in the event (there is an option in the event actions), i'm not sure what you are doing in those scripts but you could do something like;

            Device 1 On
            Wait 5mins
            Run Script
            Wait 30seconds
            Device 2 Off
            Device 3 Off
            Wait 30seconds
            Device 2 On

            Etc etc, it may do what you are after I don't know

            You can put the wait in the scripts if you want, although i'm not sure if it matters where abouts in the script you put the command - it possibly depends on what each script is doing

            Comment


              #7
              Thanks...

              I didn't realize there was a wait in the event setup. Nice.

              Device Command: Frontyard Outside Lights 2 On
              Run script: Toggle4-1-On.vbs
              Wait: 2 seconds
              Device Command: Frontyard Outside Lights 3 On
              Run script: Toggle4-2-On.vbs
              Wait: 2 seconds
              Device Command: Frontyard Front Porch On
              Wait: 6 minutes
              Device Command: Frontyard Outside Lights 6 Off
              Run script: Toggle4-2-Off.vbs
              Device Command: Frontyard Outside Lights 3 Off
              Wait: 2 seconds
              Device Command: Frontyard Outside Lights 5 Off
              Run script: Toggle4-1-Off.vbs
              Wait: 2 seconds
              Device Command: Frontyard Outside Lights 2 Off
              Wait: 2 seconds
              Device Command: Frontyard Front Porch Off

              I hope this does it. I'll test it tonight after sunset. I'll share the Toggle-4-1-On.vbs
              with you if your interested.

              Comment

              Working...
              X