def install_switch_rule_coil_schedule(self, switch_num, switch_state, coil_name, schedule, schedule_seconds, now, notify_host, enable, reload_active = False, drive_coil_now_if_valid=False): coil = self.coils[coil_name]; drivers = [] if enable: drivers += [pinproc.driver_state_schedule(coil.state(),schedule,schedule_seconds,now)] self.proc.switch_update_rule(switch_num, switch_state, {'notifyHost':notify_host, 'reloadActive':reload_active}, drivers, drive_coil_now_if_valid)