Also this might be interesting to you: Switcher – A WiFi Open Source Power Switch and Socket Based on ESP8266