help wiring shelly plus 2pm to garage remote

  • I have 2 garages, each with different motors, none of which supports wiring a relay directly to them.

    On one of them, I solder the shelly1 directly into one of the remotes, and also added a contact sensor. This worked awesome!

    The other gate is different, one button opens, and another button closes it.

    So, I got a 2PM, as I figured I could put each action in one of the relay terminals, but I'm not sure how to wire it.

    Should it be:

    • live to either one of the L
    • neutral to N
    • controller button 1 to O1 and S1
    • controller button 2 to O2 and S2

    But then, where do I put the contact? GND and GPIO0?

    Thanks!