-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[homematic] Remove double press events and improve long press events …
…for button trigger (#11186) HM devices provide not only 'long press' events, but also 'long press continued' (sent in configured long press interval) and 'long press released' events. So far, those events were swallowed in the button datapoint handler. Improve the situation by forwarding those events to the button trigger channel, making them usable in e.g. rules that react on button long presses. A double press timeout of 2 seconds is too long and disturbs single press processing. Additionally, for double press processing to be useful, the first press would need to be swallowed until double press timeout elapses, which is not what happened here: the first PRESS was sent out as SINGLE_PRESS event, making it impossible to meaningfully distinguish the 'single press' and 'double press' events within rules. If needed, double press handling can be implemented equally well within a rule. Signed-off-by: Danny Baumann <[email protected]>
- Loading branch information
Showing
4 changed files
with
71 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters