]> git.basschouten.com Git - openhab-addons.git/commit
[velbus] Add new functionality PRESSED and LONG PRESSED (#10664)
authorDaniel Rosengarten <rosengarten01@hotmail.com>
Sat, 29 May 2021 18:23:29 +0000 (20:23 +0200)
committerGitHub <noreply@github.com>
Sat, 29 May 2021 18:23:29 +0000 (20:23 +0200)
commit4ad6eda9619c10a421a3919f28ac6a6a0a749d7c
tree19b4f843f8e6ce5460416ca1147de41af3f45c29
parent7f05dbaf2cc03514f18f1d301a52c33026010cd6
[velbus] Add new functionality PRESSED and LONG PRESSED (#10664)

* [velbus] Add new functionality PRESSED and LONG PRESSED and fix bug

New functionality:
Add the the possibility to simulate the PRESSED and LONG PRESSED message of an input.

Module supported with button simulation :
VMB1RYS (button : CH6)
VMB6IN (buttons : CH1 ... CH6)
VMB2PBN, VMB6PBN, VMB7IN, VMB8IR, VMB8PB, VMB8PBU, VMBEL1, VMBEL2, VMBEL4, VMBGP1, VMBGP1-2, VMBGP2, VMBGP2-2, VMBGP4, VMBGP4-2, VMBGP4PIR, VMBGP4PIR-2 (buttons : CH1 ... CH8)
VMBELO, VMBGPOD, VMBGPOD-2 (buttons : CH1 ... CH32)

Fix bug:
The channels names were not correctly assigned to the thing properties. The last channel had the default name, not the one retrieved from the module.

Also-by: cedricboon <cedric.boon@hotmail.com>
Signed-off-by: Daniel Rosengarten <github@praetorians.be>
bundles/org.openhab.binding.velbus/README.md
bundles/org.openhab.binding.velbus/src/main/java/org/openhab/binding/velbus/internal/VelbusHandlerFactory.java
bundles/org.openhab.binding.velbus/src/main/java/org/openhab/binding/velbus/internal/VelbusModule.java
bundles/org.openhab.binding.velbus/src/main/java/org/openhab/binding/velbus/internal/discovery/VelbusThingDiscoveryService.java
bundles/org.openhab.binding.velbus/src/main/java/org/openhab/binding/velbus/internal/handler/VelbusRelayHandler.java
bundles/org.openhab.binding.velbus/src/main/java/org/openhab/binding/velbus/internal/handler/VelbusRelayWithInputHandler.java [new file with mode: 0644]
bundles/org.openhab.binding.velbus/src/main/java/org/openhab/binding/velbus/internal/handler/VelbusSensorHandler.java
bundles/org.openhab.binding.velbus/src/main/java/org/openhab/binding/velbus/internal/packets/VelbusButtonPacket.java [new file with mode: 0644]
bundles/org.openhab.binding.velbus/src/main/resources/OH-INF/thing/thing-types.xml