I've just wired one of these into a smallframe, I used the green & black/white on the switch... The lock had to be earthed (or fitted) to the frame....Also I had to remove the rubber boot and cut the loop wire on the back of the lock,mine was red but apparently they can be any colour you'll know which wire once you pull back the boot.