Simple, programmable, voltage and/or timer controlled switch