-
Hello esp-matter community, I'm an intern developer and still quite inexperienced with the Matter environment. I've been learning for a few months now, and I currently have a device that interacts with a LED (dimmable_light endpoint) and a potentiometer (temperature_sensor endpoint). I'm doing the commissioning process using an Amazon Echo Pop as the Thread border router, scanning the default CHIP QR code from the 'light' example in the Alexa app. I looked into ways to simplify this, and the only possible solution I found was to use an aggregator endpoint that could group all the child endpoints into a single device to configure. I'm not sure if this would do exactly what I want, but it's the only lead I've found so far. The best documentation I have is the Device Library Specification PDF from CHIP, which includes a clear diagram showing an aggregator endpoint managing other endpoints using the PartsList attribute from the Descriptor cluster and the EndpointLists attribute from the Actions cluster:
App_driver.cpp:
} // not used because of errors, but with the exact formatting from the doc
}` If any of you have a lead or have done something similar before, I'm all ears. PS: I'm aware that my code is obviously mostly wrote by IA, and I know that some of it don't make much sense (like using array to change val.a values or using constant parameters etc...) but I'm completely lost after trying a lot of thing, and I believed chatGPT could produce something better than me (I was wrong) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Ignore the previous code part about PartsList and EndpointLists, I didn't checked it well and it has a lot of incoherences that I can correct.
app_driver.cpp:
For what I understand, I did the same model as the exemple from the chip documentation (I think), so I'm not sure why it doesn't work yet |
Beta Was this translation helpful? Give feedback.
-
After some times, I realised that the aggregator endpoint is just not supported by hubs like Alexa, so maybe my configuration is correct but it just can't work the way I want it with the current Matter situation. Don't mind this discussions, sorry for that, I wasn't informed enough. |
Beta Was this translation helpful? Give feedback.
After some times, I realised that the aggregator endpoint is just not supported by hubs like Alexa, so maybe my configuration is correct but it just can't work the way I want it with the current Matter situation. Don't mind this discussions, sorry for that, I wasn't informed enough.