I do n9t onow harnes comming from door lock as these wire colours can vary, so i will provide you wire colours from door loom side.
You need both wires from 2 way connector: Black and Black /Orange. From 6 way connector you need only Black/Pink wire.
Whey keay is moved to close position Black wire will have contact with Black/Pink wire
When key is moved in open position Black wire will have contact with Black/Orange wire.
So if you put multimeter to resistance beeper value, on each pair Black-Black/Pink and Black-Black/Orange you will see how much time will pass from when you turn the key into position until you hear beep on instrument.