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 (#15641)

* make VirtualDatapoint belonging ContactSensor for more devices available

---------

Signed-off-by: niclas18 <[email protected]>
  • Loading branch information
niclas18 authored Oct 18, 2023
1 parent 8b55f02 commit d63934b
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 d63934b

Please sign in to comment.