Hi Jachin,
I have seen your question and I would like if what you mean is a hardware device or do you already have the device and need the code?
I ask because we are manufacturers of hardware devices with open source code and for 2 months we have been testing our devices with the Mozilla platform and they work perfectly to control lights, garage doors, etc. to power devices such as heaters, water pumps, etc. up to 3600 W for each output.
If we can help you with something about the electronics or something else, we are here for anything.