use of org.openhab.binding.alarmdecoder.internal.handler.VZoneHandler in project openhab-addons by openhab.
the class AlarmDecoderHandlerFactory method createHandler.
// Marked as Nullable only to fix incorrect redundant null check complaints from null annotations
@Override
@Nullable
protected ThingHandler createHandler(Thing thing) {
ThingTypeUID thingTypeUID = thing.getThingTypeUID();
if (THING_TYPE_IPBRIDGE.equals(thingTypeUID)) {
IPBridgeHandler bridgeHandler = new IPBridgeHandler((Bridge) thing);
registerDiscoveryService(bridgeHandler);
return bridgeHandler;
} else if (THING_TYPE_SERIALBRIDGE.equals(thingTypeUID)) {
SerialBridgeHandler bridgeHandler = new SerialBridgeHandler((Bridge) thing, serialPortManager);
registerDiscoveryService(bridgeHandler);
return bridgeHandler;
} else if (THING_TYPE_ZONE.equals(thingTypeUID)) {
return new ZoneHandler(thing);
} else if (THING_TYPE_RFZONE.equals(thingTypeUID)) {
return new RFZoneHandler(thing);
} else if (THING_TYPE_VZONE.equals(thingTypeUID)) {
return new VZoneHandler(thing);
} else if (THING_TYPE_KEYPAD.equals(thingTypeUID)) {
return new KeypadHandler(thing);
} else if (THING_TYPE_LRR.equals(thingTypeUID)) {
return new LRRHandler(thing);
}
return null;
}
Aggregations