[lutron] Added device discovery for DivaSmartDimmer and PaddleSwitchPico (#17723)
* Added discovery of DivaSmartDimmer and PaddleSwitchPico. Also, it will not print out ID of any unrecongnized device in the logs. Signed-off-by: Jeff James <jeff@james-online.com>pull/16225/merge
parent
288b80fba8
commit
9a02c7f629
|
@ -88,6 +88,7 @@ public class LeapDeviceDiscoveryService extends AbstractThingHandlerDiscoverySer
|
|||
case "SunnataDimmer":
|
||||
case "WallDimmer":
|
||||
case "PlugInDimmer":
|
||||
case "DivaSmartDimmer":
|
||||
notifyDiscovery(THING_TYPE_DIMMER, deviceId, label);
|
||||
break;
|
||||
case "WallSwitch":
|
||||
|
@ -99,6 +100,7 @@ public class LeapDeviceDiscoveryService extends AbstractThingHandlerDiscoverySer
|
|||
notifyDiscovery(THING_TYPE_FAN, deviceId, label);
|
||||
break;
|
||||
case "Pico2Button":
|
||||
case "PaddleSwitchPico":
|
||||
notifyDiscovery(THING_TYPE_PICO, deviceId, label, "model", "2B");
|
||||
break;
|
||||
case "Pico2ButtonRaiseLower":
|
||||
|
@ -118,7 +120,7 @@ public class LeapDeviceDiscoveryService extends AbstractThingHandlerDiscoverySer
|
|||
// Don't discover sensors. Using occupancy groups instead.
|
||||
break;
|
||||
default:
|
||||
logger.info("Unrecognized device type: {}", device.deviceType);
|
||||
logger.info("Unrecognized device type: {} id: {}", device.deviceType, deviceId);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue