Closed
Description
When adding a second Zigbee endpoint the CPU crashes.
I noticed that the same endpoint ID was displayed while I added both endpoints with separate ID's
After some digging I found that the ZigbeeEP class has the endpoint variable as static.
This is not possible as each instance (aka endpoint) must have a unique endpoint ID.
I removed the static and it started working: FaBjE@f0566d8
Unfortunately this breaks several classes as they rely on the endpoint and others being static. For testing I removed those classes so I could compile: FaBjE@2c98584
I think there is some awareness about this issue, but maybe not the severity when trying to use a second endpoint.
Originally posted by @P-R-O-C-H-Y in #10135 (comment)