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 "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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user