Switch Different models: pushbuttons, flip switches, slide switches, etc, with relays to switch large AC currents, or opto-isolators to switch small digital circuits, etc. A small pushbutton switch, with a future Z-chip inside (self-powered and radio-linked), could be merely glued onto a larger device (eg, the side of a toaster, or a wall), and harvest its energy from the force of being pushed. switch.on, switch.off, switch.value(0/1) switch.setTimeout(duration) Causes the switch to go to the off state if untouched for the given duration. switch.setSchedule (on time, off time, on time, off time, etc) This is actually a macro, based on do.onSchedule. IE: do.onSchedule(onTime,offTime,onTime,offTime,...) -> math.toggle -> switch.value With a macro using do.onSchedule, any device can be scheduled. switch.lock Locks switch in current state even if manually switched. (this prevents accidental switching. Perhaps physically flipping it on and off several times rapidly would override the lockout.) do.everyDayAtTime(6pm) : switch.off , switch.lock // lock up for the night do.everyDatAtTime(8am) : switch.on , switch.unlock // open up in the morning