esp8266-relay ESP8266 Arduino IDE + Relay + MQTT Checkout http://vinceelizaga.com/mobile-relay/ for a walkthrough.