Skip to content

Comments

Matter Switch: Subscribe to power topology attributes rather than read them#2792

Open
hcarter-775 wants to merge 2 commits intomainfrom
subscribe/power-topology-attributes
Open

Matter Switch: Subscribe to power topology attributes rather than read them#2792
hcarter-775 wants to merge 2 commits intomainfrom
subscribe/power-topology-attributes

Conversation

@hcarter-775
Copy link
Contributor

@hcarter-775 hcarter-775 commented Feb 20, 2026

Description of Change

To take advantage of the built-in retry mechanisms of the Matter subscription, move the AvailableEndpoints/PartsList attribute reads for multi-energy meter devices to the subscription list under certain conditions. The current logic should otherwise be unchanged.

Summary of Completed Tests

Tested on-device through a driver restart and a driverSwitched event, and with a fresh onboarding.

WWST test suite ran through with this driver link.

@hcarter-775 hcarter-775 force-pushed the subscribe/power-topology-attributes branch from 6b97db6 to 191d97d Compare February 20, 2026 16:59
@github-actions
Copy link

github-actions bot commented Feb 20, 2026

File Coverage
All files 93%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/camera/init.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_utils/embedded_cluster_utils.lua 38%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_utils/device_configuration.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_utils/utils.lua 92%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/camera/camera_utils/device_configuration.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/camera/camera_utils/utils.lua 98%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/camera/camera_handlers/capability_handlers.lua 78%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/camera/camera_handlers/attribute_handlers.lua 95%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/eve_energy/init.lua 91%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/third_reality_mk1/init.lua 95%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/aqara_cube/init.lua 96%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/init.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/ikea_scroll/init.lua 89%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_handlers/attribute_handlers.lua 84%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_handlers/capability_handlers.lua 90%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/switch_handlers/event_handlers.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/ikea_scroll/scroll_handlers/event_handlers.lua 93%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 3798f8b

@github-actions
Copy link

@github-actions
Copy link

github-actions bot commented Feb 20, 2026

Test Results

   72 files    486 suites   0s ⏱️
2 531 tests 2 531 ✅ 0 💤 0 ❌
4 346 runs  4 346 ✅ 0 💤 0 ❌

Results for commit 3798f8b.

♻️ This comment has been updated with latest results.

@hcarter-775 hcarter-775 force-pushed the subscribe/power-topology-attributes branch from 585b85e to 3798f8b Compare February 20, 2026 21:39
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