-
Notifications
You must be signed in to change notification settings - Fork 176
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
ON_OFF Cluster (CON-1178) #945
Comments
Are you using the namespaces?
|
Just needed to add the cluster namespace, thanks. Why would adding a custem cluster change the icon to a light? Is there a way to set the icon to something else? |
No, |
The end point is defined as on of light, without adding a custom on of cluster, the icon is different from when the custom cluster is added. Why would this be, since the endpoint did not change? |
What was the old icon and what new icon? Please attached some snapshots. What custom cluster you have added? |
On the right is a on_off_switch endpoint with no custom clusters configure, on the left is when a on_off cluster was added to the endpoint. How do I prevent it from changing? The endpoint and cluster was created as stated in the documents as specified in the first comment. Also visible in the image below. The uncommented part is to add the cluster, which then changes the icon to a light. |
@RoootNoodle This should not happen. We are looking into the issue. |
What app is that screen shot from? |
ESP-Rainmaker app |
@RoootNoodle could you please try out the latest iOS ESP Rainmaker app from Github or App Store with the above changes and see if it works? |
Unfortunately it still shows the same. Once the on off cluster is added the icon changes to a light icon as shown in previous comments. App version v3.3.2 |
I was wondering if you could show you compete program. I tried it also to make that thing but I get some errors on my code. Did you made BTW also other projects with matter? I also use matter for a school project and I'm a little bit stuck on it. |
@ravencarcass I used the light example and changed it to fit my needs. This is the only project I did with matter. The only code changed is the code in the screenshot and then in the app_driver.cpp file you have to ensure the variable names correspond with what was declared in app_main.cpp. In my case it is btn_endpoint_id, since app_driver.cpp reference that variable. You'll see in the image below |
@RoootNoodle why are you adding
This code would have no effect, as it is trying to add a cluster which already exists. You should also have a error log stating the same. https://github.com/espressif/esp-matter/blob/main/components/esp_matter/esp_matter_core.cpp#L1443 I don't think the code snippet that you added would cause any problem. Can you please re-check this one? Or what actually is the problem? |
Thx, for your feedback but. I don't understand it. For my project do I'need in total 3 endpoints. 2 dimming lights and 1 for mode_select_device. But I don't actually know what I'm doing. Pure because I don't know where I need to place everything. I normal program microcontrollers from STMicroelectronics, where everything is explained in a way easier way. Sorry for this side note , back to the question. so if you could help me. It would mean a lot to me. |
@ravencarcass Heres the doc that would help in product development: https://docs.espressif.com/projects/esp-matter/en/latest/esp32/developing.html#developing-your-product And for starter please refer examples/light, it has basic stuff that any project would need: 1. creating matter device, 2. updating driver when data is received from matter, 3. updating matter when data is received from non-matter (i.e. interrupt in this case). For mode-select please check this doc: https://docs.espressif.com/projects/esp-matter/en/latest/esp32/developing.html#mode-select |
Fun fact, I read part 2.5 now 10 times even more. It is for real verry frustrating that I'm not able to fix it. I begin to read and everything I read is relative easy but it's just the problem to apply the theory in the code. This is what I get if I follow the color_temperture_lightbulb. app_main.cpp
app_driver.cpp
|
@ravencarcass fun fact from my side, the code looks an exact copy of light example and the unindented code is NOT AT ALL READABLE, also screenshots do not help code does so that it can be tried. I'd be more interested in your efforts and I see none. Also, this issue is to solve the original authors problem, and I think we are bloating it. May be I'd suggest you to open up the new one, with exact details about your problem, your effort, the code that you tried, what really did not work? Is the build failing or you are getting a crash or have no clue what to do, etc. Please. |
Ok, sorry |
@shubhamdp The goal was to get the icon of the on_off_switch, but the on_off_switch can be interacted with from the app. It only shows whether a switch is in an on or off state. I would like to turn the switch either on, or off via the app. Therefore, I added the on_off_cluster to give that functionality to the on_off_switch endpoint. |
I am trying to create a custom cluster as shown by the guide https://docs.espressif.com/projects/esp-matter/en/latest/esp32/developing.html#defining-your-own-data-model . But the on-off config_t is not recognize, am I missing an include or how can this be fixed?

The text was updated successfully, but these errors were encountered: