-
Notifications
You must be signed in to change notification settings - Fork 494
Matter Switch: Add greater Energy profiling logic for Switches #2199
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
base: main
Are you sure you want to change the base?
Conversation
Duplicate profile check: Passed - no duplicate profiles detected. |
Invitation URL: |
Test Results 67 files 441 suites 0s ⏱️ Results for commit ca5b1d0. ♻️ This comment has been updated with latest results. |
Minimum allowed coverage is Generated by 🐒 cobertura-action against ca5b1d0 |
…hingsCommunity/SmartThingsEdgeDrivers into add/power-topology-handling
drivers/SmartThings/matter-switch/src/test/test_aqara_light_switch_h2.lua
Outdated
Show resolved
Hide resolved
These changes look great! I think it might be a good idea to test on some additional device types since some of the init code is being changed. |
aeafdff
to
ca5b1d0
Compare
Description of Change
Update the Matter Switch driver to support the Power Topology cluster. Specifically, include support for the Node and Set features of the cluster. Update unit tests to handle this update.
Further, update
powerConsumptionReport
handling to only send reports to one single capability, even when there are multiple child devices getting energy reports.Last, update energy and power handlers from emit_event_for_endpoint() calls to emit_component_event() calls to simplify handling by avoiding the weaknesses in our current
endpoint_to_component()
functionality.Summary of Completed Tests
Tests updated and continue to pass.
Tested on multi-plug energy device.
Tested on single plug energy device.