Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2

Thread: 2N Doorphone Switch API Commands

  1. #1
    Junior Member
    Join Date
    Feb 2024
    Posts
    2

    2N Doorphone Switch API Commands

    Hi,

    I'm trying to send a HTTP command to our 2N doorphone to open the door on a button press of a Lutron Keypad running Designer 15.13.3 on a HQP6-2

    I've tried the following commands:

    POST /api/switch/ctrl?switch=1&action=on HTTP/1.1*Host:192.168.15.5**
    POST /api/switch/ctrl?switch=1&action=on HTTP/1.1*
    http://192.168.15.5/api/switch/ctrl?switch=1&action=on

    Under Design, Ethernet Device, I've specified the IP address of the doorphone 192.168.15.5 and Port Number 80 with it's proper username and password which I created in the 2N doorphone interface.

    However non of these commands seem to do anything on the 2N interface, but if I use POSTMAN or simple web page they work, does anyone have any experience with using POST and GET commands for 2N?

    Thx,
    MSS_D

  2. #2
    Senior Member
    Join Date
    Sep 2014
    Posts
    271
    Never tried to send these from a QS processor, but heres an example of what we send in Crestron when controllign the 2N switches:
    GET /api/switch/ctrl?switch=1&action=on HTTP/1.1\n\n

    Crestron uses a TCP/IP client so you might need to structure a bit different. But also from the 2N API manual they list the following: https://192.168.1.1/api/switch/ctrl?...&response=TEST

    I think you have to check the "legacy switch code" or something like that in the 2N inercom web config pages too.

Similar Threads

  1. Replies: 1
    Last Post: 07-17-2020, 11:22 AM
  2. Alexa commands
    By J-Automation in forum 3rd-party Integration - RA2
    Replies: 2
    Last Post: 07-02-2019, 10:46 AM
  3. #HVAC Commands?
    By vining in forum 3rd-party Integration - HWQS
    Replies: 2
    Last Post: 06-25-2019, 01:54 PM
  4. IR Commands
    By Armando B. in forum Programming - HWQS
    Replies: 6
    Last Post: 02-19-2015, 08:09 AM
  5. Commands getting missed?
    By amyriley in forum Troubleshooting - RA2
    Replies: 3
    Last Post: 12-11-2013, 12:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •