My goal is to split a 1-gang mains power extension lead into three, have my Raspberry Pi plugged into one of the outputs, and have the Pi able to switch the other two outputs using relays.
I want to use my Raspberry Pi to switch on and off two mains-powered appliances using solid-state relays. I've found this useful video which demonstrates the concept on a mains-powered lamp.
The video suggests cutting the lamp's power cord and wiring that up to the relay, but I don't want to cut the cords for my appliances. I am, though, happy to use an extension lead and cut that instead. However, I don't want to have to buy and cut an extension lead for each appliance; nor do I want to have to plug three things (the two appliances and the Pi) into my wall socket individually, for neatness' sake.
So I thought maybe I can make a 3-gang extension cord and have the Pi run off one output and attach the relays to the other two.
I would then cut the extension cord say 3m from the plug end and cut two more times to give myself two pieces of headless chord, like so:
Now I can wire those loose bits of cord into the spare sockets. Furthermore, I could cut those cords again to insert the relays, giving me this:
The final piece of the plan would be to join all those loose ends in a junction box.
Sorry it's taken so long to get here, but here is the question (well, two actually):
Is this plan feasible? And if so, what's the best (i.e., safest) way of connecting those loose ends? I thought of using a junction box and I've Googled endlessly but can't seem to find anything that takes one input and allows multiple outputs. The closest thing I can see is this but I think the cord might be too thick for it.
Also, I'm a little concerned that shoving three wires under one screw in the terminal block of a junction box might be insecure and lead to them coming loose.
Any advice and suggestions are most welcome!