Skip to content

Reprofile on SW change of camera#2845

Merged
samadDotDev merged 1 commit intomainfrom
reprofile-on-camera-info-changed-main
Mar 26, 2026
Merged

Reprofile on SW change of camera#2845
samadDotDev merged 1 commit intomainfrom
reprofile-on-camera-info-changed-main

Conversation

@samadDotDev
Copy link
Copy Markdown
Contributor

This update adds camera reprofiling on infoChanged when the device's software version changes and camera device types are present.

It aligns with existing reprofiling behavior in parent cfg of matter-switch (and elsewhere), and ensures devices that initially onboard without camera endpoints can switch to the camera profile after a firmware update that introduces camera-related device types.

Test coverage was expanded to include a bridge-style mock that starts without camera endpoints and later receives them with a software version bump. This validates the lazy subdriver path where camera can_handle becomes true after onboarding and confirms camera infoChanged reprofiling executes correctly.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 24, 2026

Channel deleted.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 24, 2026

Test Results

   72 files    495 suites   0s ⏱️
2 710 tests 2 710 ✅ 0 💤 0 ❌
4 578 runs  4 578 ✅ 0 💤 0 ❌

Results for commit 0ecff79.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 24, 2026

File Coverage
All files 93%
/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/sub_drivers/camera/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/switch_handlers/event_handlers.lua 97%
/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/attribute_handlers.lua 84%
/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_handlers/capability_handlers.lua 82%
/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/third_reality_mk1/init.lua 95%
/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/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/init.lua 97%
/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/ikea_scroll/scroll_handlers/event_handlers.lua 93%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 0ecff79

@samadDotDev samadDotDev force-pushed the reprofile-on-camera-info-changed-main branch from b6dba12 to 5091303 Compare March 26, 2026 02:59
@samadDotDev samadDotDev marked this pull request as ready for review March 26, 2026 02:59
@samadDotDev samadDotDev force-pushed the reprofile-on-camera-info-changed-main branch from 5091303 to 23ff223 Compare March 26, 2026 03:09
@samadDotDev samadDotDev force-pushed the reprofile-on-camera-info-changed-main branch from cafed54 to 0ecff79 Compare March 26, 2026 19:01
@samadDotDev samadDotDev merged commit 2b87fc3 into main Mar 26, 2026
11 checks passed
@samadDotDev samadDotDev deleted the reprofile-on-camera-info-changed-main branch March 26, 2026 19:24
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.

4 participants