https://esphome.io/devices/sonoff_s20.html
I usually flash ESPurna onto it (Tasmota and ESPhome are also good choices), it's very easy to do and it's extremely reliable and hopefully has a lower chance of fire than anything I'd make.
One of the outlets is always on, and the other three are controlled by the control signal. Two of those are normally off and turn on when the control signal is present, and the third is normally on and turns off when the control signal is present.
I'm using it to control a space heater with a Raspberry Pi. The GPIO pins on most microcontrollers commonly used in DIY projects will work directly to control the relay.
[1] https://dlidirect.com/products/iot-power-relay
[2] https://www.sparkfun.com/products/14236
[3] https://www.amazon.com/Iot-Relay-Enclosed-High-Power-Raspber...
Having three instead of four switchable outlets, and different "normally on" and "normally off" setting threw me off a bit.
...well not crap, mine beeps a few times when the power turns on =)
The ESP32 fiddling is required to fake button presses on the touch sensitive buttons to make it actually start.
Well, I already opened it to solder a beeper bypass switch [aka "mute button], 'cause the thing was (multi-)beeping constantly, on every action and every result! But that mod is reversible without any visible changes... which reminds me, have to do the same to the bread machine. To my detriment, appliance makers these day are extremely beeper-happy.
I've used some TP-Link's equivalent up until the point when TP-Link decided to effectively brick it for me by disallowing control via local network because "security". I'm very concerned about someone on my WiFi turning on my kettle and boiling me some water. :)
It's when you get above 400V+, then the physics of electricity gets tricky.
An arc can have the temperature of four times the surface of the sun and will not neccesarily trip a noormal protective device due to its impedance.
Just for interest, vaporised copper has 67,000 times the volume of solid copper, this is why it makes quite a big bang.
I am an electrical engineer, most people do not fully understand the dangers of electricity and the lottery they play even at 110VAC.
The "physics" of electricty are tricky at all voltages, there are recorded cases of people dying from electric shock from a 24VDC truck battery.
Key words the author did not write. While electrocution might be the first thing to come to mind, the ongoing risk of house fire might be the risk that best guides the (mis)use of hardware certified to perform a task.
Something else I didn't quite understand: they write "NodeMCU ESP32 which is a small IoT device with a USB port and is programmable in ESPHome". Does that mean that the little board itself does not need to be flashed? That, out of the box, it's controllable/programmable in ESPHome, which is webbased?
Looks like a fun little project, all in all. Kudos for documenting and sharing it!
He is using a dev-board with a USB jack and an integrated step-down converter. The ESP32 is not 5V tolerant at all, the pinout diagram is for the pads on the ESP32 module, not the whole board.
I was playing around with upgrading my own fan last year and ended up adding person-tracking capabilities so that the fan automatically stays pointed at me when I move. I ended up started a company, Following Fan, that builds and sells these tracking fans!
A less intrusive and safer alternative for those not quite comfortable with mains diy.
Tricky but is you need a fan that powers on when it gets juice. Something that requires a button press won’t work
[0] - https://en.wikipedia.org/wiki/Earthing_system#IEC_terminolog...
Conversely when I'm heading home I can remotely let my automation know so that it sets the recovery temperature on my thermostats and resumes the ceiling fans to help circulate things with the HVAC system. If I had a room without a ceiling fan but could still benefit from circulation this would be a nice solution along the same lines.
Combine systems like the above with occupancy sensors and zoning and energy savings are significant enough you notice them in your power bill.
And all of that runs on a box in my living room - cloud is for remote access only; I loathe cloud only automation systems :p