Use the twilio API to control an ESP8266 relay via SMS/Text Message
Place this script on a web server and point the twilio postbacks to this url
Based on the contents of the text message - different things can be triggered on the ESP8266
This is the code behind this video: