This intelligent switch circuit enables an emergency light system to automatically switch on during a power outage. It detects a power failure using a transformer, rectifier, and capacitor, which causes a relay to energize. A photo transistor and Darlington pair detect darkness and complete the battery supply path, energizing another relay to turn on the lights only when both power is out and it is dark. The operation is summarized in a table showing that the switch turns on only when mains power is absent and it is dark, otherwise it remains off.