Using Alexa and ESP8266 WiFi to Control Your Light

Would you like a free Wifi module in this tutorial? Contact maya.madhavan@medium.one to request more information!

Introduction

In this video, you will learn how to connect Amazon’s Alexa-controlled Echo speaker to Medium One and use it for voice control interaction with a WeMos WiFi Module. You will create workflows that will allow you to turn on the WeMos LED and your light using voice commands with Alexa as well as with switches on the IoT Controller App.

 

For this tutorial you need:

 

 

Appendix:

URL 1 : Board Manager

http://arduino.esp8266.com/stable/package_esp8266com_index.json

Code Snippet A : Arduino Code

https://github.com/Medium-One/alexa-light-demo-esp8266/blob/master/esp8266/lightswitch.c

Code Snippet B : LED Python Workflow

https://github.com/Medium-One/alexa-light-demo-esp8266/blob/master/workflow/switch_led.py

Code Snippet C : Light Python Workflow

https://github.com/Medium-One/alexa-light-demo-esp8266/blob/master/workflow/switch_light.py

Code Snippet D : Intent Schema

Code Snippet E : Sample Utterances

URL 2 : Service Endpoint

https://assistant-sandbox.mediumone.com/alexa_request?stream=alexa

URL 3 : Authorization

https://auth-sandbox.mediumone.com/oauth2/authorize

URL 4 : Token

https://auth-sandbox.mediumone.com/oauth2/token

URL 5 : Privacy Policy

https://mediumone.com/privacy

Code Snippet F : Alexa Python Workflow

https://github.com/Medium-One/alexa-light-demo-esp8266/blob/master/workflow/light_and_led_alexa.py

 

Author: Rochelle Drenan