Skip to content

Matter Thermostat: add support for modular profiles #2084

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ctowns
Copy link
Contributor

@ctowns ctowns commented Apr 18, 2025

Check all that apply

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

Summary of Completed Tests

Copy link

Copy link

github-actions bot commented Apr 18, 2025

Test Results

   66 files  ±0    423 suites  ±0   0s ⏱️ ±0s
2 175 tests ±0  2 175 ✅ ±0  0 💤 ±0  0 ❌ ±0 
3 700 runs  ±0  3 700 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 10b1fce. ± Comparison against base commit 0d97bf5.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 18, 2025

File Coverage
All files 74%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-thermostat/src/embedded-cluster-utils.lua 48%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-thermostat/src/init.lua 75%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 10b1fce


local function match_profile(driver, device)
-- must use profile switching on older hubs
if version.api < 14 and version.rpc < 7 then
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be an or, if either one is too low we use a static profile

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch - I updated this to an or instead, and I also left a note to update the RPC version to 8 once that gets into a build since I bumped the version number for the sake of tracking modular profile support 👍

Copy link

Duplicate profile check: Passed - no duplicate profiles detected.

components:
- id: main
capabilities:
- id: airPurifierFanMode
Copy link
Contributor

@nickolas-deboom nickolas-deboom Apr 22, 2025

Choose a reason for hiding this comment

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

Is the order of the capabilities going to match the order in existing profiles?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants