Skip to content

Commit

Permalink
[homematic] Expansion of virtual data channel for all window/door con…
Browse files Browse the repository at this point in the history
…tacts (openhab#15641)

* make VirtualDatapoint belonging ContactSensor for more devices available

---------

Signed-off-by: niclas18 <[email protected]>
Signed-off-by: querdenker2k <[email protected]>
  • Loading branch information
niclas18 authored and querdenker2k committed Oct 29, 2023
1 parent 8bd2e8b commit 0089857
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 0089857

Please sign in to comment.