mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[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:
parent
8b55f02985
commit
d63934bcc5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user