Skip to content

Update smoke co alarm fault support #2045

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

Merged
merged 12 commits into from
Apr 16, 2025

Conversation

hcarter-775
Copy link
Contributor

@hcarter-775 hcarter-775 commented Apr 2, 2025

Description of Change

Support the SmokeCOAlarm attribute BatteryAlert through the hardwareFault capability. Support the batteryLevel capability with the PowerSource attribute BatChargeLevel, and include battery capability support with the PowerSource attribute BatPercentRemaining.

Summary of Completed Tests

Testd on device. New unit tests written and updated for the updated handling.

nickolas-deboom and others added 7 commits April 2, 2025 14:50
This change adds support for the battery percentage for devices that
support the BatPercentRemaining attribute from the PowerSource cluster
in addition to the battery level from the SmokeCoAlarm cluster.
Use battery if supported by the device, otherwise use batteryLevel if
the percentage is not supported.
Copy link

github-actions bot commented Apr 2, 2025

Duplicate profile check: Passed - no duplicate profiles detected.

Copy link

github-actions bot commented Apr 2, 2025

Test Results

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

Results for commit c9762b1.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 2, 2025

File Coverage
All files 84%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-sensor/src/embedded-cluster-utils.lua 45%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-sensor/src/smoke-co-alarm/init.lua 84%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-sensor/src/bosch-button-contact/init.lua 44%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-sensor/src/air-quality-sensor/init.lua 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-sensor/src/init.lua 91%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against c9762b1

Copy link

github-actions bot commented Apr 2, 2025

Channel deleted.

Copy link
Contributor

@nickolas-deboom nickolas-deboom left a comment

Choose a reason for hiding this comment

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

LGTM!

@hcarter-775 hcarter-775 merged commit 925dddd into main Apr 16, 2025
12 checks passed
@hcarter-775 hcarter-775 deleted the update-smoke-co-alarm-fault-support branch April 16, 2025 21:22
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