My last project; I took an ATT phone charger apart and used the converter, Wemos D-1 Mini and a relay to make a switched "smart" outlet. I control it with Home-Assistant via Mosquitto MQTT protocol over WiFi.
Is there a smaller "JUST AS RELIABLE" way of converting the power to 5V? I would like to shrink the footprint of the project.
I had also thought that for compact mains power projects, it would be good to have a compact ready made module which incorporates a power supply, relay and fuse with as much as possible of the mains side shielded or encapsulated, but with exposed screw connection terminals.
This is what i had to do (for a time switch project) because no such module exists (yet). http://forum.arduino.cc/index.php?topic=441948.0