You have the right idea. Without testing the remote, I cannot say which terminal is which. If you have a meter, the remote will connect one of the wires to the other when the switch is pushed one way, and then to the third when pushed the other. That common wire is the one that gets grounded.