Skip to content

Commit

Permalink
Added discovery of DivaSmartDimmer and PaddleSwitchPico. Also, it wil…
Browse files Browse the repository at this point in the history
…l not print out ID of any unrecongnized device in the logs.
  • Loading branch information
jsjames committed Nov 9, 2024
1 parent f0d4a0a commit 11e497d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public void processDeviceDefinitions(List<Device> deviceList) {
case "SunnataDimmer":
case "WallDimmer":
case "PlugInDimmer":
case "DivaSmartDimmer":
notifyDiscovery(THING_TYPE_DIMMER, deviceId, label);
break;
case "WallSwitch":
Expand All @@ -99,6 +100,7 @@ public void processDeviceDefinitions(List<Device> deviceList) {
notifyDiscovery(THING_TYPE_FAN, deviceId, label);
break;
case "Pico2Button":
case "PaddleSwitchPico":
notifyDiscovery(THING_TYPE_PICO, deviceId, label, "model", "2B");
break;
case "Pico2ButtonRaiseLower":
Expand All @@ -118,7 +120,7 @@ public void processDeviceDefinitions(List<Device> 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;
}
}
Expand Down

0 comments on commit 11e497d

Please sign in to comment.