Skip to content

Enable Groupcast cluster on light-switch sample-app#72740

Open
jmartinez-silabs wants to merge 3 commits into
project-chip:masterfrom
jmartinez-silabs:re-enable_groupcast_light_switch
Open

Enable Groupcast cluster on light-switch sample-app#72740
jmartinez-silabs wants to merge 3 commits into
project-chip:masterfrom
jmartinez-silabs:re-enable_groupcast_light_switch

Conversation

@jmartinez-silabs

@jmartinez-silabs jmartinez-silabs commented Jun 25, 2026

Copy link
Copy Markdown
Member

Summary

Problem

Light-switch app do not have Groupcast cluster. The light-switch app is used as reference app for Binding test as TH sending commands to the bound device and shall be able to use Groupcast do for 1.6.1+

Solution

This is a redo of #71439 during 1.6 dev which was eventually reverted as groupcast remained provisional in 1.6
What is done:

  • Enable Groupcast cluster with Sender and PerGroupAddress features on the two common zap files for the sample-app and regen. (This app still use CodeGen)
  • Set chip_config_enable_groupcast=true, for all platforms running this sample-app, to enable currently gated groupcast code paths. For some platform this is done through KConfigs/cmakes configs using CONFIG_CHIP_ENABLE_GROUPCAST=y

Related issues

fixes #71499

Testing

Build, commission Light-switch on Silabs MG24. Confirm Presence of Groupcast cluster with feature map SD & PGA

[1782410583.124] [8677:8679] [TOO] Endpoint: 0 Cluster: 0x0000_0065 Attribute 0x0000_FFFC DataVersion: 736579638
[1782410583.128] [8677:8679] [TOO]   FeatureMap: 6

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request enables the provisional Groupcast cluster (cluster 101) for the light-switch-app across various platforms, updating the .matter and .zap files to include the cluster's attributes, commands, and events. However, in the ESP32 configuration, the Groupcast flag is missing the required 'CONFIG_' prefix, which will cause the build system to ignore it.

Comment thread examples/light-switch-app/esp32/sdkconfig.defaults Outdated
@jmartinez-silabs jmartinez-silabs force-pushed the re-enable_groupcast_light_switch branch from 5ad86e9 to d25a9f9 Compare June 25, 2026 18:05
@github-actions

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown

PR #72740: Size comparison from 413ff63 to d25a9f9

Full report (3 builds for cc32xx, stm32)
platform target config section 413ff63 d25a9f9 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 569654 569654 0 0.0
RAM 205112 205112 0 0.0
lock CC3235SF_LAUNCHXL FLASH 597214 597214 0 0.0
RAM 205272 205272 0 0.0
stm32 light STM32WB5MM-DK FLASH 478976 478976 0 0.0
RAM 141492 141492 0 0.0

@github-actions

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown

PR #72740: Size comparison from 413ff63 to bb6a069

Increases above 0.2%:

platform target config section 413ff63 bb6a069 change % change
nrfconnect light-switch-app nrf52840dk_nrf52840 FLASH 784952 793192 8240 1.0
telink light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 734714 743044 8330 1.1
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 795802 804132 8330 1.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 734630 742960 8330 1.1
RAM 34480 34584 104 0.3
Full report (41 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, psoc6, qpg, realtek, stm32, telink)
platform target config section 413ff63 bb6a069 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1099176 1099176 0 0.0
RAM 133418 133418 0 0.0
bl702 lighting-app bl702+eth FLASH 1085726 1085726 0 0.0
RAM 109029 109029 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 882218 882218 0 0.0
RAM 108596 108596 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 777368 777368 0 0.0
RAM 103404 103404 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 790120 790120 0 0.0
RAM 108684 108684 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 739376 739376 0 0.0
RAM 97612 97612 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 719548 719548 0 0.0
RAM 97644 97644 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 569654 569654 0 0.0
RAM 205112 205112 0 0.0
lock CC3235SF_LAUNCHXL FLASH 597214 597214 0 0.0
RAM 205272 205272 0 0.0
efr32 lighting-app BRD4187C FLASH 1094924 1094924 0 0.0
RAM 135256 135256 0 0.0
lock-app BRD4187C FLASH 995184 995184 0 0.0
RAM 131292 131292 0 0.0
BRD4338a FLASH 799809 799809 0 0.0
RAM 243432 243432 0 0.0
esp32 all-clusters-app c3devkit DRAM 99556 99556 0 0.0
FLASH 1626146 1626146 0 0.0
IRAM 94776 94776 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 844772 844772 0 0.0
RAM 157771 157771 0 0.0
nrf54l15dk_nrf54l15_cpuapp FLASH 960672 960672 0 0.0
RAM 159159 159159 0 0.0
light-switch-app nrf52840dk_nrf52840 FLASH 784952 793192 8240 1.0
RAM 122575 122675 100 0.1
lighting-app nrf52840dk_nrf52840+rpc FLASH 843396 843396 0 0.0
RAM 137847 137847 0 0.0
nrf52840dongle_nrf52840 FLASH 783056 783056 0 0.0
RAM 143785 143785 0 0.0
nrf54l15dk_nrf54l15_cpuapp FLASH 819496 819496 0 0.0
RAM 136959 136959 0 0.0
lock-app nrf52840dk_nrf52840 FLASH 769664 769664 0 0.0
RAM 122360 122360 0 0.0
nrf54l15dk_nrf54l15_cpuapp FLASH 783208 783208 0 0.0
RAM 123594 123594 0 0.0
shell nrf52840dk_nrf52840 FLASH 511512 511512 0 0.0
RAM 110450 110450 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1750756 1750756 0 0.0
RAM 215492 215492 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1626548 1626548 0 0.0
RAM 211604 211604 0 0.0
light cy8ckit_062s2_43012 FLASH 1470860 1470860 0 0.0
RAM 197436 197436 0 0.0
lock cy8ckit_062s2_43012 FLASH 1504308 1504308 0 0.0
RAM 225268 225268 0 0.0
qpg lighting-app qpg6200+debug FLASH 843156 843156 0 0.0
RAM 127908 127908 0 0.0
lock-app qpg6200+debug FLASH 782976 782976 0 0.0
RAM 118840 118840 0 0.0
realtek light-switch-app rtl8777g FLASH 689368 689968 600 0.1
RAM 101780 101880 100 0.1
lighting-app rtl8777g FLASH 730304 730304 0 0.0
RAM 102052 102052 0 0.0
stm32 light STM32WB5MM-DK FLASH 478976 478976 0 0.0
RAM 141492 141492 0 0.0
telink all-devices-app tl7218x FLASH 881716 881716 0 0.0
RAM 99716 99716 0 0.0
tlsr9118bdk40d FLASH 673322 673322 0 0.0
RAM 120848 120848 0 0.0
bridge-app tl7218x FLASH 734156 734156 0 0.0
RAM 97700 97700 0 0.0
light-app-ota-compress-lzma-factory-data tl3218x FLASH 800682 800682 0 0.0
RAM 42380 42380 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl7218x FLASH 845822 845822 0 0.0
RAM 101492 101492 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 734714 743044 8330 1.1
RAM 57824 57924 100 0.2
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 795802 804132 8330 1.0
RAM 75176 75276 100 0.1
light-switch-app-ota-factory-data tl3218x_retention FLASH 734630 742960 8330 1.1
RAM 34480 34584 104 0.3
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 615214 615214 0 0.0
RAM 118508 118508 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 842038 842042 4 0.0
RAM 97376 97376 0 0.0

@codecov

codecov Bot commented Jun 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.79%. Comparing base (e2077a4) to head (bb6a069).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #72740   +/-   ##
=======================================
  Coverage   56.79%   56.79%           
=======================================
  Files        1642     1642           
  Lines      112757   112757           
  Branches    13139    13139           
=======================================
  Hits        64040    64040           
  Misses      48717    48717           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants