Repository navigation
Support battery powered Matter cameras - #3314
Conversation
|
Profile category check: ✅ Passed - all profiles have a category defined. |
|
Duplicate profile check: Passed - no duplicate profiles detected. |
|
Channel deleted. |
Test Results 73 files 550 suites 0s ⏱️ Results for commit dab0d75. ♻️ This comment has been updated with latest results. |
|
matter-switch_coverage.xml
Minimum allowed coverage is Generated by 🐒 cobertura-action against dab0d75 |
|
Question on |
Good question and valid concern! There can be multiple instances of power source cluster indeed, per spec
I have added that handling in 7c748c7 |
7c748c7 to
998471b
Compare
Description of Change
In order to support battery powered Matter Cameras, we need to add these 3 capabilities to the profile:
battery(to expose battery %)batteryLevel(to expose levels such as "critical", "warning" and "normal", when the % isn't supported)chargingState(for cameras with rechargeable batteries, which is almost always the case)All 3 were added based on feature map and attributes list in Power source cluster. These have been tested with their state updates (so critical level or low % results in a notification, and the % is shown in the top-right corner of live-view player) as well as conditions of automation (e.g., a user can setup notification when camera charging is complete if unmounted etc)
Note that we only expose % capability when camera supports both % and level for the battery. This is to remain consistent with our existing usages in other Matter drivers, but it should be re-evaluated given that level has device/battery-subjective thresholds (which can vary depending on battery chemistry).
Summary of Completed Tests