-
Notifications
You must be signed in to change notification settings - Fork 44
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
How to actually implement an LED light in onff_light example? #101
Comments
This question has popped up before, but I can't find a link to it, and yes - we should be clearer in the examples and in a future guide as to what the user is supposed to do. The TL;DR is: Longer story:
Also, there are multiple places where you can plug yourself in the framework - ordered in increasing level of control and decreasing level of "out of the box" experience with the lib. It is just that currently these are not well documented. As in, e.g. you can "pass" on the whole callback (a.k.a. "Handler") approach for your custom clusters, as long as you are willing to spin your own async loop and not re-use the giant future. |
Forgot to add: for the "system" clusters which are required by the Matter spec so that e.g. your provisioning works, we obviously provide both metadata and concrete |
I'm confused where I would add user code to actually do something with the on/off commands are received, am I missing something from the example code? It would seem that this is internally handled by
OnOffCluster
with no ability for me to observe changes like we see with other clusters likeMediaPlaybackCluster
. Perhaps we could include some simple print debugging or something when the user code would be expected to interact with a physical device to make this clearer for folks?The text was updated successfully, but these errors were encountered: