Configuring HTTP Commands on 2N Indoor Compact

The steps in this article require using the web interface of a 2N device. Please follow this manual in case this is your first time using the web interface.

 

From firmware version 2.34 the 2N Indoor Compact answering unit can send HTTP commands by long-pressing the unlock button on the device.

You can set up to 3 different HTTP commands. In case there is only one HTTP command set, the 2N Indoor Compact will send the HTTP command immediately after the long press of the unlock button. But if there are 2 or 3 HTTP commands set they all will be shown on the 2N Indoor Compact's screen and you can choose the desired HTTP command to be sent.

Here’s an example of how to set commands for triggering Switch 1 and for holding Switch 2 open on 2N IP Verso.

The HTTP command for triggering Switch 1 on the 2N IP Verso is https://IP_address/api/switch/ctrl?switch=1&action=on and for holding the Switch 2 open is https://IP_address/api/switch/ctrl?switch=2&action=hold. You can find the HTTP commands in the HTTP API manual or by accessing the HTTP API TESTool which is part of every 2N IP Intercom and can help you create valid HTTP commands for the desired request type. You can access the TESTool by entering the intercom’s IP address and writing /apitest.html at the end (for example https://192.168.49.88/apitest.html).

2N_Idoor_Compact_HTTP_Commands_1 

After you get the correct HTTP commands go to the “Services -> HTTP Command” section of the 2N Indoor Compact’s web interface and fill in the required credentials.

URL - the HTTP command

Icon - Choose an icon that will be shown on the 2N Indoor Compact's screen

Name - Fill in the name of the HTTP command

Username - required username in case of the HTTP API account for authorisation is set in the command receiving device

Password - required password in case of the HTTP API account for authorisation is set in the command receiving device

2N_Idoor_Compact_HTTP_Commands_2  

 

After that simply save the settings and you will be able to send the HTTP command by long-pressing the unlock button on the 2N Indoor compact answering unit.

2N_Idoor_Compact_HTTP_Commands_3  

Esta página foi útil?