In principle it's easy to arrange an automatic switch-off system. The difficult bit is deciding exactly what condition should cause the system to switch itself off. So I suggest you think about that first - it's different for every system and not therefore something I can discuss here.
The second most difficult bit is deciding exactly what criterion you consider as being off. Most low voltage switches are likely to switch only the d.c. side of the supply so if it's mains operated, the transformer will still be on.
Then of course what's off will also depend on how you want to switch the system on. Off may have to be 'standby' where only part of the system is off, but some of it is still on, waiting for the correct on signal to arrive.
Probably the easiest way of doing automatic switch off is with relay logic. In the diagram, the box marked RL1 is the coil, the 2 in the coil box tells you there are two sets of contacts somewhere on the circuit, operated by this coil. In this simple circuit, it's easy to see them!
Relay logic
Sw1 is a momentary push switch. When it's pushed (contacts closed), voltage from In is applied to the coil so the relay operates. RL1/1 (the first set of contacts on RL1) closes and applies power to Out. RL1/2 closes at the same time and shorts out Sw1, maintaining power to the relay coil. So Sw1 is a push to switch on and the circuit is a relay bistable - bistable as it has two stable states, on and off.
Sw2 is a momentary push-to-break switch. Pushing it interrupts the current flowing through the coil of the relay, which promptly de-energises and the circuit switches off.
It's a very simple way of doing on off switching with two push-buttons and the contacts that open the relay current to switch it off can be expanded to any number of different contacts in series, opening any one of which will switch off the circuit.
One contact can be a relay operated by whatever system you use to define that it's time for automatic power off.
This Articles Resource from www.4qdtec.com