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
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.