Introduction: AlexaPi + IFTTT

We made Amazon ECHO(For video tutorial on DIY Amazon ECHO click here) with our RPi board not just for asking questions. Today we will integrate Alexa with IFTTT to do amazing stuffs like,

  • Controlling Home appliances
  • Playing music on the phone
  • Add any task to your ToDo list and get feedback on your phone via sms

and many more such stuffs. So let’s begin the fun,

Step 1: IFTTT

IFTTT stands for If This Then That. In this, we need to provide a condition and an action to be performed when the condition is satisfied. Let me give you an example based on one of my project “IOT Button” that, If the button is pressed, then post a status on my Facebook wall. Hope it got clear to you with this example. We called this statement as a recipe. For Alexa to do such stuffs , we need to create different recipes in IFTTT.com.

In this video, I have shown you how you can create recipe for controlling appliances via Alexa. So now in this article,I’ll show you how you can ask Alexa to play music on your phone. First logIn to your IFTTT account and go to My Recipes>Create a Recipe. You will get a page like this,

Step 2: Channels

Here “this” is the condition and “that” is the action to be performed if the condition is satisfied. In both “this” and “that” , you will get a number of channels or services to choose form.

Out of these many channels, for our project we gonna use Alexa for the condition, and Andriod for the action. From Alexa, we will be generating a specific phrase like, play music on my phone, to trigger the condition. And as soon as the condition is triggered, action will be performed according to our recipe.So let’s start with the recipe.

Step 3: Trigger Condition

Click on “this” from “if this then that” phrase. Then from the channels, you need to select Amazon Alexa.After that, you will get a page like this,

For our recipe, we gonna select the first option i.e. Say a specific phrase. You can explore all the other options for different recipes. After selecting the first option you will have to type a phrase through which you want to trigger the condition. Just like I have typed, play music on my phone.

click on Create Trigger. Now the condition is provided, after that we need to provide the action to be performed whenever the condition triggers. For that click on “that“.

Step 4: Action to Be Performed

For the action also you need to select one out of many channels available. For our project, we will be selecting Android Device channel. you need to link your phone with this channel. Just install IFTTT app on your android phone. In that you will get a lot options like playing music, updating wallpaper, mute ringtone. turn on and off bluetooth etc. You can explore all the actions but for our recipe we will select Play Music as an action to be performed. After that click on Create Action.

So now the last step, just click on create recipe to initiate this recipe. So whenever you will say “Alexa Trigger play music on my phone” it will play music on your registered smart phone.

Step 5: Video Tutorial on AlexaPi Controlled Appliances

For codes and other details regarding this project and many other visit me website, www.techiesms.com

Comments

author
AlessandroG2 (author)2017-06-18

Hi !!! I have my Alexa on RP3 running for all general questions, but each time I say Alexa trigger XXX she says "sorry I can't see this IF trigger", did it happened to you?

Secondary, did you figured out how to aumatically starts alexa at boot?

author
Goemi (author)2017-03-01

Hi,

how to execute a sudo command on my raspberry with echo?

author
scientist1995 (author)2017-02-22

how should i make alexa pi ?/ please share as its not avaiable on techiesms also

author
prakashsrs (author)2017-02-14

Whats the ESP board you used?, I didn't find ESP12E in Adafruit website. Please let me know ESP board spec

author
ANANTHA KRISHNAN J (author)2016-12-28

will ifttt work in india

author

Yes.
I live in India and I'm using this service regularly

author
adimanwit (author)2016-08-09

is any way to get this working without pressing button?

author
techiesms (author)adimanwit2016-08-09

I didn't find yet.
But you can join the community and put your views or questions in that, may be with larger community we can easily make it possible

https://github.com/amzn/alexa-avs-raspberry-pi/issues/4

author
DylanD581 (author)2016-07-21

I love the idea of making a voice activated automation system with the Raspberry Pi! Could you share how you made the AlexaPi?

author
techiesms (author)DylanD5812016-07-21

you can visit my website for that,

www.techiesms.com

About This Instructable

14,158views

177favorites

License:

Bio: I am trying to learn as many things as possible in this field of electronics. And further trying to teach in as simple way as ... More »
More by techiesms:DIY Korner | Home Security Based ProductMachine to Machine Talk Using ESP8266ESP8266 Tutorial Series | ESP8266 Examples Explained
Add instructable to: