Why change lamp to 12V?
Suggest you keep it as 240V.
I show it with Delay Relay Module, but this is same wiring if used with Relay only module.
Shopping List and wiring diagram (happy if Oldbutdead shoots it down)
Also have these in Toolstation.
Sorry for poor lines and writing - but wrote it on my lap on back of old box.
Fused Plug
https://www.screwfix.com/search?search=fused+plug
Rubber or Pond Cable, make sure that is is with earth (0.75mm2)
Good for use in UV environment (ie outside)
https://www.screwfix.com/c/electric...m_sp=managedredirect-_-electrical-_-pondcable
Terminal Strips (you only need two bits!!!, but this is for many many)
6A (bigger can be used but cable might be loose)
https://www.screwfix.com/c/electric...=managedredirect-_-electrical-_-terminalblock
Cable Gland for 4 to 8mm cables (need 3):
https://www.ebay.co.uk/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=Cable+Gland&_sacat=0
also on SF, but I think they ?might? be for slightly larger cables
https://www.screwfix.com/p/tower-male-comp-gland-20mm-2-pack/80851
Blooming heck that was quick, impressive and obviously extremely knowledgeable.
I didn't realise I could connect one side of the relay to the mains supply and the other side to the 12v output pins on the circuit board.
Box (you need to check if it is big enough, but their knock out holes makes it easier for you to use):
https://www.screwfix.com/p/ip65-adaptable-box-93-x-93-x-55mm/15488
https://www.screwfix.com/p/adaptable-box-ip65-110-x-110-x-67mm/17962
https://www.screwfix.com/p/schneide...ox-with-knockouts-grey-195-x-165-x-90mm/61100
all
https://www.screwfix.com/c/electrical-lighting/junction-boxes/cat830522
View attachment 223517