Logic Machine Forum
Doorbell 2N IP (Intercom) - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Doorbell 2N IP (Intercom) (/showthread.php?tid=3834)



Doorbell 2N IP (Intercom) - KNXSeb - 29.01.2022

Hello,
I am a novice in scripting. 
Is there Anyone that can help me in reading out my doorbell status to link to object in KNX?

My Dorrbell is the 2N IP Verso and it has its own HTTP API (Testtool).
I need the status of the relay switch or the validation of the rfid card. Both would work. 

My goal is following problem:
If the relay switch status of the doorbell turns to 'true' then the knx group adresss (boolean) should write to 'true'.

I can start with "https://<ip-adress>/api/switch/status?switch=1"  an request from the doorbell. The doorbell uses TLS and the type "digest" for https.
The response is:

Code:
{
  "success" : true,
  "result" : {
    "switches" : [
      {
        "switch" : 1,
        "active" : false,
        "locked" : false,
        "held" : false
      }
    ]
  }
}


With the automation manual for the http request it is possible to send an request from the doorbell.
https://wiki.2n.com/hip/auto/latest/en/4-akce-action

Is there already a solution for my question/problem?
Thanks!!


RE: Doorbell 2N IP (Intercom) - KNXSeb - 30.01.2022

I've got my solution:

I activate the remote service and use the remote http code:

"https://remote:remote@192.XXX.XX.XX/cgi-bin/scada-remote/request.cgi?m=json&r=grp&fn=write&alias=1/1/2&value=true"

I just used it in the automation of the 2N IP Doorbell. Just stupid i am.
How simple...

Works fine for me!


RE: Doorbell 2N IP (Intercom) - j.martinez@t-ingeniamos.com - 28.06.2025

(30.01.2022, 13:23)KNXSeb Wrote: I've got my solution:

I activate the remote service and use the remote http code:

"https://remote:remote@192.XXX.XX.XX/cgi-bin/scada-remote/request.cgi?m=json&r=grp&fn=write&alias=1/1/2&value=true"

I just used it in the automation of the 2N IP Doorbell. Just stupid i am.
How simple...

Works fine for me!

Hello there! I am trying the same but without success

What i am missing?


RE: Doorbell 2N IP (Intercom) - Daniel - 30.06.2025

Did you enable remote services and did you export the object you are trying to write too?
Also enable Send Basic auth header in Remote services.


RE: Doorbell 2N IP (Intercom) - j.martinez@t-ingeniamos.com - 30.06.2025

(30.06.2025, 07:46)Daniel Wrote: Did you enable remote services and did you export the object you are trying to write too?
Also enable Send Basic auth header in Remote services.

Yes, the point is the url works in a browser, then the LM works.

But i cannot make it works from 2n sending the http requests....


RE: Doorbell 2N IP (Intercom) - Daniel - 30.06.2025

Then you should contact 2N for support.


RE: Doorbell 2N IP (Intercom) - Erwin van der Zwart - 30.06.2025

I would make it a GET request and put the text part after the URL


RE: Doorbell 2N IP (Intercom) - j.martinez@t-ingeniamos.com - 30.06.2025

(30.06.2025, 11:05)Erwin van der Zwart Wrote: I would make it a GET request and put the text part after the URL

I Would try! Thankyou all!