Google Assistant Wink Control Via Tasker and IFTTT

From Wink@Home Wiki
Jump to: navigation, search

Requirements

  1. Tasker Wink Integration Project by Craig Trunzo must be completed and working
  2. My WinkAlexa Tasker profile from HERE
  3. An IFTTT Account
  4. A Google Home or Android phone with Google Assistant
  5. AutoRemote

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

  1. Go to https://ifttt.com/maker
  2. Click "Connect"
  3. Enter a username and password
  4. 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

  1. go to https://ifttt.com/google_assistant
  2. Click "Connect"
  3. Follow the on-screen instructions to link your Google account.

Note

You can use any channel as your trigger. Play around and have some fun.

Step 2: Configure AutoRemote

  1. Download and install AutoRemote.
    • You need the full play version. The trial will not work for this project.
  2. Follow the instruction in AutoRemote to create an account.
  3. In AutoRemote, open the Devices screen and press the IFTTT action at the bottom Ifttt.png
  4. 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
  5. Name your IFTTT device whatever you want. The default is “IFTTT”
  6. Now Long-Press the IFTTT device and choose the "Generate IFTTT URL"
  7. 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

  1. Download the WinkAlexa profile from HERE to your Android device.
  2. 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)
  3. Go to the Profiles Tab and long-tap it for about 2 seconds, then let go
  4. Choose Import, navigate to wherever you downloaded the WinkAlexa.prf.xml file and tap it.
  5. Verify that "WinkAlexa" now shows up in your Profiles.
  6. 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.

  1. Go to IFTTT and create a new Recipe
  2. Select Google Assistant as the THIS
    1. Choose "Say a phrase with a text ingredient"
    2. Type (all lowercase!) whatever you want the phrase to be followed by a "$". it can be anything. "wink please $", "can you $", etc...
    3. 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"
    4. Click "Create Trigger"
  3. Select Maker as your THAT
    1. Choose "Make a web request" (It's the only option as of this writing)
    2. In the "URL" field, paste the URL that you exported in Step 2.
    3. Find the part at the very end of the URL that says "message=MESSAGE_HERE".
      1. Change "MESSAGE_HERE" to "Wink=:=<something>"
      2. 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.
    4. Set the "Method" field to "GET"
    5. Leave "Content Type" and "Body" blank
    6. Click "Create Action"
    7. Verify your info, then click "Create Recipe"
    8. Done


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.