1. Unplug ESP8266 from module
2. Connect module to USB to Uart module
BEFORE FLASH, PRESS BUTTON TO RESET (IO0 always connects to GND -> ESP8266 go to flash mode after reset)
3. Flash my firmware
- Download my sketch:https://github.com/kim7tin/ESP8266-Smart-Power-Plu...
- Open in Arduino IDE, and change:
- wifi_ssid: your wifi name
- wifi_password: your wifi password
- control_password: your secret password
- friendlyName: your device name
- ip/gateway/subnet: ESP8266 IP static for NAT
- In Arduino IDE. Select Tool:
- Board: Node MCU 0.9 ()
- Upload Speed: 230400
- Port: Select your USB to Uart port
- Hit Upload icon (before hit, press reset button in step 2)
4. Connect ESP to module again
We need open port (default 666) to direct control from Amazon server to our ESP8266.
I just illustrated with my router. You can find out how to open your router port on the internet and open TCP port 666 to the configured IP in step 2: https://m.wikihow.com/Open-Ports
If you do not have a fixed IP, you must use a dynamic domain name. You can find many free DDNS service providers.
Control by ALEXA ECHO1. Enable my skill named "ESP8266 Smart Power Plug"
- Alexa app > Select menu > Skill
- Search Skill named "ESP8266 Smart Power Plug"
- Click to Skill
- Click ENABLE
- Login with your Static IP or DDNS domains (include your port - default 666)
2. Discover device
- Alexa app > Select menu > SmartHome
- Click Add device and wait 20 seconds
- Now you can see ESP8266
3. Control:
"Alexa, turn on/off <your ESP named in step 2>"
Comments