-
|
Have kept my eyes on this project for a few months. Still lots of matter concepts that are over my head! I'm able to compile and run the examples and can add them to my matter network, which is great. The next step I would imagine taking is turning on / off the onboard LED, but I didn't have any luck trying to translate from the examples; it would seem I'm not the only one. If anyone in the community does have a working example, I'd love to check it out! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
The answer provided in the issue you linked to is still valid: the examples use an example on-off cluster, that does not really toggle a physical pin on the device. In the meantime, the support for the on-off cluster has evolved though so there is now something called "hooks" (an Here's one demo that toggles a LED for "real": https://github.com/hicklin/rs-matter-rgb-lamp (EDIT: this demo is a bit more complex though, as it drives an RGB led). As for the overall support for app clusters in Finally, if you are targeting the esp32 MCUs, you probably want to use |
Beta Was this translation helpful? Give feedback.
-
Thanks for this! I think the onboard LED of the device I had in mind is also an RGB LED, so that might work perfect.
Yes, I have my eyes on that project as well (excited to see they're already jumping on the 1.0 release of esp-hal); this repo has an order of magnitude more stars and issues and was the source of the linked issue we both referenced, so I thought it was a reasonable place to start a "Discussion." Thanks for your time! |
Beta Was this translation helpful? Give feedback.
-
|
As a delayed followup, I initially had some issues, but as of b579a6dea245428c389aa64b58f0fc7cbfcc8802 I was able to run the example repo and control the ESP32's built-in RGB LED: hicklin/rs-matter-rgb-lamp@b579a6d A great "prove that it works IRL" example, thanks for pointing it out! |
Beta Was this translation helpful? Give feedback.
The answer provided in the issue you linked to is still valid: the examples use an example on-off cluster, that does not really toggle a physical pin on the device.
In the meantime, the support for the on-off cluster has evolved though so there is now something called "hooks" (an
OnOffHookstrait for the on-off cluster), that you might want to implement instead of the complete OnOff cluster so that you can toggle your blinky.Here's one demo that toggles a LED for "real": https://github.com/hicklin/rs-matter-rgb-lamp (EDIT: this demo is a bit more complex though, as it drives an RGB led).
As for the overall support for app clusters in
rs-matter, check thisFinally, if you are targeting th…