Abstract: A computer-implemented method performed by a device connected to a light and at least a first sensor is disclosed. The method includes: setting a first condition for activating the light; setting a second condition for deactivating the light; transmitting a first signal to the light to activate the light when the first condition is met; transmitting the second signal to the light to deactivate the light when the second condition is met; setting a third condition for activating the first sensor; receiving a signal from the first sensor; if the light is deactivated and the third condition is met, activating the light; and if the light is activated and the third condition is met, keep the light activated.
Abstract: A connector and a wireless controller for a wired lighting system are disclosed. The connector and wireless controller and connected via two wires. The connector also has at least one cap that covers two channels for electrically coupling additional two wires—one wire for connecting to a power supply and another wire for connecting to one or more lighting devices. The connector can be easily installed in an existing wired lighting system to retrofit the system with a wireless controller.