]> git.basschouten.com Git - openhab-addons.git/commit
[homematic] Fix long button press handling for HM-IP devices (#11982)
authormaniac103 <dannybaumann@web.de>
Thu, 13 Jan 2022 08:09:19 +0000 (09:09 +0100)
committerGitHub <noreply@github.com>
Thu, 13 Jan 2022 08:09:19 +0000 (09:09 +0100)
commita4c579b753a035c193df1056367c8bc1eecea5d0
tree41276953bf115864348fb4c524a127e120086aec
parenta1e6a4e35c51e9ee902edf27200a4d13e98f35ff
[homematic] Fix long button press handling for HM-IP devices (#11982)

* [homematic] Fix long button press handling for HM-IP devices

HM devices have the following long press cycle:
PRESS_CONT
PRESS_LONG
PRESS_CONT (N times for repetion)
PRESS_LONG_RELEASE

while (at least some) HM-IP devices use this one:
PRESS_LONG
PRESS_LONG_START
PRESS_LONG (N times for repetition)
PRESS_LONG_RELEASE

Add support for the latter case while keeping support for the former
case.

Signed-off-by: Danny Baumann <dannybaumann@web.de>
* [homematic] Track 'uses LONG_START datapoint' flag per-device
bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/virtual/ButtonVirtualDatapointHandler.java
bundles/org.openhab.binding.homematic/src/test/java/org/openhab/binding/homematic/internal/communicator/virtual/ButtonDatapointTest.java