Customizing for a device

I’m brand new to dyiHue and still trying to understand what it can do. I would like to customize the emulator so that it presents a number of devices to look like lights to the outside world. At the end of the day that will mean, for a given configured “light”, run custom python for on, off and brightness control. For my devices that will be done via telnet commands. My end goal is to have Alexa see these “lights” and be able to control them. Any pointers on where to start would be appreciated.