This circuit is designed on request and can be useful to those whishing to have, say, a red LED illuminated when an appliance is on and a green LED illuminated when the same appliance is off. Any mains operated appliance can be monitored by this circuit provided a suitable mains switch, capable of withstanding the full load current, is used for SW1.When SW1 is closed, the load and D4 are energized, Q1 is saturated and shorts D3, thus preventing its illumination.
circuit from http://www.redcircuits.com#home