From 11e497dd6fd86e1a0e89fd4d76acdd7e54bb8217 Mon Sep 17 00:00:00 2001 From: Jeff James Date: Sat, 9 Nov 2024 10:51:20 -0800 Subject: [PATCH] Added discovery of DivaSmartDimmer and PaddleSwitchPico. Also, it will not print out ID of any unrecongnized device in the logs. --- .../lutron/internal/discovery/LeapDeviceDiscoveryService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/discovery/LeapDeviceDiscoveryService.java b/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/discovery/LeapDeviceDiscoveryService.java index c8ad9797c3ffe..b65a6fefbdc42 100644 --- a/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/discovery/LeapDeviceDiscoveryService.java +++ b/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/discovery/LeapDeviceDiscoveryService.java @@ -88,6 +88,7 @@ public void processDeviceDefinitions(List deviceList) { case "SunnataDimmer": case "WallDimmer": case "PlugInDimmer": + case "DivaSmartDimmer": notifyDiscovery(THING_TYPE_DIMMER, deviceId, label); break; case "WallSwitch": @@ -99,6 +100,7 @@ public void processDeviceDefinitions(List deviceList) { 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 void processDeviceDefinitions(List deviceList) { // Don't discover sensors. Using occupancy groups instead. break; default: - logger.info("Unrecognized device type: {}", device.deviceType); + logger.info("Unrecognized device type: {} ({})", device.deviceType, deviceId); break; } }