I'm going to be adding some Particle Photon relay control to some receptacles so I can remotely turn on and off appliances and lighting. I'm going to house the Photon board and relay in a weather-proof PVC box (the gray stuff at home depot). To that, I will connect another box via two weather-proof PVC pipes. Through one pipe, I will run the hot, neutral, and ground wires to bus bars or terminal blocks. Through the other pipe, I'll then run three leads from the hot bar back to the COM connections on the relays, then three leads from the NO connections on the relays to the three receptacles. I'll have the three pairs of hot leads shrink wrapped.
Electrically, it looks sound. But is doing this up to code? This particular contraption will be in a garage, out of the weather.