Make ESP8266 works directly with Amazone Echo by emulating a WeMo switch using nothing but standard ESP8266 libraries
-
Fill in your SSID & Password at the begining of the sketch
-
Change the LED pin to suit your board
-
Power it on and wait for it to be connected to WiFi
-
Ask "Alexa, discover devices"
-
After the discovery is successful, ask "Alexa, turn on/off your "
Here's the outline of the steps:
-
Modify responseToSearchUdp function, use a for-loop to give 1 response for each GPIO pin you want to control. Each pin must be assign a unique serialNumber, uuid & port. (IP Address is the same for all, it is always the IP Address of your ESP8266)
-
For each of the port/pin you have setup above, create a ESP8266WebServer for it.
-
Modify handleUpnpControl function to handle on/off logic for each different port/webserver.
http://www.makermusings.com/2015/07/18/virtual-wemo-code-for-amazon-echo/