My house has a central vacuum system. It consists of a big motorized suction unit, connected to multiple inlets throughout the house via a network of pipes. Along with the pipes is a pair of signal wires; when the homeowner plugs into one of the inlets, the wire pair is shorted together, and this activates the suction unit (via a relay within the unit). I've experienced a malfunction where the signal wires get inadvertently shorted together, causing the suction unit to run indefinitely, putting a lot of wear on the motor and perhaps even presenting a fire hazard. I thought it'd be amusing to create a little interface between the signal wire pair and the signal inputs to the suction unit, which will shut the unit down if it runs continuously for an unreasonable period of time.
See the circuit below.

" alt="" class="bbc_img" />
Since the relay within the suction unit operates on 24vac, I thought it best to isolate my interface circuit from the suction unit using an add'l relay, operating off DC; when activated, this relay shorts the signal inputs to the suction unit. The 227-ohm Rcoil represents this relay. The LM311 consists of a comparator whose output drives the base of an NPN transistor; when the comparator diff'al input cmpH/cmpL is positive, the transistor is turned on and activates the relay. So the crux is generating the desired voltages on cmpH/cmpL. (Note the comparator is inverting, so the cmpH/cmpL inputs are swapped on the inputs to the LM311).
When the unit is not in use, the big cap C1 on cmpH is charged to near Vdd by R1, R2, and D1 (R5 is unnecessary ?); cmpL is guaranteed to be driven to to a slightly higher voltage (there will be a small current flowing through R2, thanks to R4) and thus cmpH-cmpL is negative and the system is off. When the user plugs in a hose and shorts the signal wires together (this is represented by switch SW), cmpL is pulled to approximately Vdd/4 and cmpH-cmpL goes immediately positive and turns on the unit. C1 begins discharging through the 1 megaohm resistor, and when cmpH drops below Vdd/4, the relay is deactivated and the system turns off. The time constant of R3-C1 is approximately 1000sec, or about 15 minutes. Once the user disconnects the hose, cmpH is recharged in about 1sec and the system will again turn on when the hose is plugged back in. The whole thing is powered by a small 5vdc wall wart.
I don't see a simpler way to do this. Obviously the time-out period is imprecise since typical capacitor tolerances are 10-20%, but the goal is simply to insure the suction unit doesn't run for hour(s), so this shouldn't be a problem. It does raise the interesting question of whether there's an easy way to measure time accurately (within a few %) using analog components.