This is the orientation(I dont know the pins Numbers)

First put this wires on the inside part(remember the Orientation)

Then complete with the outside part

to get this....

to disable the internal rooms put a switch on that gray line, the switch can be one of those limit switch taken from a cd/dvd rom
this is the concept...

i hope this can be of some kind of help... good luck!
