'Python (or other) module for creating a Zigbee device

Does anyone know of a python module or other language library that will work with the Zigbee standard? I've found lots of stuff for controlling other switches/bulbs etc but I'm looking for the opposite; something that will report as a standard Zigbee RGB bulb so that it can be controlled with a third party hub.

Ideally it'd receive signals e.g. "turn light off" or "set brightness to 0" or "set colour to x" and allow me to then do whatever (I will be controlling a custom LED matrix I've built).



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source