Skip to content

Matter Switch: Support Fan/Light device #2032

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

Merged
merged 12 commits into from
Apr 14, 2025

Conversation

nickolas-deboom
Copy link
Contributor

@nickolas-deboom nickolas-deboom commented Mar 28, 2025

Type of Change

  • WWST Certification Request
    • If this is your first time contributing code:
      • I have reviewed the README.md file
      • I have reviewed the CODE_OF_CONDUCT.md file
      • I have signed the CLA
    • I plan on entering a WWST Certification Request or have entered a request through the WWST Certification console at developer.smartthings.com
  • Bug fix
  • New feature
  • Refactor

Checklist

  • I have performed a self-review of my code
  • I have commented my code in hard-to-understand areas
  • I have verified my changes by testing with a device or have communicated a plan for testing
  • I am adding new behavior, such as adding a sub-driver, and have added and run new unit tests to cover the new behavior

Description of Change

This change adds driver support for a new profile for a fan+color light device added by a previous PR, brings in handlers for fan attributes and capabilities, and adds new logic to select the new profile and create the component map.

Summary of Completed Tests

Tested with: Orein fan+light and regression tested with Inovelli dimmer switch, Ikea 7 button remote, and VDA water valve device.

Sorry, something went wrong.

Copy link

github-actions bot commented Mar 28, 2025

Channel deleted.

Copy link

github-actions bot commented Mar 28, 2025

Test Results

   66 files    422 suites   0s ⏱️
2 171 tests 2 171 ✅ 0 💤 0 ❌
3 694 runs  3 694 ✅ 0 💤 0 ❌

Results for commit aa7c504.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Mar 28, 2025

File Coverage
All files 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/init.lua 93%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/aqara-cube/init.lua 96%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/embedded-cluster-utils.lua 38%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/eve-energy/init.lua 91%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against aa7c504

This change adds a new profile for a fan+color light device,
brings in handlers for fan attributes and capabilities, and
adds new logic to select the new profile and create the
component map.
@nickolas-deboom nickolas-deboom force-pushed the matter-switch-support-fan-light branch from 8b8df76 to feeaad8 Compare April 1, 2025 14:19
nickolas-deboom and others added 3 commits April 1, 2025 10:29

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@hcarter-775
Copy link
Contributor

hcarter-775 commented Apr 9, 2025

Can you do an onboarding test of a light-button device as well? Also, one with a multi-button device? Just trying to hit all the affected paths. We should also test a parent-child switch device since the handling for their creation was moved.

nickolas-deboom and others added 2 commits April 9, 2025 15:34
Remove endpoint checks in initialize_switch and adjust called functions
accordingly.
@nickolas-deboom nickolas-deboom force-pushed the matter-switch-support-fan-light branch from ef9c633 to cc34662 Compare April 9, 2025 21:12

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Copy link

Duplicate profile check: Passed - no duplicate profiles detected.

This commit changes the fan/light configuration to be a single component
rather than MCD, for reasons layed out in the review discussion.
@nickolas-deboom nickolas-deboom force-pushed the matter-switch-support-fan-light branch from d4cd82c to 57d4ccd Compare April 10, 2025 19:56
build_component_map functions specific to buttons
@nickolas-deboom nickolas-deboom force-pushed the matter-switch-support-fan-light branch from ea30c7e to 0672e79 Compare April 10, 2025 20:50

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@nickolas-deboom nickolas-deboom merged commit 7d8b6fe into main Apr 14, 2025
12 checks passed
@nickolas-deboom nickolas-deboom deleted the matter-switch-support-fan-light branch April 14, 2025 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants