I am from a country where power outage is very common. I have a light source which is run by a lead acid battery. At night, I want to keep this light ON during power outage and when the electricity is back on, the charging circuit engages and the lights should turn off itself. I am guessing an arrangement would be needed so that when the charging starts, with it somehow, a circuit should sense it and open/dis-engage the discharging circuit. Simple Version: I want to plug the charger in the battery, during power outage the light will be ON and with power on (when the charger starts charging the battery), the light turns OFF.