Skip to content

Matter Window Covering: Add embedded clusters for Descriptor, Global clusters#3088

Open
hcarter-775 wants to merge 3 commits into
mainfrom
add/pre58-window-covering-support
Open

Matter Window Covering: Add embedded clusters for Descriptor, Global clusters#3088
hcarter-775 wants to merge 3 commits into
mainfrom
add/pre58-window-covering-support

Conversation

@hcarter-775

Copy link
Copy Markdown
Contributor

Description of Change

Add embedded cluster definitions for Descriptor and Global clusters. Update usages of these in tests and in get_endpoints calls. Use correct can_handle path for all subdrivers in case the v1 lazy loading is invoked.

Summary of Completed Tests

Tests continue to pass as expected in lower firmwares as well as the latest.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

Test Results

   73 files    521 suites   0s ⏱️
3 009 tests 3 009 ✅ 0 💤 0 ❌
4 927 runs  4 927 ✅ 0 💤 0 ❌

Results for commit 6dbc617.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

File Coverage
All files 85%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-window-covering/src/sub_drivers/closure/init.lua 78%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-window-covering/src/sub_drivers/closure/closure_handlers/attribute_handlers.lua 86%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-window-covering/src/sub_drivers/closure/closure_handlers/capability_handlers.lua 73%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-window-covering/src/sub_drivers/matter-window-covering-position-updates-while-moving/can_handle.lua 70%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-window-covering/src/sub_drivers/closure/closure_utils/embedded_cluster_utils.lua 43%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-window-covering/src/sub_drivers/closure/closure_utils/utils.lua 91%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-window-covering/src/init.lua 90%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-window-covering/src/lazy_load_subdriver.lua 57%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 6dbc617

if version.api < 16 then
clusters.Global.types.SemanticTagStruct:augment_type(ib.data)
end
print("TagList attribute value: ", ib.data)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: remove

if version.api < 20 then
clusters.ClosureControl = require "embedded_clusters.ClosureControl"
clusters.ClosureDimension = require "embedded_clusters.ClosureDimension"
clusters.Global = require "embedded_clusters.Global"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't Global be included if API is <16?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe... the Closure clusters depend on Global too so it seemed cleaner to go this way.

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