[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
jsjames 2024-11-10 10:34:50 -08:00 committed by GitHub
parent 288b80fba8
commit 9a02c7f629
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}
}