IFTTT Integration

From Hubitat Documentation
Jump to: navigation, search

IFTTT (IF This Then That) allows you to connect your Hubitat Elevation™ to other IFTTT compatible devices and Services to create rules that automate them. Getting started requires enabling devices in the Hubitat IFTTT app, then connecting your account to Hubitat via IFTTT.com

Installing the IFTTT Integration App

  1. From the Hubitat Web Interface select Apps
    Install Built-In App 2.0.png
  2. Choose the IFTTT Integration from the list of Hubitat Elevation™ Built-In Apps
    Install IFTTT Integration.png
  3. The Which Location Modes? dropdown lets you select any mode you would like to control with the IFTTT Integration.
    IFTTT Location Modes.png
  4. The Which Devices? box shows all of the devices currently connected to IFTTT. Selecting the associated check box will allow you to select or remove any devices you would like to control with IFTTT. When you are done selecting devices, choose Update.
    IFTTT Integration select devices.png
  5. When finished with your choices, select Done. NOTE: IFTTT is bi-directional, meaning you may have a device on your Hubitat Elevation™ you would like to control with a cloud enabled device or service connected to IFTTT, and this is also easily accomplished with the integration.

How to connect IFTTT to your Hubitat Elevation™

  1. Go to ifttt.com in a web browser and log in, or sign up for a new account.
    Sign up for IFTTT.png
  2. If this is your first time using IFTTT, close the Welcome screen to continue setting up your first IFTTT automation.
    Welcome to IFTTT.png
  3. Search for the Hubitat IFTTT service.
    Search for Hubitat IFTTT service.png
  4. Once your search finds Hubitat Elevation™ Applets, select the Services tab.
    Select Hubitat IFTTT Service.png
  5. Select the Hubitat IFTTT Service and sign in
    Hubitat IFTTT service.png
  6. Push the “Connect” button
    Connect HE to IFTTT.png
  7. Sign into your Hubitat account
    Authorize HE on IFTTT.png
  8. Select the devices you would like to authorize.
    IFTTT authorized HE devices.png

Building your first custom IFTTT Applet

If you've never used IFTTT before, let's start by building a simple IFTTT Applet that turns on a light when we flip a virtual switch in Hubitat Elevation™. An IFTTT Applet is a simple automaton flow that says, "IF This" thing (a trigger of some kind) happens, then "That" Action (available for the selected service) should occur. In this simple example, we are going to control an iDevices cloud connected WiFi outlet, by turning on a virtual switch on our Hubitat Elevation™

  1. At the top of the page, choose My Applets, and then select New Applet.
    New IFTTT Applet.png
  2. Click or tap on + this
    IF THIS for IFTTT applet.png
  3. Search for Hubitat
    IFTTT applet step 1.png
  4. Choose an available Trigger
    Available HE Triggers for IFTTT.png
  5. Define the parameters for the trigger and push the Create trigger button.
    Choose IFTTT HE Trigger.png
  6. Click or tap on + that
    Then That IFTTT action.png
  7. Search for the IFTTT Service you want to be activated by the trigger from your Hubitat Elevation™ hub. In our example, we are searching for iDevices.
    Select IFTTT action service.png
  8. Choose an available Action.
    Select IFTTT action.png
  9. Define the parameters for the Action and push the Create action button.
    Complete IFTTT action service.png
  10. Review your Applet to ensure it is what you want to happen. If you have the IFTTT app installed on your phone or tablet, you can receive a notification every time the Applet runs. This can be useful for testing or troubleshooting an IFTTT Applet, but if you don't want this, turn off the switch next to the words Receive notifications when this Applet runs. and press the Finish button.
    Review IFTTT applet.png
  11. Your first IFTTT Applet is now complete and you can navigate away from this page. In our example, when the virtual switch Lights ON is activated on our Hubitat Elevaton™ hub, the IFTTT Applet will run in the IFTTT cloud and turn on Christmas Lights on the iDevices WiFi outlet. You can disable the IFTTT Applet by turning off the big switch in the middle of an IFTTT Applet overview. You can also edit the Applet by clicking or tapping on the gear icon at the top right of an Applet overview.
    Edit IFTTT applet.png

Control Hubitat Elevation™ with a trigger from another IFTTT Service

You can also reverse the previous example. Instead of Hubitat Elevation™ triggering another device, you can make another IFTTT compatible device or Service trigger something to happen on Hubitat Elevation™

Available IFTTT Actions for Hubitat Elevation™

Available Hubitat IFTTT Actions.png