I want to make a device that uses AC 220-250V power (to control relays to switch devices on/off) and prefer a single wire (+/-/gnd) to a wall socket box (thus not a separate 5V adapter).
Would it be a strange to use a 5V USB adapter inside an enclosure like below? I hid the top cover of the enclosure and put a yellow box around it for better viewability. I'm intending to get the AC power inside through a hole or connector and directly 'solder' it to the two long socket pins of the USB adapter. Note that the GX connector will not be used for 220V AC (I will use an IEC connector or cut a hole in the box as I connect/screw it to a power strip.
The reason is that I'm not that good into electronics and creating my own AC ->5V DC power supply including all needed protection seems a bit hard.