-
Notifications
You must be signed in to change notification settings - Fork 522
Matter Switch: Support fan/light devices as parent/child #2653
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
Conversation
|
Duplicate profile check: Passed - no duplicate profiles detected. |
|
Channel deleted. |
Test Results 71 files 480 suites 0s ⏱️ Results for commit d291eb7. ♻️ This comment has been updated with latest results. |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against d291eb7 |
80239d5 to
fda9ae0
Compare
drivers/SmartThings/matter-switch/src/switch_utils/device_configuration.lua
Show resolved
Hide resolved
| local fan_device_type_ep_ids = switch_utils.get_endpoints_by_device_type(device, fields.DEVICE_TYPE_ID.FAN) | ||
| if #fan_device_type_ep_ids > 0 then | ||
| updated_profile, optional_component_capabilities = FanDeviceConfiguration.assign_profile_for_fan_ep(device, default_endpoint_id) | ||
| device:set_field(fields.MODULAR_PROFILE_UPDATED, true) | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now this is perfectly fine, but it might be worth discussing alternate approaches for the default endpoint logic at some point. Because at this point we already know the default endpoint contains a fan device type so it seems like we shouldn't need the get_endpoints_by_device_type call.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed
|
One more thing I thought of - wasn't there a switch/fan device out there as well? Should we add support for that in this PR? |
|
@nickolas-deboom any WWST request would be done in a separate PR in my mind. Also, I believe that manufacturer re-tested the device with this current PR and liked the result, category and all |
a5ce6e0 to
bec20ae
Compare
9fc4ae4 to
a33c57b
Compare
Description of Change
Add support for fan/light devices as parent/child
Summary of Completed Tests
Unit tests updated, tested on-device