Emulated Belkin WeMo device that works with Amazon Echo (Alexa) using MicroPython on an ESP32
Emulated Belkin WeMo device that works with Amazon Echo using MicroPython
This repository is based on makermusings/fauxmo and it was ported to work on MicroPython. This code emulates one or more Belkin WEMO type devices in software, and allows you to control them using an Amazon Echo. The code was tested on:
You do not need to use AWS Lambda, or ngrok or open a port on your router. Amazon Echo searches for Belkin WEMO devices on the local network and using this code the WeMos board responds to the search request. For more information, please read this article.
boot.py
<your ssid>
<your wpa2 password>
main.py
file if you want to:
ws2812_chain = WS2812(ledNumber=ledNumber, brightness=100)
defines the WS2812 LED strip. The argument ledNumber
defines the size of the LED strip. In my case, I used 144 LEDs.
devices = [
{"description": "white led",
"port": 12340,
"handler": rest_api_handler((255,255,255), 50)},
... ]
define the devices that are going to be found by Amazon Echo. Please read this article for more information;