Close

Amazon Alexa support with WEMO emulation

A project log for ESP8266 lamp/outlet control

A simple project using a esp8266-01 that will turn an outlet on and off. With optional WEMO support for control with amazon alexa

garyGary 02/05/2017 at 20:590 Comments

Found that my project can be converted into a wemo emulator with nothing more than code changes. This allows amazon alexa (I think google device as well) to control the outlet.

The code is not mine but can be found on github. The only change you need to make is work with my design is

Change

const int relayPin = D1;

to

const int relayPin = 2; (may vary if you didnt use the esp-01

and set your devlice name to whatever you want.

The codes comes with

device_name = "box";

I changed mine to

device_name = "lamp";

Code can be found at

https://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/blob/master/sinric.ino

Once you update the code, go to your alexa amazon account and go to smart home. Scan for the device. It should be found with the name you defined in device_name. After that Just say Alexa lamp on or alexa lamp off to control the device.

Discussions