I have a small project that involves the automation of the lights in a room using a Raspberry Pi and a set of four relays. All of the software and hardware is operational, and it is ready to be installed.
However, the space that the Pi will be stored in is rather small, and I am aware of the heat that standard USB adapters can generate. Using one of these in such an environment seems rather hazardous, and I am looking for another way to convert the 230 V mains power down to a level that suitable for the Raspberry Pi.
How am I able to do this while maintaining high safety standards?