Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lutron] Added device discovery for DivaSmartDimmer and PaddleSwitchPico #17723

Merged
merged 2 commits into from
Nov 10, 2024

Conversation

jsjames
Copy link
Contributor

@jsjames jsjames commented Nov 9, 2024

[lutron] Added device discovery for DivaSmartDimmer and PaddleSwitchPico

Description

Added discovery of DivaSmartDimmer and PaddleSwitchPico device types and mapped to creation of appropriate device.
Also, added the deviceId to the "Unrecognized" device log so that users can manually add new devices in the future.

@jsjames jsjames added the enhancement An enhancement or new feature for an existing add-on label Nov 9, 2024
@@ -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);
Copy link
Contributor

@lsiepel lsiepel Nov 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
logger.info("Unrecognized device type: {} ({})", device.deviceType, deviceId);
logger.info("Unrecognized device type: {} id: ({})", device.deviceType, deviceId);

Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

…l not print out ID of any unrecongnized device in the logs.

Signed-off-by: Jeff James <[email protected]>
Signed-off-by: Jeff James <[email protected]>
Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks LGTM

@lsiepel lsiepel merged commit 9a02c7f into openhab:main Nov 10, 2024
5 checks passed
@lsiepel lsiepel added this to the 4.3 milestone Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants