In this circuit one relay & PC mouse were used, no such a electronic circuit were used , here 2 micro switch
& 8 pin DPDT relay 220 v used, if you see the connections of the relay you
will see that main AC 220 were connected to points 7 & 8, another wire
taken from pin 6 to pin 2 through micro switch (OFF), 2 wires were taken from
pins 8 & 2 to the micro switch (ON), Device to be controlled wires are
taken from pins 3 & 1.In the presence of 220 AC
if we press ON switch relay will energize while current flow through pin
7 & 2, where current will flow through switch from pin 8 to pin 2 ,
both 7 & 2 pins are the rely energizing points ,when relay energized it will
remain energize due to pin 8 & 6 to pin 2 through micro switch ( OFF ) ,
because current will flow from pin 8 to pin 6 ( now connected due to relay
energized ) .By pressing switch OFF supply will
be disconnected between pin 6 & 2, relay will become in normal condition