If it is in line in a single wire to the lights, that will be a diode, that will restrict the light to operating only when it is at the leading end. You can install it correctly by trial when the motor is running, so that the light is consistent with the movement.