Skip to content

How to use Virtual Buttons to trigger Alexa Routines with an ESP8266

Notifications You must be signed in to change notification settings

Thomptronics/ESP8266-Virtual-Buttons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

ESP8266-Virtual-Buttons

Use Virtual Buttons to trigger an Alexa Routine with an ESP8266

What is Virtual Buttons?

Virtual Buttons combines an Alexa Smart Home skill with a REST API, allowing you to trigger Alex Routines with a simple REST call. To learn more about Virtual Buttons, please visit www.virtualbuttons.com

Caveat

This ESP8266 example sketch uses insecure mode to contact Virtual Buttons' HTTPS endpoint. In general, using insecure mode is considered a "bad" thing. But, it is our opinion that the only thing you are risking is having someone discover your access code (that is the only "personal" data you should be passing to the API), and that is an extremely low risk. If you think someone has acquired your Virtual Buttons access code and is using it to annoyingly pushing your buttons, just disable/re-enable the skill to change your access code to something else.

How to Use It

Use of our example sketch assumes you have an Alexa device and an ESP8266 device setup for use with the Arduino IDE. With these things in place, your next steps are:

  1. Follow the instructions on www.virtualbuttons.com to enable the Virtual Buttons skill and ensure it is working for you
  2. Download the ESP8266_Virtual_Buttons.ino file and open it with the Arduino IDE
  3. Change the WIFISSID, WIFIPASS, and VBACCESSCODE defines in the ESP8266_Virtual_Buttons.ino file to match your SSID, WiFi password, and Virtual Buttons access code
  4. Upload the edited sketch to your ESP8266 and see if it works
  5. Think up all the great things you can now do with your ESP8266 and Alexa!

About

How to use Virtual Buttons to trigger Alexa Routines with an ESP8266

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages