Patent attributes
A device may detect a power removal event, determine whether the power removal event is a local power removal event or a system power removal event, and perform state correction. For example, the device may receive an indication of a state change event turning on the lighting device. The indication may be received from a sensor. For example, the sensor may include a photosensing circuit (e.g., capable of detecting light emission from the lighting device) or the sensor may include a live voltage sensor (e.g., capable of detecting a change in current driven to the lighting device). The device may then determine whether the power removal event is a system power removal event or a local power removal event. If the device determines that the power removal event is a system power removal event, the device may perform state correction (e.g., setting the lighting device to its state prior to the power removal event).