GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - lemariva/uPyEcho: Emulated Belkin WeMo device that works with Amazon Echo (Alexa) using MicroPython on an ESP32

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
ESP32MicroPython @ 880a050
ESP32MicroPython @ 880a050
 
 
wipyWS2812 @ ed4ff9b
wipyWS2812 @ ed4ff9b
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
boot.py
boot.py
 
 
main.py
main.py
 
 

Repository files navigation

uPyEcho

Emulated Belkin WeMo device that works with Amazon Echo using MicroPython

About the repository

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:

  • ESP32 (WeMos board).
  • Amazon Echo Dot (2nd Generation) - revision 1.1 should work with all the versions of Amazon Echo.

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.

Video

PoC

Requirements

  • WeMos (ESP32 - working on this board)
  • NodeMcu Lua WIFI ESP8266 (next release -not tested yet)
  • INR18650 3.7v Battery
  • WS2812B LED strip
  • MicroPython for ESP32

Instructions

  • Install MicroPython on the ESP32, you can use this tutorial;
  • Modify the following lines in the boot.py
    • ssid_ = <your ssid>
    • wp2_pass = <your wpa2 password>
  • Modify the main.py file if you want to:
    • The code line
    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.
    • The code lines
      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;
  • Upload the code to the WeMos board;
  • Connect the LED strip and restart the board;
  • Start a device search from Amazon Echo. You can use the Alexa application, or just say, "echo/alexa, search for new devices" and wait;
  • Say, "echo/alexa, turn on the ", it should work.

Changelog

  • Revision: 1.1 - Code cleaned and added support for Amazon Echo (2nd Generation) using this info.
  • Revision: 1.0 - Initial commit

License

  • Check files

Credits

  • makermusings/fauxmo

More Info:

  • MicroPython for ESP32
  • MicroPython Tutorial
  • Universal Plug&Play
  • Node-red WEMO Emulator
  • Chris(derossi) links:
    • Amazon Echo & Home-Automation
    • How to Make Amazon Echo Control Fake Wemo Devices
    • Virtual Wemo Code for Amazon Echo
    • Home Automation with Amazon Echo Apps, Part 1
  • Alexa Skills Kit
  • Flask-Ask: A New Python Framework for Rapid Alexa Alexa Skills Kit Development

About

Emulated Belkin WeMo device that works with Amazon Echo (Alexa) using MicroPython on an ESP32

lemariva.com/blog/2017/10/micropython-wemos-and-amazon-echo-alexa

Topics

amazon-alexaamazon-echoesp32ledstriplighthousemicropython

Resources

Readme
Apache-2.0 license
Activity

Stars

57 stars

Watchers

3 watching

Forks

11 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.