red wire goes to 3.3v pin in raspberry pi
brown wire goes to ground wire in raspberry pi
Orange wire goes to GPIO4 pin in raspberry pi you should use 10k resostor in series with the button .
then you follow configuration as in athe attached file
doorlock.yaml (1.4 KB)
sorry for my unorganized work but simply take the pcb from the keyfob and solder these wires and you are good to go.