We will explain how to integrate the 2N® IP Intercom or Access Unit with the IFTTT platform so that it can trigger services within IFTTT or be triggered by services within IFTTT.
IFTTT is a free web based automation platform that allows a user to create a chain of conditional statements. It lets users create applets (or recipes) to joint together services (or channels) that automate a variety of tasks. 


Our 2N® IP Intercom or Access Unit range is able to integrate with IFTTT services by virtue of one of its services called Webhooks. This service is an online interface which can receive an HTTP command and use this to trigger another IFTTT service. It is also capable of sending HTTP commands when triggered to do so by another IFTTT service. It can thefore act as an intermediary between our 2N® IP range and other services available on IFTTT, allowing our intercoms to intergrate with systems that might not have an open HTTP API but do have IFTTT services available.


One such usage might be that when a particular RFID card or code is used at the intercom, the lights and heating in a buliding may be activated. Alternatively an external input, like a command spoken to Google Assistant could be used to unlock a door.

How to configure IFTTT to receive triggers from the intercom

Steps in IFTTT


1) Start by setting up your IFTTT account and activating the Webhooks service (in not already done)

               

                                   


2) Find out your IFTTT webhook address


3) Create your IFTTT maker webhook applet

Be sure to keep the Webhook URLs to yourself, i.e. don't share them, as anyone can use the URL to launch your IFTTT applet.

Settings in 2N IP device

 

 

In this example, my output service is Google spreadsheets. A new spreadsheet is created and everytime a card is used at the intercom, it is registered, along with the time and date, card number and direction in a new row in this spreadsheet.

How to configure IFTTT to send triggers to the intercom

Here we will look at the configuration needed to use an IFTTT service to trigger an action the intercom. For this to works you will need to set up port forwarding on the router to which your 2N Intercom or Access unit is connected and to know this router’s public IP address.

 

Please be aware that making an IP Intercom or Access unit’s IP address publicly accessible on port 80 will carry its own security implications, which you need to consider before using this method. 

Steps in Router

Steps in IFTTT

1) Start by setting up your IFTTT account and activating the Webhooks service (in not already done)


2) Create your IFTTT maker Webhooks applet

HTTP API format (can be secured)

Automation format (Unsecured)

You can test these URLs in your web browser to ensure the intercom triggers the desired action.