HTTP API - 2N Indoor Touch relay control using 2N IP Verso automation

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.

This feature enables you to control the 2N Indoor Touch output relay by an HTTP command sent by 2N IP Verso automation.

License requirements

  • 2N Indoor Touch: HTTP API license (order no. 91378395)

  • 2N IP Verso: Gold license for the automation feature (order no. 9137909)

Indoor Touch settings

Navigate to the web administration and check the "Insecure HTTP Access" box. You can activate it via device menu: Settings -> Software as well.

HTTP access settings on an Indoor Touch

IP Verso settings

Navigate to the web administration: Services -> Automation and create a new function according to the example below.

Description of the function below:

When you press any of the IP Verso buttons, it sends the first HTTP command to login to the Indoor Touch API. After a predefined delay it sends the second HTTP command to activate the Indoor Touch relay. Finally, it sends the last HTTP command to deactivate the Indoor Touch relay.

automation for an 2N indoor touch

1st URL: http://<idt_ip_address>/api/v1/login?login=Admin&password=<your_password>
2nd URL: http://<idt_ip_address>/api/v1/gpio?action=set&name=relay1&type=value&value=1
3rd URL: http://<idt_ip_address>/api/v1/gpio?action=set&name=relay1&type=value&value=0

Please define the Indoor Touch IP address <idt_ip_address> and the password <your_password> according to your settings.

 

Firmware & License info

  • IDT Firmware v3.5.3 with HTTP API license

  • 2N OS v2.44 with GOLD license

  • Last updated on 16th of September 2023

Esta página foi útil?