Skip to content

Pre release v1.1 v1.5 branch custom cluster - #42

Draft
fengtai-telink wants to merge 2 commits into
pre_release-v1.1-v1.5-branchfrom
pre_release-v1.1-v1.5-branch_custom_cluster
Draft

Pre release v1.1 v1.5 branch custom cluster#42
fengtai-telink wants to merge 2 commits into
pre_release-v1.1-v1.5-branchfrom
pre_release-v1.1-v1.5-branch_custom_cluster

Conversation

@fengtai-telink

Copy link
Copy Markdown
Collaborator

Summary

Related issues

Testing

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

 - Application is created based on examples/lighting-app.
 - All unused files has been removed.

Signed-off-by: Fengtai Xie <fengtai.xie@telink-semi.com>
 - Add MS DeltadelfinAnimationGradient cluster.
 - Add MS cluster to sample project(examples/lighting-custom-app):
   We provide the '.zap' and '.matter' to test (In GUI added DeltadelfinAnimationGradient into endpoint 1).
   If you need to modify the corresponding cluster, please configure it yourself.
   [./../../../scripts/tools/zap/run_zaptool.sh ../lighting-common/lighting-app.zap]
   [./../../../scripts/tools/zap/generate.py ../lighting-common/lighting-app.zap]
 - Add application MS cluster callbacks.

Signed-off-by: Fengtai Xie <fengtai.xie@telink-semi.com>
@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 234f2e8c-4002-407f-9bcf-63ed90356b3f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@fengtai-telink

fengtai-telink commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator Author

@andriy-bilynskyy @damien0x0023 @haiwentelink @wuhaoTelink

Code Merge

  1. Build lighting-custom-app based on tl521x lighting-app.
  2. Change ' ikea ' to ' tl '.
  3. Re-generate .matter by running zap/generate.py based on .zap.
  4. Re-run zap_regen_all.py.
  5. Improve the application demo and build usage instructions.

Use Info

Add Custom Cluster Demo

cd ~/connectedhomeip

source scripts/activate.sh

cp examples/lighting-app examples/lighting-custom-app -R

git apply add_lighting-custom_cluster.patch

./scripts/tools/zap/generate.py examples/lighting-custom-app/lighting-common/lighting-app.zap

./scripts/tools/zap_regen_all.py

Build and Flash to Test

cd examples/lighting-custom-app/telink

west build -p -b tl5218x -- -DCONF_FILE="prj.conf boards/tl5218x_4m_flash_dual_mode_ota.conf" -DFLASH_SIZE=4m

Test CMD

Pairing

rm -rf /tmp/chip_*

./chip-tool pairing ble-thread 1234 hex:0e080000000000010000000300000f35060004001fffe0020811111111222222220708fd9583b7b2b6954b051000112233445566778899aabbccddeeff030e4f70656e54687265616444656d6f010212340410445f2b5ca6f2a93a55ce570a70efeecb0c0402a0f7f8 20202021 3840

DisplayMode

./chip-tool any read-by-id 0x117CFC00 0x0000 1234 1

./chip-tool any command-by-id 0x117CFC00 0x02 '{"0x0":1}' 1234 1

./chip-tool any read-by-id 0x117CFC00 0x0000 1234 1

CurrentAnimation

./chip-tool any read-by-id 0x117CFC00 0x0001 1234 1

./chip-tool any command-by-id 0x117CFC00 0x00 '{"0x0":1}' 1234 1

./chip-tool any read-by-id 0x117CFC00 0x0001 1234 1

CurrentGradient

./chip-tool any read-by-id 0x117CFC00 0x0002 1234 1

./chip-tool any command-by-id 0x117CFC00 0x01 '{"0x0":8,"0x1":500}' 1234 1

./chip-tool any read-by-id 0x117CFC00 0x0002 1234 1

@fengtai-telink fengtai-telink self-assigned this Aug 31, 2026
@damien0x0023
damien0x0023 marked this pull request as draft August 31, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant