Added function that returns an array with the relays that should toogle for a given time