An open source implementation of HAP Spec (non-commercial) for IP is available at https://github.com/gera-k/Hap.
The https://github.com/gera-k/meta-chip-haprepo contains yocto layer that builds image of Lightbulb accessory server for the NextThing https://getchip.com/pages/chip board.