I've moved to a new build property and the builders have handily put in a switch and run some electric cable out externally above the patio doors so that I can install my own external light.
I've got an external PIR light to connect and the instructions that came with it tell you the obvious...