Ask Alexa to trigger a relay with Wio Link and IFTTT - respeaker/avs GitHub Wiki
Using voice to control physical objects is cool. Asking Alexa to turn on a Philips Hue bulb is easy. What about controlling a DIY objects? With Wio Link and IFTTT, controlling a DIY objects with voice can be easy too.
In this guide, We will build an object with a relay and a Wio Link, and control it with Alexa by saying "Alexa, trigger my relay".
1. Prepare the hardware
All we need are:
- Grove Relay
- Wio Link or Wio Node
- A USB Micro A cable
Then connect the relay to the Digital0 port of the Wio Link and power on the Wio Link.
2. Setup Wio Link on the Wio app
-
Go to the app store, search wio and download the app
-
Sign up or login the Wio app
-
Setup the Wio Link and the relay on the Wio app
3. Connect Wio Link to Alexa through IFTTT
-
Go to the IFTTT app or the IFTTT website
-
Connect Amazon Alexa service and Seeed Wio service
-
Add a new Applet
a. In the "My Applets" tab, click "+" add a new Applet
b. Select Amazon Alexa as the trigger
c. Select Seeed Wio as the action
d. Done
4. Using Amazon Echo or build your own Echo-like device to the relay
After connecting your Alexa and Wio Link through IFTTT, we can just use a Echo device which is configured with your Amazon Alexa account to control the relay. Just say "Alexa, trigger my relay" and your relay will be toggled.
If your don't have have a Echo device, you can just make a Echo-like device with the avs python library