Hello,
I am developing an On/Off Light Matter device, which has buttons onboard. Currently, I'd like to make it possible to 'unbound' buttons from controlling On/Off Light device directly to create another endpoint with On/Off Switch device definition. This will allow me then to add my first endpoint (On/Off Light) to groups and then bind my second endpoint (On/Off Switch) to this group or first endpoint. Hovewer, I could not find any information regarding such implementation.
1) Is my scenario of binding two endpoints with the same node id even possible under Matter specification?
My idea, if this is possible under Matter specification, would be then by reading Binding Table Entry data and comparing it with current Fabric Id and Node id data to take decision between directly changing attribute (planned 'commands' would be On/Off/Toggle with immediate execution) of the first endpoint or sending corresponding command to a bound node if it is separate device.
2) What would be my steps to retrieve Fabric Id and Node Id for my device in my firmware (specific functions to call) so I would use it for the implementation of my idea?