Skip to content

Matter Switch: Support Fan/Light device - #2032

Merged
nickolas-deboom merged 12 commits into
mainfrom
matter-switch-support-fan-light
Apr 14, 2025
Merged

Matter Switch: Support Fan/Light device#2032
nickolas-deboom merged 12 commits into
mainfrom
matter-switch-support-fan-light

Conversation

@nickolas-deboom

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

Copy link
Copy Markdown
Contributor

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.

@github-actions

github-actions Bot commented Mar 28, 2025

Copy link
Copy Markdown

Channel deleted.

@github-actions

github-actions Bot commented Mar 28, 2025

Copy link
Copy Markdown

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.

@github-actions

github-actions Bot commented Mar 28, 2025

Copy link
Copy Markdown

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
@hcarter-775

hcarter-775 commented Apr 9, 2025

Copy link
Copy Markdown
Contributor

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.

Comment thread drivers/SmartThings/matter-switch/src/init.lua Outdated
Comment thread drivers/SmartThings/matter-switch/src/init.lua
Comment thread drivers/SmartThings/matter-switch/src/init.lua Outdated
Comment thread drivers/SmartThings/matter-switch/src/init.lua Outdated
Comment thread drivers/SmartThings/matter-switch/src/init.lua Outdated
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
@github-actions

Copy link
Copy Markdown

Duplicate profile check: Passed - no duplicate profiles detected.

Comment thread drivers/SmartThings/matter-switch/src/init.lua Outdated
Comment thread drivers/SmartThings/matter-switch/src/init.lua Outdated
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
Comment thread drivers/SmartThings/matter-switch/src/init.lua
Comment thread drivers/SmartThings/matter-switch/src/init.lua
@nickolas-deboom
nickolas-deboom force-pushed the matter-switch-support-fan-light branch from ea30c7e to 0672e79 Compare April 10, 2025 20:50
@nickolas-deboom
nickolas-deboom merged commit 7d8b6fe into main Apr 14, 2025
@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.

3 participants