Double click

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • marcuslee
    Automated Home Ninja
    • Dec 2009
    • 279

    Double click

    Hi Guys,

    Anyone used the double click feature of a button?

    I've configured it, and it appears that it will do the actions, but only in addition to the normal single click action.

    ie in this case, I have a 2 button DBI button module with the two buttons configured as:
    Normal press = off and hold to reduce dim level
    &
    Normal press = on and hold to increase dim level

    Then I've added on double click:
    Lights to Scene 1
    &
    Lights to Scene 4

    The above is suppose to allow the normal press actions, but also give a shortcut to be able to double click to either the bottom-most dim level and upper-most dim level (Scene 1 & 4).

    However with the light son, the double click seems to also turn off the lights as well....
  • chris_j_hunter
    Automated Home Legend
    • Dec 2007
    • 1713

    #2
    we've had limited success with short, double, and long button presses ...

    for buttons connected via digital inputs we find they work OK, but for buttons on Idratek modules we've found behaviour very hit & miss, mostly miss ...

    not sure why, but we thought it might be due to our PC being too highly loaded ...

    but then, if that were so, why would the former work OK ... ?

    potentially a v.very useful feature, though, so we're v.keen to see it working ...
    Last edited by chris_j_hunter; 12 February 2014, 01:16 AM.
    Our self-build - going further with HA...

    Comment

    • marcuslee
      Automated Home Ninja
      • Dec 2009
      • 279

      #3
      Originally posted by chris_j_hunter View Post
      we've had limited success with short, double, and long button presses ...

      for buttons connected via digital inputs we find they work OK, but for buttons on Idratek modules we've found behaviour very hit & miss, mostly miss ...

      not sure why, but we thought it might be due to our PC being too highly loaded ...

      but then, if that were so, why would the former work OK ... ?

      potentially a v.very useful feature, though, so we're v.keen to see it working ...
      Ah ok, thanks for reply Chris.

      I thought it was just a mis-programmed or mis-intepretation of how it should work.

      Comment

      • Viv
        Automated Home Ninja
        • Dec 2004
        • 284

        #4
        'On Normal press (Default) connections are always actioned regardless of how you press the button e.g. quickly, slowly or otherwise.
        The receipient will receive a message when the button is pressed and again when released.
        Most objects respond to the press action and ignore the release. This is the default method of connecting a button. The Intercom is an example of press to talk release to listen.

        The 'On Single Click', 'On Double Click' or 'On Long Press' happen once on evaluation after a period of time (~ 0.5s).
        Only one of these three types should respond at any one time and allow multiple functionality with one button.

        You would not expect to have an 'On Normal press' and one of the three other modes because of the conflict it can produce (the On Normal press always actioning).

        *****************

        The 'Off and hold to reduce dim level' and 'On and hold to increase dim level' is decided by the Light Dimmer object. It makes a decision about how to react based upon the button press and release information it receives. A quick press simply turns it On or Off and a longer press starts the change in dim level for however long the button is held. By implication it requires the 'On Normal press (Default) connection to provide it with the required information.
        'Toggle and cycle dim level' has a similar behaviour.

        *****************

        So you could have one button 'On Normal Press' to 'Toggle and cycle dim level'.
        The second button could use one or more of the three special behaviours to select Scenes etc.

        Viv.
        Last edited by Viv; 12 February 2014, 08:55 PM.

        Comment

        • Karam
          Automated Home Legend
          • Mar 2005
          • 863

          #5
          Originally posted by chris_j_hunter View Post
          we've had limited success with short, double, and long button presses ...

          for buttons connected via digital inputs we find they work OK, but for buttons on Idratek modules we've found behaviour very hit & miss, mostly miss ...

          not sure why, but we thought it might be due to our PC being too highly loaded ...

          but then, if that were so, why would the former work OK ... ?

          potentially a v.very useful feature, though, so we're v.keen to see it working ...
          Unfortunately I think it is to do with overloading because the timings are carried out by Cortex.

          Comment

          • chris_j_hunter
            Automated Home Legend
            • Dec 2007
            • 1713

            #6
            seems likely, but why the difference between button types ?
            Our self-build - going further with HA...

            Comment

            • marcuslee
              Automated Home Ninja
              • Dec 2009
              • 279

              #7
              Originally posted by Viv View Post
              'On Normal press (Default) connections are always actioned regardless of how you press the button e.g. quickly, slowly or otherwise.
              The receipient will receive a message when the button is pressed and again when released.
              Most objects respond to the press action and ignore the release. This is the default method of connecting a button. The Intercom is an example of press to talk release to listen.

              The 'On Single Click', 'On Double Click' or 'On Long Press' happen once on evaluation after a period of time (~ 0.5s).
              Only one of these three types should respond at any one time and allow multiple functionality with one button.

              You would not expect to have an 'On Normal press' and one of the three other modes because of the conflict it can produce (the On Normal press always actioning).

              *****************

              The 'Off and hold to reduce dim level' and 'On and hold to increase dim level' is decided by the Light Dimmer object. It makes a decision about how to react based upon the button press and release information it receives. A quick press simply turns it On or Off and a longer press starts the change in dim level for however long the button is held. By implication it requires the 'On Normal press (Default) connection to provide it with the required information.
              'Toggle and cycle dim level' has a similar behaviour.

              *****************

              So you could have one button 'On Normal Press' to 'Toggle and cycle dim level'.
              The second button could use one or more of the three special behaviours to select Scenes etc.

              Viv.
              Thanks Viv. Explains architecturally what's happening behind the scenes, and why what's occurring is occurring.

              Comment

              Working...
              X