An ELCB is a specialised type of latching relay that has a building's incoming mains power connected through its switching contacts so that the ELCB disconnects the power when earth leakage is detected.