2N HTTP API
Hello,
I was asked a challenge, about a 2N Doorbell installed recently.
I'm using both relay and output on the 2N unit, so I don't have any outputs available to do the following:
The client is asking if it's possible to ring an outside bell on the garden, when the 2N doorbell is ringing.
According to the 2N HTTP API, section 5.71 api call status, it looks like it's possible.
My goal would be to intercept the "ringing" state and therefore turn an KNX output with a bell for some seconds, or pulse the output to simulate bell ring.
I could constantely pool /api/call/status, but has someone a better ideia?
Right now I'm testing with a Http node, pooling the "result.sessions[0].calls[0].state" or "result.sessions[0].state" tokens, and I can get the string "ringing" as result. The problem is that after the call hang up the string remains. I was expecting the string to be empty after the call hang up, and according to the Json response is in fact empty.
Idle mode:
{
"success": true,
"result": {
"sessions": []
}
}
Ringing:
{
"success": true,
"result": {
"sessions": [
{
"session": 45,
"direction": "outgoing",
"state": "ringing",
"calls": [
{
"id": 89,
"state": "ringing",
"peer": "sip:MY_ID1@192.168.1.12"
}
]
}
]
}
}
Has anyone used the 2N API for this case or similar that can help out?
Best regards

I still don't own any iOS devices, so I haven’t had a chance to test it further. It was a long time ago when I added it. I believe it only opens the App Store link for My2N. Interestingly, even though the app name in the link is quite old, it still works...
I'm struggling to find the iOS app links for several apps, and they are not public.
And sending e-mail do the app developer turns out to be a dead end.
I know that this can be circumvented with iOS Shorcuts, but it needs client intervention.
Thanks