-
Notifications
You must be signed in to change notification settings - Fork 484
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
Conversation
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.
Duplicate profile check: Passed - no duplicate profiles detected. |
Test Results 66 files 423 suites 0s ⏱️ Results for commit c9762b1. ♻️ This comment has been updated with latest results. |
Minimum allowed coverage is Generated by 🐒 cobertura-action against c9762b1 |
Channel deleted. |
drivers/SmartThings/matter-sensor/src/test/test_matter_smoke_co_alarm.lua
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
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.