Announcement

Collapse
No announcement yet.

Start and Stop repeating event

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

    Start and Stop repeating event

    I want to create a repeating IR event that will start and stop when a Press and Release event happens on a button.

    Using a Volume UP and Volume DOWN command you can have smooth continuous IR control, the solution is simple using Designer.

    The trick is this:
    "Action When Pressed" sends the IR command to change the volume (sendir)
    "Action When Released" sends an IR command to stop changing (stopir)

    In Global Cache there are two things you need to do:
    1. Modify the Volume UP and DOWN IR commands to repeat
    2. Create an IR command called STOP-IR

    Once this is done be sure that Action When Pressed commands the repeating Volume control.
    ..and be sure that Action When Released sends the STOP-IR command, which cancels any remaining repeat commands.

    The repeat factor is the first number after the frequency in the IR code set, I changed mine to 50 repeats.
    sendir,1:3,1,38000,1,1,171,171,18,18,18,
    sendir,1:3,1,38000,50,1,171,171,18,18,18,

    Modify and save your changes on the Manage Codes tab in Global Cache PRO.

    Then create a new IR function called STOP-IR for that same unit
    stopir,1:3

    Save this new command and it will be available in the IR Device in designer.

    Stand back and be amazed! It works as simple as holding a volume key down on a standard remote control.

    Tap the volume button in Touch and the volume changes, one. Hold the touch button down and the volume changes continuously, and stops when you release the button.

    I'm working on a Video Conferencing cameras project and will be applying this to the Scan Left, Scan Right, Tilt Up, Tilt Down, Zoom In, and Zoom Out.
    Last edited by BlairG; November 13, 2016, 03:45 PM. Reason: Solution found.
    Blair

    HomeSeer: HS3 Pro | Blue-Iris 4 on Windows10Pro
    | Devices: 832 | Events: 211 |
    Plug-Ins: Z-Wave | RFXCOM | UltraRachio3 | Sonos
    BLLAN | BLLOCK | NetCAM | Global Cache Pro | Blue-Iris4

    #2
    One way to do this is to include the state of a virtual device as a condition on the event. Pressing the button would toggle the device on and off. If you want the event to only run when the button is pressed (not clear from your description), then that would be harder.
    Mike____________________________________________________________ __________________
    HS3 Pro Edition 3.0.0.548, NUC i3

    HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti

    Comment


      #3
      As with a standard remote on a TV when you hold down the volume button, , it repeats and the volume continues to increase or decrease.

      I want to duplicate this using a touch tablet using the designer option to start sending the IR codes on the button press event and continue until the button release event.

      As if HS supported a DO UNTIL loop
      Blair

      HomeSeer: HS3 Pro | Blue-Iris 4 on Windows10Pro
      | Devices: 832 | Events: 211 |
      Plug-Ins: Z-Wave | RFXCOM | UltraRachio3 | Sonos
      BLLAN | BLLOCK | NetCAM | Global Cache Pro | Blue-Iris4

      Comment


        #4
        I'm sure you could create a script that would run until you released the button, but I doubt it would be reliable. I don't think it would work very well. The interface is not fast enough to work like a conventional remote.

        Multiple presses of the button would be a better approach.

        Steve Q


        Sent from my iPod touch using Tapatalk
        HomeSeer Version: HS3 Pro Edition 3.0.0.368, Operating System: Microsoft Windows 10 - Home, Number of Devices: 373, Number of Events: 666, Enabled Plug-Ins
        2.0.83.0: BLRF, 2.0.10.0: BLUSBUIRT, 3.0.0.75: HSTouch Server, 3.0.0.58: mcsXap, 3.0.0.11: NetCAM, 3.0.0.36: X10, 3.0.1.25: Z-Wave,Alexa,HomeKit

        Comment


          #5
          I have increased the "repeat count" within the IR code to 5

          sendir,2:1,1,37878,5,

          But it isn't as good as having it just keep repeating until you take your finger off the touch button.

          I was hoping there was a way to automate it, I agree a script would be slow and not realistic.
          Blair

          HomeSeer: HS3 Pro | Blue-Iris 4 on Windows10Pro
          | Devices: 832 | Events: 211 |
          Plug-Ins: Z-Wave | RFXCOM | UltraRachio3 | Sonos
          BLLAN | BLLOCK | NetCAM | Global Cache Pro | Blue-Iris4

          Comment

          Working...
          X