Skip to content
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

Include dynamic handling of the ThermostatOperatingState capability #1967

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

Conversation

hcarter-775
Copy link
Contributor

@hcarter-775 hcarter-775 commented Feb 27, 2025

Description of Change

This has been a TODO for a long time.
This change performs a read of the Thermostat AttributeList in added and checks whether the ThermostatRunningState attribute is included. Whether it is or isn't, the device is profiled accordingly.

Further, the powerSource attribute list read system was refactored a bit to play more nicely with this change, as well as any future changes. Both reads were moved to device_added with a cluster/feature gate, and a gating helper function was added to match_profile to ensure all reads have returned the necessary profiling information before profiling is completed.

Summary of Completed Tests

Unit tests updated to handle these changes. Some include a positive read and others a negative read to get a variety of test coverage.
Tested successfully on a physical device needing both a PowerSource and Thermostat AtrributeList read.

Copy link

Copy link

github-actions bot commented Feb 27, 2025

Test Results

   64 files    410 suites   0s ⏱️
2 067 tests 2 067 ✅ 0 💤 0 ❌
3 546 runs  3 546 ✅ 0 💤 0 ❌

Results for commit 913192f.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Feb 27, 2025

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

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 913192f

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.

1 participant