OpenHab IFTTT Integration Step by Step

IFTTT can be a great tool to improve your Home Automation Project and today, I am going to show you how to integrate OpenHab and IFTTT step by step. It takes less than 10 minutes. Before you start with this tutorial on the Openhab IFTTT Integration you need to install the OpenHab Cloud Connector. If you have not done it yet, check the OpenHAb Cloud Connector Guide.

Before I get down to business let me give you a few ideas that you can implement using IFTTT.

What is IFTTT and why you should use it?

IFTTT stands for If This, Then That.

Right…But what does it do?

IFTTT it is a rules engine that allows you to combine all kinds of online services and tools to create powerful automation rules.

Still not clear? Let me give you a few examples that you will be able to create with the OpenHab IFTTT integration.

  • Turn on the AC via text message: You can access your Home Automation system through the internet but what if you don’t have internet access where you are? You can always send a text message.
  • Call your cell phone when an event happens at home: Some events require your attention right away. You can easily create a rule to call your cell phone if a gas leak is detected for example.
  • Switch On the lights at sunset: Turn on the living room lights every day at sunset.
  • Turn off the irrigation system if rain is forecasted: Save water if there is rain expected.
  • Trigger events based on google calendar: This is a very user-friendly option for time-based triggers.
  • Close your blinds if the temperature goes above a certain threshold to keep the house cool.
  • Turn on the heat when you are on your way home on an uber car.

Those are just a few examples. I am sure that when you see all the services available you will come up with tons of ideas.

Openhab IFTTT integration

Let’s go through an example to see how it works.

Here is one of my IFTTT rules…

I have a dog, and the summer in New York can get pretty hot for him sometimes. What I did was to set up a rule in IFTTT to give me call if the temperature in the apartment goes above a certain threshold.

When I get the call, I can decide if I want to turn on the AC or maybe ask the neighbor to quickly check if everything is ok at home.

Today I want to walk you through the creation of that rule. If you don’t have a temperature sensor for your Home Automation yet, check How to Build DIY Home Automation Sensors.

Expose your Items to IFTTT using the OpenHab Cloud Connector.

1. Open Services in the PaperUI and hit Configure.

Openhab IFTTT Integration - Openhab Cloud

2. Select the items that you want to expose to IFTTT. In my case, it is the temperature in the living room. Keep in mind that the value will not show up in IFTTT until the sensor sends a new value. This means that you might have to give it a few minutes, depends on how you sensor is configured.

Create a Free Account in IFTTT

Openhab IFTTT Integration - IFTT Account

Openhab IFTTT Integration - IFTTT Account 2

Create your First IFTTT Rule

Every rule has two parts:

Trigger: The condition that will trigger the rule. In our case, the rule will be executed when the temperature goes above 90 degrees.

Action: The action that you want IFTTT to execute. In my case, it is a call to my cell phone.

1. Create a new Applet

Openhab IFTTT Integration - IFTTT Applet

2. Create a trigger to execute the rule when the temperature goes above 90 F.

Openhab IFTTT Integration - Create Trigger

3. Connect to the OpenHab Service.

Openhab IFTTT Integration - Opehab Service

4. Type your user and password from the OpenHab Cloud.

Openhab IFTTT Integration - Login into the Openhab Cloud

5. Select the Trigger type and configure the parameters.

Openhab IFTTT Integration - Chose Trigger

Openhab IFTTT Integration - Create Trigger

The trigger is already configured, now we have to tell IFTTT what to do in that case.

6. Create an action to call you on your cell phone when the temperature goes above 90 degrees

Openhab IFTTT Integration - Create Action 1

Openhab IFTTT Integration - Create Action 2

You will need to provide a cell phone number and verify it with the pin number that you will receive.

Openhab IFTTT Integration - Create Action 4

Openhab IFTTT Integration - Create Action 5

Chose the message that a creepy robotic voice is going to give you over the phone.

Openhab IFTTT Integration - Create Action 6

Review the trigger and you are ready to go!

Openhab IFTTT Integration - Create Action 7

I hope you guys found the tutorial useful. If you liked it and you want to share on social media, it would be great.

I think the OpenHab IFTTT integration is worth checking out. Let me know if you guys implement anything cool with it!

This Post Has 4 Comments

  1. Matthew D Fabian

    Thanks. This is the tutorial I could not find on the IFTTT site

  2. David C.

    I am glad I could help Matt!

    Let me know if it all works out.

  3. dan

    Unfortuately it looks like myopenhab is no longer supporting IFTTT for the time being…

  4. David C.

    Hi Dan,

    I actually stop using the direct IFTTT integration with openHAB I use Webhooks now. You should give it a try!

Leave a Reply