[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:
jsjames 2024-11-10 10:34:50 -08:00 committed by Ciprian Pascu
parent 08e688057c
commit 102b29cab5

View File

@ -88,6 +88,7 @@ public class LeapDeviceDiscoveryService extends AbstractThingHandlerDiscoverySer
case "SunnataDimmer": case "SunnataDimmer":
case "WallDimmer": case "WallDimmer":
case "PlugInDimmer": case "PlugInDimmer":
case "DivaSmartDimmer":
notifyDiscovery(THING_TYPE_DIMMER, deviceId, label); notifyDiscovery(THING_TYPE_DIMMER, deviceId, label);
break; break;
case "WallSwitch": case "WallSwitch":
@ -99,6 +100,7 @@ public class LeapDeviceDiscoveryService extends AbstractThingHandlerDiscoverySer
notifyDiscovery(THING_TYPE_FAN, deviceId, label); notifyDiscovery(THING_TYPE_FAN, deviceId, label);
break; break;
case "Pico2Button": case "Pico2Button":
case "PaddleSwitchPico":
notifyDiscovery(THING_TYPE_PICO, deviceId, label, "model", "2B"); notifyDiscovery(THING_TYPE_PICO, deviceId, label, "model", "2B");
break; break;
case "Pico2ButtonRaiseLower": case "Pico2ButtonRaiseLower":
@ -118,7 +120,7 @@ public class LeapDeviceDiscoveryService extends AbstractThingHandlerDiscoverySer
// Don't discover sensors. Using occupancy groups instead. // Don't discover sensors. Using occupancy groups instead.
break; break;
default: default:
logger.info("Unrecognized device type: {}", device.deviceType); logger.info("Unrecognized device type: {} id: {}", device.deviceType, deviceId);
break; break;
} }
} }