From d63934bcc5d2f270d72dd81ef8114ca43bb37594 Mon Sep 17 00:00:00 2001 From: niclas18 <87126599+niclas18@users.noreply.github.com> Date: Wed, 18 Oct 2023 22:17:35 +0200 Subject: [PATCH] [homematic] Expansion of virtual data channel for all window/door contacts (#15641) * make VirtualDatapoint belonging ContactSensor for more devices available --------- Signed-off-by: niclas18 <87126599+niclas18@users.noreply.github.com> --- .../virtual/StateContactVirtualDatapointHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/virtual/StateContactVirtualDatapointHandler.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/virtual/StateContactVirtualDatapointHandler.java index d6937d3666b4e..970bb99dac7c7 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/virtual/StateContactVirtualDatapointHandler.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/virtual/StateContactVirtualDatapointHandler.java @@ -21,7 +21,7 @@ import org.openhab.binding.homematic.internal.model.HmValueType; /** - * A virtual datapoint that converts the ENUM state of the HMIP-SWDO device to a contact. + * A virtual datapoint that converts the ENUM state of the HMIP-SWD_ devices to a contact. * * @author Gerhard Riegler - Initial contribution */ @@ -58,7 +58,7 @@ public void handleEvent(VirtualGateway gateway, HmDatapoint dp) { } private boolean isApplicable(HmDevice device) { - return device.getType().toUpperCase().startsWith("HMIP-SWDO"); + return device.getType().toUpperCase().startsWith("HMIP-SWD"); } private Boolean convertState(Object value) {