This FAQ describes how to use 2N® Indoor Touch HTTP API on a device, how to configure it. 2N® Indoor Touch HTTP API is an application interface designed for control of selected 2N® Indoor Touch functions via the HTTP commands. It enables 2N® Indoor Touch to be integrated easily with third party products, such as home automation, security and monitoring systems, etc.

  • 2N® Indoor Touch FW version 2.0.3 or higher
  • Additional license key HTTPAPI (order no. 91378395 2N Indoor Touch HTTP API license)
  • For some function it is required 2N® Indoor Touch HW version 4

 Tips&Tricks at the beginning

  • Here is an example how you can change parameters of the 2N® Indoor Touch device via HTTP API. In manual you will find all commands for a device. 

    For more information please follow the user guide here: https://wiki.2n.cz/hseit/api/latest/en/4-http-api

  • Communication is made via the HTTPS protocol, which runs on standardised port 443. Authentication requires login and password data to be transmitted in the first connection. 

  • The HTTP API license is needed to enable this feature support. Order number of the HTTP API license is 91378395.

 

How to use HTTP API on the 2N® Indoor Touch

  1. There are two possibilities how to access to HTTP API. You can use your application or any web browser.
  2. For a demonstration we will use an application Postman. User needs to authenticate wit login command. For login you need to use PUT method. After authentication use any commands from manual with GET method.



  3. Second option is to use a web browser. Connect to the 2N® Indoor Touch, use your username and password to log in. It is important for authentication. Without login will HTTP API not work. For more information please follow the manual. https://faq.2n.cz/display/ICUAPI12EN/4.1+Interface



  4. After the authentication, you can use different commands. Structure of a command must be like this: https://<IP>/api/v1/<subsystem>?<parameters>
    • IP is the 2N® Indoor Touch IP address
    • <subsystem> designates the system part to be controlled
    • <parameters> includes request details

          Example:  https://192.168.50.183/api/v1/maintenance/resetdevice

          Results:  {

                           "data":{}

                         }

 

How to switch IO on the 2N® Indoor Touch via HTTP API

  1. After you log in to the device. Use the special HTTP API command to switch relay.



    - structure of the command is https://<IP>/api/v1/gpio?action=set&name=<string>&type=<string>&value=<bit>, where you will define name, type and value

For more information please follow the user guide here: https://wiki.2n.cz/hseit/api/latest/en/4-http-api/4-2-prikazy/4-2-2-gpio/4-2-2-3-nastaveni-hodnoty-vystupu

 

 

How to activate door lock in application 2N® Helios IP via HTTP API

  1. After you log in to the device add your 2N® Helios IP Mobile intercom to 2N® Helios IP Mobile application.. You can do it both ways from the web browser or from the application.

     

             



  2. Use the special HTTP API command to active a door lock in 2N® Helios IP Mobile application. Part of the command is a serial number of a saved device and ID of the switch that you would like to use.

     

For more information please follow the user guide here: https://wiki.2n.cz/hseit/api/latest/en/4-http-api/4-2-prikazy/4-2-3-ovladani-2n-helios-ip-mobile-aplikace/4-2-3-7-aktivace-zamku-dveri