Use Do buttons from IFTTT to automate email messages
15th November, 2015
In this tutorial we'll use Do buttons from IFTTT to automate email messages to the AAIMI home-automation system.
IFTTT is a web service and phone app that allows you to customize actions to events.
You can choose from a series of pre-built triggers, then choose an action to respond to that trigger.
You need to sign up with ifttt.com and install their Do Android app. You will also need a Gmail account.
Creating your buttons
AAIMI uses email for receiving commands from users. Rather than typing each command, these buttons will send the email command with one click.
For this example I am creating a button that sends an email to set my AAIMI-controlled lounge to bright-mode.
Log into ifttt.com and go to My Recipes.
Under the Do heading, click Browse Recipes.
Browse down a few lines and you will see a recipe from Gmail.
Click Let someone know you're heading home.
If this is the first time you have used the Gmail channel with IFTTT you will need agree to allow the app with Gmail.
As you can see, this recipe is geared towards telling someone you are coming home, which has nothing to do with our action. That's fine, we can change that.
The first window prompts you for a target email address. This is the dedicated email address for your home-automation system.
Enter the address, then scroll down.
Below the blue Add button, click Advanced Settings.
The default contents of the email are not what we need.
Clear the Subject and body field for the email contents.
Enter whatever subject you generally send to your AAIMI home-automation system.
In the body field type the AAIMI email command you wish the button to send. In this example I am entering the command to put my Lounge in bright mode. Remember to append your AAIMI passkey to the end of the command.
Once done, click the blue Add button.
In the following window you can change the title of your recipe.
I've changed mine to "brightLounge". You'll need to put the most important words at the start of the title. This is because the shortcut icons we will place on the android phone only display nine characters. With my choice of title i see "brightLou" on my icon, which is enough to identify that button.
Once you have named your recipe, click Update.
That is one recipe, now you can make more for any other commands you regularly send AAIMI.
Here's some of my recipes:
Adding your Do buttons to your Android phone
When you install and open the Do app on your phone it will display your first button in full-screen. You can swipe left and right to see the rest of your buttons.
This is okay if you only have a couple of buttons, but the last thing you want to do is scroll through a dozen buttons to switch a light on.
Fortunately, there is a way to place them on the phone as individual shortcuts.
Press and hold the place on your Android screen you wish to place your button. In the pop-up panel select Widgets, then scroll down until you see the Do icon.
You should see a list of the Do recipes you have created on ifttt.com.
There is my new recipe, brightLounge, at the top of the list.
Click your chosen recipe and it will appear as an icon on your screen.
Load as many buttons as you need.
That's it for this tutorial, leave a comment below if you need any help.
There are currently no comments for this article.