Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[homematic] Change Channel Event Implementation BUTTON DOUBLE_PRESSED #4756

Closed
lukicsl opened this issue Jan 29, 2019 · 2 comments
Closed

[homematic] Change Channel Event Implementation BUTTON DOUBLE_PRESSED #4756

lukicsl opened this issue Jan 29, 2019 · 2 comments
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@lukicsl
Copy link

lukicsl commented Jan 29, 2019

Expected Behavior

Pressing a button twice (or multiple) within a threshold period (e.g. 0.3s) should generate an BUTTON DOUBLE_PRESSED event, no other events should be triggered.
It is either an SHORT or DOUBLE event not both.

Current Behavior

First press of button generates a BUTTON SHORT_PRESSED event, if within 2s a second short press happens a BUTTON DOUBLE_PRESSED event is generated additionally.

Possible Solution

Create a global HM parameter (Bridge?) for double click threshold.
Suppress BUTTON SHORT_PRESSED for this threshold if within this time another short press event happens, create a BUTTON DOUBLE_PRESSED otherwise issue the held back event.

Context

Double press event are rathe fast events and should be used for special (overridden) function of a button. In the current implementation this event is useless as the single click event comes first.
Implementing this filtering threshold in a rule would be possible but rather complicated.

Your Environment

OH 2.4.0 docker

@lukicsl lukicsl changed the title HomeMatic: Change Channel Event Implementation BUTTON DOUBLE_PRESSED [HomeMatic]: Change Channel Event Implementation BUTTON DOUBLE_PRESSED Jan 29, 2019
@wborn wborn changed the title [HomeMatic]: Change Channel Event Implementation BUTTON DOUBLE_PRESSED [homematic] Change Channel Event Implementation BUTTON DOUBLE_PRESSED Jan 30, 2019
@rancor187
Copy link

rancor187 commented Apr 16, 2019

True, I experienced the same issue.
Thanks for issuing this behavior.

@wborn wborn added the bug An unexpected problem or unintended behavior of an add-on label Jun 2, 2019
@hmerk
Copy link
Contributor

hmerk commented Jul 26, 2021

closed due to inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

No branches or pull requests

5 participants