control relay by schedule