Feature #1080
Updated by Hammel about 1 year ago
This is effectively the same as the light switch but is generalized to enable power on an outlet. The ESP board should be powered via the mains, so I need a buck converter of some kind, probably like this "simple circuit":https://www.build-electronic-circuits.com/power-supply-circuit/ that takes 110v down to 12v and then to 5v or lower. * https://github.com/sui77/rc-switch - library to control 433MHz switches. * https://tutorials-raspberrypi.com/control-raspberry-pi-wireless-sockets-433mhz-tutorial/ * https://hristoborisov.com/index.php/projects/switcher-a-wifi-open-source-power-switch/ * https://randomnerdtutorials.com/esp8266-remote-controlled-sockets/ * "ESP8266 ESP-01S Relay Module Relay WIFI Smart Socket Control Switch":https://www.walmart.com/ip/ESP8266-ESP-01S-Relay-Module-Relay-WIFI-Smart-Socket-Control-Switch-Phone-APP-For-Smart-Home-IOT/3371449792?wmlspartner=wlpa&selectedSellerId=101422832&adid=22222222222000000000&wmlspartner=wmtlabs&wl0=e&wl1=s&wl2=c&wl3=10352200394&wl4=pla-1103028060075&wl5=&wl6=&wl7=&wl10=Walmart&wl11=Online&wl12=3371449792_10001442184&wl14=esp8266%20electrical%20socket&veh=sem&msclkid=12ad62e30bf61dabb0f00782518cd199&gclsrc=ds It would seem that the easy way to do this is to use a "433MHz socket":https://makeradvisor.com/tools/rf-remote-controlled-sockets-433mhz/ along with the Pi and the "rc-switch library":https://github.com/sui77/rc-switch.