]> git.basschouten.com Git - openhab-addons.git/commitdiff
[homematic] Expansion of virtual data channel for all window/door contacts (#15641)
authorniclas18 <87126599+niclas18@users.noreply.github.com>
Wed, 18 Oct 2023 20:17:35 +0000 (22:17 +0200)
committerGitHub <noreply@github.com>
Wed, 18 Oct 2023 20:17:35 +0000 (22:17 +0200)
* make VirtualDatapoint belonging ContactSensor for more devices available

---------

Signed-off-by: niclas18 <87126599+niclas18@users.noreply.github.com>
bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/virtual/StateContactVirtualDatapointHandler.java

index d6937d3666b4e219b624992f43b00f47a25d5262..970bb99dac7c7b054c5d680862ba797919f8773b 100644 (file)
@@ -21,7 +21,7 @@ import org.openhab.binding.homematic.internal.model.HmDevice;
 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 class StateContactVirtualDatapointHandler extends AbstractVirtualDatapoin
     }
 
     private boolean isApplicable(HmDevice device) {
-        return device.getType().toUpperCase().startsWith("HMIP-SWDO");
+        return device.getType().toUpperCase().startsWith("HMIP-SWD");
     }
 
     private Boolean convertState(Object value) {