mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[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> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
08e688057c
commit
102b29cab5
@ -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
Block a user