Skip to content

Matter Thermostat: Use fanMode capability #2205

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nickolas-deboom
Copy link
Contributor

@nickolas-deboom nickolas-deboom commented Jun 18, 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 replaces the use of thermostatFanMode with fanMode, to better align with the fan modes and sequences defined by the Fan Control cluster. Note that existing static profiles will continue to utilize thermostatFanMode, so this change will only affect newly onboarded devices that use the thermostat-modular profile.

Summary of Completed Tests

Unit tests updated. Needs device testing to ensure no regression.

Copy link

github-actions bot commented Jun 18, 2025

Duplicate profile check: Passed - no duplicate profiles detected.

Copy link

github-actions bot commented Jun 18, 2025

Test Results

   68 files    444 suites   0s ⏱️
2 317 tests 2 317 ✅ 0 💤 0 ❌
3 918 runs  3 918 ✅ 0 💤 0 ❌

Results for commit ee21e73.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jun 18, 2025

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

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against ee21e73

Copy link

@nickolas-deboom nickolas-deboom force-pushed the matter-thermostat-use-fan-mode-capability branch from fd88017 to 10c58ef Compare June 18, 2025 16:42
@nickolas-deboom nickolas-deboom force-pushed the matter-thermostat-use-fan-mode-capability branch 3 times, most recently from e7399c0 to b184f83 Compare June 20, 2025 19:21
@Huangxiangjie
Copy link
Contributor

Huangxiangjie commented Jun 24, 2025

Hi @nickolas-deboom.
We are also looking at fan level in thermostat. We tested this PR with real device and the fan mode capability works fine.

This change replaces the use of thermostatFanMode with fanMode, to
better align with the fan modes and sequences defined by the Fan Control
cluster.

Also, fanMode is now used in fan profiles over airConditionerFanMode.
@nickolas-deboom nickolas-deboom force-pushed the matter-thermostat-use-fan-mode-capability branch from c1d0935 to ee21e73 Compare June 24, 2025 19:01
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