Skip to content

Matter Switch: Explicitly check default endpoint for Water Valves#2900

Merged
hcarter-775 merged 1 commit intomainfrom
support/ensure-default-ep-for-water-valves
Apr 14, 2026
Merged

Matter Switch: Explicitly check default endpoint for Water Valves#2900
hcarter-775 merged 1 commit intomainfrom
support/ensure-default-ep-for-water-valves

Conversation

@hcarter-775
Copy link
Copy Markdown
Contributor

@hcarter-775 hcarter-775 commented Apr 13, 2026

Description of Change

Today, the VDA version of the Water Valve that is often used for testing includes an on/off endpoint on its first endpoint, the same endpoint that exposes Water Valve. Therefore, the VDA version of this device type is currently exposed with the switch-binary profile today. This should not affect live water valve devices, since they should not be exposing the onoff cluster on any endpoint. However, since it is allowed per spec, and since it is exposed on a test Matter device today, this fixes the issue.

Further, it fixes any generic issues in which the Water Valve is exposed on an endpoint that does not match the MATTER_DEFAULT_ENDPOINT, and simplifies the checks in find_default_endpoint.

Summary of Completed Tests

  • Successfully onboarded the VDA Water Valve. Before the fix, it onboarded as switch-binary, and afterwards onboarded as water-valve-level.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 13, 2026

Channel deleted.

@github-actions
Copy link
Copy Markdown

Test Results

   72 files    499 suites   0s ⏱️
2 740 tests 2 740 ✅ 0 💤 0 ❌
4 632 runs  4 632 ✅ 0 💤 0 ❌

Results for commit d04ecd9.

@github-actions
Copy link
Copy Markdown

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/device_configuration.lua 96%
/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/utils.lua 92%
/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/eve_energy/init.lua 91%
/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/camera/camera_handlers/capability_handlers.lua 82%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-switch/src/sub_drivers/camera/camera_handlers/attribute_handlers.lua 96%
/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_utils/device_configuration.lua 97%
/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/aqara_cube/init.lua 96%
/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/sub_drivers/ikea_scroll/scroll_handlers/event_handlers.lua 93%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against d04ecd9

@hcarter-775 hcarter-775 merged commit a23af85 into main Apr 14, 2026
12 checks passed
@hcarter-775 hcarter-775 deleted the support/ensure-default-ep-for-water-valves branch April 14, 2026 19:46
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.

3 participants