Skip to content

[DO NOT REVIEW] Update ZAP XML for Thermostat#43624

Closed
AryaHassanli wants to merge 7 commits intoproject-chip:masterfrom
AryaHassanli:update-thermostat-zap
Closed

[DO NOT REVIEW] Update ZAP XML for Thermostat#43624
AryaHassanli wants to merge 7 commits intoproject-chip:masterfrom
AryaHassanli:update-thermostat-zap

Conversation

@AryaHassanli
Copy link
Copy Markdown
Contributor

@AryaHassanli AryaHassanli commented Mar 17, 2026

Summary

Update ZAP XML of Thermostat Cluster(src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml) using:

alchemy zap --attribute=ambient-context-sensor,ambientsensing,cameras,cameras-image-rotation,groupcast,hrap-pdc,hrap-tbrd,hvac-thermostat-events,hvac-thermostat-suggestions,improved-capabilities-tcr,partitioned-crl,security-sensor-events-tcr,tcr-smokeco-unmounted-state,temperature-alarm,thread-commissioning --provisional-policy=loose --force --specRoot <connectedhomeip-spec> --sdkRoot <connectedhomeip> <connectedhomeip-spec>/src/app_clusters/Thermostat.adoc 

The above list of attributes are the tags approved for v1.6 at 0.9.

Remove support in src
The following files were updated to remove support of obsolete commands and features:

  • src/controller/data_model/controller-clusters.zap
  • src/app/clusters/thermostat-server/thermostat-server.cpp
  • examples/placeholder/linux/apps/app1/config.zap
  • examples/placeholder/linux/apps/app2/config.zap
  • (removed) src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterWeeklyScheduleTransitionStruct.kt
  • (removed) src/controller/java/generated/java/matter/controller/cluster/structs/ThermostatClusterWeeklyScheduleTransitionStruct.kt

Regenerate ZAP files using:

python scripts/tools/zap_regen_all.py

Related issues

#43487
This is the second PR of 3 PRs to fix the above issue.

Testing

CI test is enough.

Readability checklist

The checklist below will help the reviewer finish PR review in time and keep the
code readable:

  • PR title is
    descriptive
  • Apply the
    “When in Rome…”
    rule (coding style)
  • PR size is short
  • Try to avoid "squashing" and "force-update" in commit history
  • CI time didn't increase

See: Pull Request Guidelines

Copy link
Copy Markdown
Contributor

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

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 updates the ZAP XML definition for the Thermostat cluster and regenerates all associated files. The changes primarily involve removing deprecated weekly schedule-related features and attributes, updating the cluster revision, and modifying the properties of several other attributes. The changes have been propagated across all relevant generated source code files for various platforms (Java, Kotlin, Python, C++, Objective-C). The changes appear consistent with an automated regeneration. Per the repository's style guide, which advises against commenting on generated files, XML, and .matter files, I have no specific comments on the code changes.

@github-actions
Copy link
Copy Markdown

PR #43624: Size comparison from 3a725ca to 53cf72b

Full report (3 builds for realtek, stm32)
platform target config section 3a725ca 53cf72b change % change
realtek light-switch-app rtl8777g FLASH 730096 730096 0 0.0
RAM 113404 113404 0 0.0
lighting-app rtl8777g FLASH 777832 777832 0 0.0
RAM 114644 114644 0 0.0
stm32 light STM32WB5MM-DK FLASH 479728 479728 0 0.0
RAM 141324 141324 0 0.0

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 17, 2026

PR #43624: Size comparison from 3a725ca to 5278c1b

Full report (6 builds for cc32xx, nrfconnect, realtek, stm32)
platform target config section 3a725ca 5278c1b change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 558650 558650 0 0.0
RAM 204504 204504 0 0.0
lock CC3235SF_LAUNCHXL FLASH 591814 591814 0 0.0
RAM 204744 204744 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 858144 858144 0 0.0
RAM 162019 162019 0 0.0
realtek light-switch-app rtl8777g FLASH 730096 730096 0 0.0
RAM 113404 113404 0 0.0
lighting-app rtl8777g FLASH 777832 777832 0 0.0
RAM 114644 114644 0 0.0
stm32 light STM32WB5MM-DK FLASH 479728 479728 0 0.0
RAM 141324 141324 0 0.0

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 17, 2026

PR #43624: Size comparison from 3a725ca to 96c07ea

Full report (6 builds for cc32xx, nrfconnect, realtek, stm32)
platform target config section 3a725ca 96c07ea change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 558650 558650 0 0.0
RAM 204504 204504 0 0.0
lock CC3235SF_LAUNCHXL FLASH 591814 591814 0 0.0
RAM 204744 204744 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 858144 858144 0 0.0
RAM 162019 162019 0 0.0
realtek light-switch-app rtl8777g FLASH 730096 730096 0 0.0
RAM 113404 113404 0 0.0
lighting-app rtl8777g FLASH 777832 777832 0 0.0
RAM 114644 114644 0 0.0
stm32 light STM32WB5MM-DK FLASH 479728 479728 0 0.0
RAM 141324 141324 0 0.0

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 17, 2026

PR #43624: Size comparison from 3a725ca to 9e7699b

Full report (6 builds for cc32xx, nrfconnect, realtek, stm32)
platform target config section 3a725ca 9e7699b change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 558650 558650 0 0.0
RAM 204504 204504 0 0.0
lock CC3235SF_LAUNCHXL FLASH 591814 591814 0 0.0
RAM 204744 204744 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 858144 858144 0 0.0
RAM 162019 162019 0 0.0
realtek light-switch-app rtl8777g FLASH 730096 730096 0 0.0
RAM 113404 113404 0 0.0
lighting-app rtl8777g FLASH 777832 777832 0 0.0
RAM 114644 114644 0 0.0
stm32 light STM32WB5MM-DK FLASH 479728 479728 0 0.0
RAM 141324 141324 0 0.0

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 17, 2026

PR #43624: Size comparison from 3a725ca to 99e8f00

Full report (8 builds for cc32xx, nrfconnect, qpg, realtek, stm32)
platform target config section 3a725ca 99e8f00 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 558650 558650 0 0.0
RAM 204504 204504 0 0.0
lock CC3235SF_LAUNCHXL FLASH 591814 591814 0 0.0
RAM 204744 204744 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 858144 858144 0 0.0
RAM 162019 162019 0 0.0
qpg lighting-app qpg6200+debug FLASH 841020 841020 0 0.0
RAM 127796 127796 0 0.0
lock-app qpg6200+debug FLASH 779972 779972 0 0.0
RAM 118744 118744 0 0.0
realtek light-switch-app rtl8777g FLASH 730096 730096 0 0.0
RAM 113404 113404 0 0.0
lighting-app rtl8777g FLASH 777832 777832 0 0.0
RAM 114644 114644 0 0.0
stm32 light STM32WB5MM-DK FLASH 479728 479728 0 0.0
RAM 141324 141324 0 0.0

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 17, 2026

PR #43624: Size comparison from 3a725ca to 7de3759

Full report (34 builds for bl602, bl616, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section 3a725ca 7de3759 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1090298 1090298 0 0.0
RAM 144778 144778 0 0.0
bl616 lighting-app bl616+thread FLASH 1100804 1100804 0 0.0
RAM 104216 104216 0 0.0
bl616+wifi+shell FLASH 1587676 1587676 0 0.0
RAM 98080 98080 0 0.0
bl702 lighting-app bl702+eth FLASH 1053234 1053234 0 0.0
RAM 108381 108381 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 891244 891244 0 0.0
RAM 105756 105756 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 780076 780076 0 0.0
RAM 103332 103332 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 787104 787104 0 0.0
RAM 108516 108516 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 733332 733332 0 0.0
RAM 97324 97324 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 716752 716752 0 0.0
RAM 97484 97484 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 558650 558650 0 0.0
RAM 204504 204504 0 0.0
lock CC3235SF_LAUNCHXL FLASH 591814 591814 0 0.0
RAM 204744 204744 0 0.0
efr32 lock-app BRD4187C FLASH 971764 971764 0 0.0
RAM 125828 125828 0 0.0
BRD4338a FLASH 769948 769948 0 0.0
RAM 236552 236552 0 0.0
window-app BRD4187C FLASH 1075368 1075360 -8 -0.0
RAM 126440 126440 0 0.0
esp32 all-clusters-app c3devkit DRAM 98372 98372 0 0.0
FLASH 1597300 1597300 0 0.0
IRAM 93514 93514 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 858144 858144 0 0.0
RAM 162019 162019 0 0.0
nxp contact mcxw71+release FLASH 736456 736456 0 0.0
RAM 66944 66944 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1709172 1709172 0 0.0
RAM 213948 213948 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1607868 1607868 0 0.0
RAM 210820 210820 0 0.0
light cy8ckit_062s2_43012 FLASH 1471620 1471620 0 0.0
RAM 196996 196996 0 0.0
lock cy8ckit_062s2_43012 FLASH 1497756 1497756 0 0.0
RAM 224740 224740 0 0.0
qpg lighting-app qpg6200+debug FLASH 841020 841020 0 0.0
RAM 127796 127796 0 0.0
lock-app qpg6200+debug FLASH 779972 779972 0 0.0
RAM 118744 118744 0 0.0
realtek light-switch-app rtl8777g FLASH 730096 730096 0 0.0
RAM 113404 113404 0 0.0
lighting-app rtl8777g FLASH 777832 777832 0 0.0
RAM 114644 114644 0 0.0
stm32 light STM32WB5MM-DK FLASH 479728 479728 0 0.0
RAM 141324 141324 0 0.0
telink bridge-app tl7218x FLASH 729310 729310 0 0.0
RAM 95772 95772 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 853790 853790 0 0.0
RAM 44188 44188 0 0.0
tl7218x FLASH 845200 845200 0 0.0
RAM 99576 99576 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 726122 726122 0 0.0
RAM 55752 55752 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 788690 788690 0 0.0
RAM 74928 74928 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 726116 726116 0 0.0
RAM 33232 33232 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 617198 617198 0 0.0
RAM 118244 118244 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 843970 843974 4 0.0
RAM 97284 97284 0 0.0

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.12%. Comparing base (fa956ce) to head (7de3759).
⚠️ Report is 42 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #43624      +/-   ##
==========================================
+ Coverage   54.07%   54.12%   +0.04%     
==========================================
  Files        1548     1551       +3     
  Lines      106709   106955     +246     
  Branches    13308    13313       +5     
==========================================
+ Hits        57704    57888     +184     
- Misses      49005    49067      +62     

☔ View full report in Codecov by Sentry.
📢 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.

@AryaHassanli AryaHassanli marked this pull request as draft March 23, 2026 18:21
@AryaHassanli AryaHassanli changed the title Update ZAP XML for Thermostat [DO NOT REVIEW] Update ZAP XML for Thermostat Mar 23, 2026
@github-project-automation github-project-automation Bot moved this from Todo to Done in [Platform] Darwin Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant