API for controlling lights in the house