I found this diagram online that should help with the wiring. It is exactly how I wired my window cover. The switch changes the states of the relays in the Line Out 1 & 2.