Control lights or appliances from a local ESP8266 web page.
The ESP8266 connects to WiFi and hosts buttons for ON and OFF control. The buttons switch relay pins from a browser on the same network.
Test with LEDs first. For AC appliances, use a proper enclosure and get help from someone experienced with mains wiring.