Difference between revisions of "IFTTT Integration"

From Hubitat Documentation
Jump to: navigation, search
m
(Minor edits and changes to wording)
Line 12: Line 12:
  
 
#Go to '''ifttt.com''' in a web browser and log in, or sign up for a new account.[[File:Sign up for IFTTT.png|none|thumb|600x600px]]
 
#Go to '''ifttt.com''' in a web browser and log in, or sign up for a new account.[[File:Sign up for IFTTT.png|none|thumb|600x600px]]
#If the is your first time using IFTTT, close the Welcome screen to continue setting up your first IFTTT automation.[[File:Welcome to IFTTT.png|none|thumb|600x600px]]
+
#If this is your first time using IFTTT, close the Welcome screen to continue setting up your first IFTTT automation.[[File:Welcome to IFTTT.png|none|thumb|600x600px]]
 
#Search for the Hubitat IFTTT service.[[File:Search for Hubitat IFTTT service.png|none|thumb|600x600px]]
 
#Search for the Hubitat IFTTT service.[[File:Search for Hubitat IFTTT service.png|none|thumb|600x600px]]
 
#Once your search finds Hubitat Elevation™ Applets, select the Services tab.[[File:Select Hubitat IFTTT Service.png|none|thumb|600x600px]]
 
#Once your search finds Hubitat Elevation™ Applets, select the Services tab.[[File:Select Hubitat IFTTT Service.png|none|thumb|600x600px]]
Line 21: Line 21:
  
 
===Building your first custom IFTTT Applet===
 
===Building your first custom IFTTT Applet===
If you've never used IFTTT before, let 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 should occur. In this simple example, we are going to control a cloud connected WiFi outlet made by iDevices, by turning on a virtual switch on our Hubitat Elevation™
+
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™
  
 
#At the top of the page, choose '''My Applets''', and then select '''New Applet'''.[[File:New IFTTT Applet.png|none|thumb|600x600px]]
 
#At the top of the page, choose '''My Applets''', and then select '''New Applet'''.[[File:New IFTTT Applet.png|none|thumb|600x600px]]
Line 28: Line 28:
 
#Choose an available '''Trigger'''[[File:Available HE Triggers for IFTTT.png|none|thumb|1089x1089px]]
 
#Choose an available '''Trigger'''[[File:Available HE Triggers for IFTTT.png|none|thumb|1089x1089px]]
 
#Define the parameters for the trigger and push the '''Create trigger''' button.[[File:Choose IFTTT HE Trigger.png|none|thumb|600x600px]]
 
#Define the parameters for the trigger and push the '''Create trigger''' button.[[File:Choose IFTTT HE Trigger.png|none|thumb|600x600px]]
#Click or Tap on '''+ that'''[[File:Then That IFTTT action.png|none|thumb|600x600px]]
+
#Click or tap on '''+ that'''[[File:Then That IFTTT action.png|none|thumb|600x600px]]
 
#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.'''[[File:Select IFTTT action service.png|none|thumb|600x600px]]
 
#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.'''[[File:Select IFTTT action service.png|none|thumb|600x600px]]
 
#Choose an available Action.[[File:Select IFTTT action.png|none|thumb|600x600px]]
 
#Choose an available Action.[[File:Select IFTTT action.png|none|thumb|600x600px]]
 
#Define the parameters for the Action and push the '''Create action''' button.[[File:Complete IFTTT action service.png|none|thumb|600x600px]]
 
#Define the parameters for the Action and push the '''Create action''' button.[[File:Complete IFTTT action service.png|none|thumb|600x600px]]
#Review your Applet to ensure it is what you want to happen. If you have the IFTTT app install 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.[[File:Review IFTTT applet.png|none|thumb|613x613px]]
+
#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.[[File:Review IFTTT applet.png|none|thumb|613x613px]]
#Your first IFTTT Applet is now complete. You can close this window. Now when the virtual switch '''Lights ON''', is activated on our Hubitat Elevaton™ hub, the IFTTT Applet with run in the IFTTT cloud and activate the '''Christmas Lights''' outlet on iDevices. You can disable the IFTTT Applet by turning off the big switch in the middle of this window, or edit the Applet by clicking or tapping on the gear at the top right.[[File:Edit IFTTT applet.png|none|thumb|661x661px]]
+
#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.[[File:Edit IFTTT applet.png|none|thumb|661x661px]]
  
 
===Control Hubitat Elevation™ with a trigger from another IFTTT Service===
 
===Control Hubitat Elevation™ with a trigger from another IFTTT Service===
You can also do the reverse of the previous example. Instead of Hubitat Elevation™ triggering another device, you can make another device or IFTTT Service trigger something to happen on Hubitat Elevation™
+
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 IFTTT Actions for Hubitat Elevation™====
 
[[File:Available Hubitat IFTTT Actions.png|none|thumb|811x811px]]
 
[[File:Available Hubitat IFTTT Actions.png|none|thumb|811x811px]]

Revision as of 14:21, 11 December 2018

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