Google Assistant Wink Control Via Tasker and IFTTT
- Tasker Wink Integration Project by Craig Trunzo must be completed and working
- My WinkAlexa Tasker profile from HERE
- An IFTTT Account
- A Google Home or Android phone with Google Assistant
Step 1: Configure IFTTT
Connect to the Maker channel
The goal is to get a message from IFTTT to Tasker. To accomplish this, you must connect to the Maker channel
- Go to https://ifttt.com/maker
- Click "Connect"
- Enter a username and password
- Once connected, you should see a Secret Key. Keep that tab open as you need that Secret Key later.
Connect to the Google Assistant channel
Since this tutorial is about getting from Google Assistant to Tasker, you also need to set up your Google Assistant channel
- go to https://ifttt.com/google_assistant
- Click "Connect"
- Follow the on-screen instructions to link your Google account.
You can use any channel as your trigger. Play around and have some fun.
Step 2: Configure AutoRemote
- Download and install AutoRemote.
- You need the full play version. The trial will not work for this project.
- Follow the instruction in AutoRemote to create an account.
- In AutoRemote, open the Devices screen and press the IFTTT action at the bottom
- Enter your secret key from step 3 above. This is a unique key, just for you. If you can't find it, try this link
- Name your IFTTT device whatever you want. The default is “IFTTT”
- Now Long-Press the IFTTT device and choose the "Generate IFTTT URL"
- Follow the instruction to share the URL. Email it to yourself for safe keeping and easy access in the future.
Step 3: Import the Tasker Profile
- Download the WinkAlexa profile from HERE to your Android device.
- Open Tasker and go to your Wink2 project (If you don't have a Wink2 project, make one Tasker_Wink_Integration_Project_by_Craig_Trunzo #TASKER_POWER_USERS)
- Go to the Profiles Tab and long-tap it for about 2 seconds, then let go
- Choose Import, navigate to wherever you downloaded the WinkAlexa.prf.xml file and tap it.
- Verify that "WinkAlexa" now shows up in your Profiles.
- Hit the back arrow until you are back at your home screen.
Step 4: Create the IFTTT recipe
I would highly recommend doing this from a desktop, not your phone.
- Go to IFTTT and create a new Recipe
- Select Google Assistant as the THIS
- Choose "Say a phrase with a text ingredient"
- Type (all lowercase!) whatever you want the phrase to be followed by a "$". it can be anything. "wink please $", "can you $", etc...
- Type, in the "What do you want the Assistant to say in response?" field, the response you want Google Assistant to say after the command is intercepted. I just enter "OK"
- Click "Create Trigger"
- Select Maker as your THAT
- Choose "Make a web request" (It's the only option as of this writing)
- In the "URL" field, paste the URL that you exported in Step 2.
- Find the part at the very end of the URL that says "message=MESSAGE_HERE".
- Change "MESSAGE_HERE" to "Wink=:=<something>"
- Change the "<something>" to the actual command you want to run. Be sure to remove the "<" & ">" characters.
- For the following steps, my examples are made up. The best thing for you to do is get used to using the Tasker Voice Control project before you do this so you are familiar with what you need to say to get things to turn on or off, open, whatever.
- FOR WINK DEVICES AND GROUPS
- Replace "<something>" with whatever voice command you would give Tasker to control that thing in the way you want. Be sure to remove the "<" & ">" characters.
- If you want to turn on your bedroom light, replace "<something>" with "Turn on the bedroom light". Be sure to remove the "<" & ">" characters.
- If you want to open your garage, replace "<something>" with "Open the Garage Door". Be sure to remove the "<" & ">" characters.
- FOR WINK SHORTCUTS
- You must start a shortcut command with "shortcut activate", if not, it will treat it like a device/group and not work.
- Replace "<something>" with "shortcut activate Movie Time" where "Movie Time" is the name of whatever shortcut you actually want to run. Be sure to remove the "<" & ">" characters.
- Set the "Method" field to "GET"
- Leave "Content Type" and "Body" blank
- Click "Create Action"
- Verify your info, then click "Create Recipe"
I know that this is somewhat long and complicated. If you run into any issue, don't hesitate to contact me via G+ Hangouts or email.