8000 New controller example + ClientNode features by lauckhart · Pull Request #2217 · project-chip/matter.js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

New controller example + ClientNode features #2217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 4, 2025

Conversation

lauckhart
Copy link
Collaborator

New controller example + ClientNode features

  • Adds an example that commissions/decommissions/toggles a device that supports On/Off

  • Implement input fields for client invocation via Interactable

  • Implement decommissioning for ClientNode

Needs to merge after #2200

Copy link
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 introduces a new controller example and several new features for ClientNode, including decommissioning. It also includes a significant amount of refactoring across the codebase, especially in the mock networking and behavior components, which improves the overall structure and robustness.

I've found a few issues that need attention:

  • A critical issue in the new OnOffController.ts example where command-line argument parsing is incorrect.
  • A high-severity issue in Promises.ts that could cause withTimeout to hang.
  • A high-severity typing regression in ClusterInterface.ts that removes the distinction between optional and mandatory commands.

Once these are addressed, this will be a great addition to the project.

@lauckhart lauckhart force-pushed the control-light branch 3 times, most recently from c4a946d to 6c1b350 Compare June 30, 2025 19:54
lauckhart added 3 commits July 1, 2025 10:23
* Adds an example that commissions/decommissions/toggles a device that supports On/Off

* Implement input fields for client invocation via Interactable

* Implement decommissioning for ClientNode
Plus one more cycle in @matter/node that the cycle logic didn't seem to detect.
@Apollon77
Copy link
Collaborator

All comments during review and infos, so can be ignored and discussed aside or put to todo list for the new API ... were basically just thoughts

lauckhart added 2 commits July 3, 2025 12:00
And updates to control-onoff
- Remove "decommission"
- "delete" decommission properly removes node from fabric
- "erase" force removal without properly decommissioning
@Apollon77 Apollon77 merged commit 2715344 into project-chip:main Jul 4, 2025
41 checks passed
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.

2 participants
0