Search in sources :

Example 1 with LIRCBridgeHandler

use of org.eclipse.smarthome.binding.lirc.handler.LIRCBridgeHandler in project smarthome by eclipse.

the class LIRCHandlerFactory method createHandler.

@Override
protected ThingHandler createHandler(Thing thing) {
    ThingTypeUID thingTypeUID = thing.getThingTypeUID();
    if (LIRCBindingConstants.SUPPORTED_BRIDGE_TYPES.contains(thingTypeUID)) {
        LIRCBridgeHandler handler = new LIRCBridgeHandler((Bridge) thing);
        registerDeviceDiscoveryService(handler);
        return handler;
    } else if (thingTypeUID.equals(THING_TYPE_REMOTE)) {
        return new LIRCRemoteHandler(thing);
    }
    return null;
}
Also used : ThingTypeUID(org.eclipse.smarthome.core.thing.ThingTypeUID) LIRCRemoteHandler(org.eclipse.smarthome.binding.lirc.handler.LIRCRemoteHandler) LIRCBridgeHandler(org.eclipse.smarthome.binding.lirc.handler.LIRCBridgeHandler)

Aggregations

LIRCBridgeHandler (org.eclipse.smarthome.binding.lirc.handler.LIRCBridgeHandler)1 LIRCRemoteHandler (org.eclipse.smarthome.binding.lirc.handler.LIRCRemoteHandler)1 ThingTypeUID (org.eclipse.smarthome.core.thing.ThingTypeUID)1