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

ON_OFF Cluster (CON-1178) #945

Open
RoootNoodle opened this issue Jun 1, 2024 · 11 comments
Open

ON_OFF Cluster (CON-1178) #945

RoootNoodle opened this issue Jun 1, 2024 · 11 comments

Comments

@RoootNoodle
Copy link

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?
Screenshot from 2024-06-01 10-20-32

@jonsmirl
Copy link
Contributor

jonsmirl commented Jun 2, 2024

Are you using the namespaces?

using namespace esp_matter;
using namespace esp_matter::attribute;
using namespace esp_matter::endpoint;
using namespace esp_matter::cluster;

@github-actions github-actions bot changed the title ON_OFF Cluster ON_OFF Cluster (CON-1178) Jun 2, 2024
@RoootNoodle
Copy link
Author

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?

@jadhavrohit924
Copy link
Contributor

jadhavrohit924 commented Jun 3, 2024

Is there a way to set the icon to something else?

No, by default every ecosystem identifies every device as light only and at the time of commissioning based on endpoint composition ecosystem identify and create particular device types.

@RoootNoodle
Copy link
Author

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?

@jadhavrohit924
Copy link
Contributor

What was the old icon and what new icon? Please attached some snapshots. What custom cluster you have added?

@RoootNoodle
Copy link
Author

RoootNoodle commented Jun 3, 2024

image

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.

image

@jadhavrohit924
Copy link
Contributor

@RoootNoodle This should not happen. We are looking into the issue.

@jonsmirl
Copy link
Contributor

jonsmirl commented Jun 5, 2024

What app is that screen shot from?

@RoootNoodle
Copy link
Author

ESP-Rainmaker app

@ajay-gantayet
Copy link

@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?
App version: v3.3.1

@RoootNoodle
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants