Thoughts on a general Zigbee to Homebridge (HomeKit) converter

How do you assemble an array from multiple messages?

Also, concerning this converting between HomeKit and other systems, my biggest problem is colorspace conversion. Ref. Colourspace, HomeKit Bridged, and Ikea Color Bulb