I have several projects where I want to use an ESPHome-based WiFi switch to control a mains-voltage level appliance. The appliance is hard-wired by design into mains, so I would like to “splice” this in the middle (I have been doing mains electric for decades)
I could build my own embeddable switch combining a mini ESP32 with a low voltage, power supply and a 120v relay, but would be much easier, faster, and likely cheaper if I could just extract the guts of a small WiFi switch, flash it with ESPHome and then splice it into my circuit.
For that I need a WiFi switch that is small, (hopefully) cheap and flashable with ESPHome
If want in mains and ESPHome, then want a Shelly. The cheap relay with an esp chip is great, I use a ton of them, but you need to also give them 5V DC. The Shelly does not require separate DC power supply.
A power supply for the ESP-01. This one has worked well for me. I read an analysis about these cheap devices and they wouldn’t pass UL or any of the certifications. While it’s spec’d 50VAC-277VAC, I’ve had three fail on a 240VAC circuit, 220VAC would probably be OK.
Probably a good idea to put the two into a 3D printed enclosure (using fire retardant filament)
One could also take apart a 5V wall wart that is certified (which nullifies the certification).