Ok four wire reverse polarity. Yellow is 12 volt source for motor, black common earth, and red/yellow and yellow black are the two switch wires. earthing either of the last two cause the motor to operate and a) if it's unlocked lock it and b) if it locked open it. So you may be able to connect the two common green and blue wires to these two. If that doesn't work it time to get two relays that the mongoose system can use to earth the red yellow and yellow black wires. I will try and find time to scan the relevant circuit diagrams for yoy later in the week.