Skip to content

Matter Thermostat: Add 'off' to thermostatMode by default only if switch is not supported#2761

Merged
hcarter-775 merged 3 commits intomainfrom
thermostat-mode-off-conditional
Feb 10, 2026
Merged

Matter Thermostat: Add 'off' to thermostatMode by default only if switch is not supported#2761
hcarter-775 merged 3 commits intomainfrom
thermostat-mode-off-conditional

Conversation

@hcarter-775
Copy link
Contributor

@hcarter-775 hcarter-775 commented Feb 5, 2026

Description of Change

Insert gating to only add the optional "off" mode to thermostatMode in the case that the switch capability is not supported, since this can implement the same behavior more naturally.

Summary of Completed Tests

Unit tests added, tested on-device and with example app.

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

Channel deleted.

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

Test Results

   71 files    485 suites   0s ⏱️
2 519 tests 2 519 ✅ 0 💤 0 ❌
4 334 runs  4 334 ✅ 0 💤 0 ❌

Results for commit 5cae865.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

File Coverage
All files 91%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-thermostat/src/thermostat_utils/legacy_device_configuration.lua 86%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-thermostat/src/thermostat_utils/embedded_cluster_utils.lua 95%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-thermostat/src/thermostat_utils/device_configuration.lua 91%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-thermostat/src/thermostat_utils/utils.lua 93%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-thermostat/src/init.lua 98%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-thermostat/src/thermostat_handlers/capability_handlers.lua 88%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-thermostat/src/thermostat_handlers/attribute_handlers.lua 81%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 5cae865

@hcarter-775 hcarter-775 merged commit 42658b0 into main Feb 10, 2026
11 checks passed
@hcarter-775 hcarter-775 deleted the thermostat-mode-off-conditional branch February 10, 2026 21:35
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.

2 participants

Comments