[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>
This commit is contained in:
niclas18 2023-10-18 22:17:35 +02:00 committed by GitHub
parent 8b55f02985
commit d63934bcc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ import org.openhab.binding.homematic.internal.model.HmDevice;
import org.openhab.binding.homematic.internal.model.HmValueType; 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 * @author Gerhard Riegler - Initial contribution
*/ */
@ -58,7 +58,7 @@ public class StateContactVirtualDatapointHandler extends AbstractVirtualDatapoin
} }
private boolean isApplicable(HmDevice device) { private boolean isApplicable(HmDevice device) {
return device.getType().toUpperCase().startsWith("HMIP-SWDO"); return device.getType().toUpperCase().startsWith("HMIP-SWD");
} }
private Boolean convertState(Object value) { private Boolean convertState(Object value) {