Skip to content
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

Is there a matter.js version of the light-switch example program? #533

Closed
whqxbs opened this issue Nov 20, 2023 · 6 comments
Closed

Is there a matter.js version of the light-switch example program? #533

whqxbs opened this issue Nov 20, 2023 · 6 comments
Labels
duplicate This issue or pull request already exists

Comments

@whqxbs
Copy link

whqxbs commented Nov 20, 2023

Dear,

I initially used the ESP32 example program in connectedhomeip/examples/light-switch-app with acl and binding cluster to implement the ESP32 development board to control the light on/off. But because of some problems ESP32 physical device is not very convenient for my debugging, so I want to use matter.js project to generate virtual switch and light so that it is more convenient to carry out related tests.

I found DeviceNode.ts is the sample program for the light, but I didn't find the sample program for the switch, where can I get it please? Or is there any good brother who has implemented the matter.js code for this switch and could you share it for me? Thanks a lot!

Thanks and looking forward to your replies!

@antonio-gabriele
Copy link

@whqxbs
Copy link
Author

whqxbs commented Nov 20, 2023

Go there. https://github.com/antonio-gabriele/matter-test/tree/main/src

I can't quite read the code you provided, but it looks very interesting!
Is this repository of yours being tested for matter security? Can you tell me how to deploy your code?

@whqxbs
Copy link
Author

whqxbs commented Nov 20, 2023

Oh maybe did you implement a bridge with multiple Onoff functions?

You probably didn't understand what I meant. What I meant was that I wanted to use matter.js to implement a program similar to the 0x0103 On/Off Light Switch Cluster.

@Apollon77
Copy link
Collaborator

To copy the respond from Discord:

The ClusterClient integration for devices and Binding logic in general (and also ACL needed for that) is still on the todo list for matter.js, sorry. So not yet available. i currently work towards this by adding groups, after this acl and after this binding/Client topics ...

@Apollon77
Copy link
Collaborator

duplicate to #166

@Apollon77 Apollon77 added the duplicate This issue or pull request already exists label Nov 21, 2023
@whqxbs
Copy link
Author

whqxbs commented Nov 22, 2023

OK. Thanks for your answer :-) .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants