To turn devices on and off on a schedule