Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Node-Red
    5. Auerswald API mit node-red

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Auerswald API mit node-red

    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fuchs1978 last edited by

      Ich musste bislang meine Telefonanlage immer umständlich mit dem Handy oder PC umstellen. Für schnell mal aus dem Haus unpraktisch. Ich habe nun den Zugriff auf die API mit node-red realisiert. Vielleicht nützlich für den einen

      ! { "id": "b58a0c9.94de77", "type": "function", "z": "3d518e20.c6acaa", "name": "Session ID", "func": "msg.payload = \"POST /login_json HTTP/1.1\\r\\nHost: 192.168.123.175\\r\\nUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0\\r\\nAccept: text/javascript, text/html, application/xml, text/xml, */*\\r\\nAccept-Language: de,en-US;q=0.7,en;q=0.3\\r\\nAccept-Encoding: gzip, deflate\\r\\nReferer: http://192.168.123.175/statics/page_portal.htm\\r\\nX-Requested-With: XMLHttpRequest\\r\\nX-Prototype-Version: 1.7\\r\\nContent-Type: application/x-www-form-urlencoded; charset=UTF-8\\r\\nContent-Length: 71\\r\\nConnection: keep-alive\\r\\n\\r\\nLOGIN_NOW=&eksservernumber=&eksname=&LOGIN_NAME=admin&LOGIN_PASS=111111\\r\\n\"\nreturn msg;", "outputs": 1, "noerr": 0, "x": 250, "y": 40, "wires": [ [ "e1ac8aa0.a5f5e8" ] ] }, { "id": "e1ac8aa0.a5f5e8", "type": "tcp request", "z": "3d518e20.c6acaa", "server": "192.168.123.175", "port": "80", "out": "time", "splitc": "1000", "name": "GET Portal", "x": 430, "y": 40, "wires": [ [ "33712088.9dac8" ] ] }, { "id": "33712088.9dac8", "type": "function", "z": "3d518e20.c6acaa", "name": "Antwort", "func": "var String = msg.payload.toString('utf8');\nvar Position = String.indexOf(\"AUERSessionID=\");\nvar ID = String.substr(Position+14,15);\nglobal.set(\"SessionID\",ID);\nmsg = {};\nmsg.payload = ID;\nreturn msg", "outputs": "1", "noerr": 0, "x": 600, "y": 40, "wires": [ [ "e7707375.6f7538" ] ] }, { "id": "a18c1474.2a34b8", "type": "function", "z": "3d518e20.c6acaa", "name": "Ausloggen", "func": "var ID = global.get(\"SessionID\");\nmsg.payload = \"POST /appclose HTTP/1.1\\r\\nHost: 192.168.123.175\\r\\nUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0\\r\\nAccept: text/javascript, text/html, application/xml, text/xml, */*\\r\\nAccept-Language: de,en-US;q=0.7,en;q=0.3\\r\\nAccept-Encoding: gzip, deflate\\r\\nReferer: http://192.168.123.175/statics/page_portal.htm\\r\\nX-Requested-With: XMLHttpRequest\\r\\nX-Prototype-Version: 1.7\\r\\nContent-Type: application/x-www-form-urlencoded; charset=UTF-8\\r\\nContent-Length: 0\\r\\nCookie: AUERSessionID=\"+ID+\"; AUERWEB_COOKIE=admin\\r\\nConnection: keep-alive\\r\\n\\r\\n\"\nreturn msg;", "outputs": 1, "noerr": 0, "x": 250, "y": 160, "wires": [ [ "eb567a90.5d013" ] ] }, { "id": "eb567a90.5d013", "type": "tcp request", "z": "3d518e20.c6acaa", "server": "192.168.123.175", "port": "80", "out": "time", "splitc": "1000", "name": "GET Portal", "x": 430, "y": 160, "wires": [ [ "2b351f8.6a13ae" ] ] }, { "id": "2b351f8.6a13ae", "type": "function", "z": "3d518e20.c6acaa", "name": "Antwort", "func": "msg.payload=msg.payload.toString('utf8')\nreturn msg;", "outputs": 1, "noerr": 0, "x": 600, "y": 160, "wires": [ [ "d03526fd.e0a41" ] ] }, { "id": "d03526fd.e0a41", "type": "debug", "z": "3d518e20.c6acaa", "name": "Ausloggen", "active": true, "console": "false", "complete": "payload", "x": 770, "y": 160, "wires": [] }, { "id": "cfb18941.485ab8", "type": "function", "z": "3d518e20.c6acaa", "name": "Umleitung AN", "func": "var ID = global.get(\"SessionID\");\nmsg.payload = \"GET /app_msn_aws_set?msnId=5610&msnTyp=0&switchOnOff=1 HTTP/1.1\\r\\nHost: 192.168.123.175\\r\\nCookie: AUERSessionID=\"+ID+\"; AUERWEB_COOKIE=admin\\r\\nConnection: keep-alive\\r\\nUpgrade-Insecure-Requests: 1\\r\\n\\r\\n\"\nreturn msg;", "outputs": 1, "noerr": 0, "x": 260, "y": 100, "wires": [ [ "7d854c6b.38d854" ] ] }, { "id": "7d854c6b.38d854", "type": "tcp request", "z": "3d518e20.c6acaa", "server": "192.168.123.175", "port": "80", "out": "time", "splitc": "1000", "name": "GET Portal", "x": 430, "y": 100, "wires": [ [ "d915774.7215d88" ] ] }, { "id": "d915774.7215d88", "type": "function", "z": "3d518e20.c6acaa", "name": "Antwort", "func": "msg.payload=msg.payload.toString('utf8')\nreturn msg;", "outputs": 1, "noerr": 0, "x": 600, "y": 100, "wires": [ [ "3a5ed3f6.35ce84" ] ] }, { "id": "3a5ed3f6.35ce84", "type": "debug", "z": "3d518e20.c6acaa", "name": "Umleitung", "active": true, "console": "false", "complete": "payload", "x": 770, "y": 100, "wires": [] }, { "id": "e7707375.6f7538", "type": "debug", "z": "3d518e20.c6acaa", "name": "AUERSessionID", "active": true, "console": "false", "complete": "payload", "x": 790, "y": 40, "wires": [] }, { "id": "aec9e6c8.ae9d98", "type": "function", "z": "3d518e20.c6acaa", "name": "Umleitung AUS", "func": "var ID = global.get(\"SessionID\");\nmsg.payload = \"GET /app_msn_aws_set?msnId=5610&msnTyp=0&switchOnOff=0 HTTP/1.1\\r\\nHost: 192.168.123.175\\r\\nCookie: AUERSessionID=\"+ID+\"; AUERWEB_COOKIE=admin\\r\\nConnection: keep-alive\\r\\nUpgrade-Insecure-Requests: 1\\r\\n\\r\\n\"\nreturn msg;", "outputs": 1, "noerr": 0, "x": 260, "y": 300, "wires": [ [ "70b50c6e.747844" ] ] }, { "id": "70b50c6e.747844", "type": "tcp request", "z": "3d518e20.c6acaa", "server": "192.168.123.175", "port": "80", "out": "time", "splitc": "1000", "name": "GET Portal", "x": 430, "y": 300, "wires": [ [ "5c4977de.6f3de8" ] ] }, { "id": "5c4977de.6f3de8", "type": "function", "z": "3d518e20.c6acaa", "name": "Antwort", "func": "msg.payload=msg.payload.toString('utf8')\nreturn msg;", "outputs": 1, "noerr": 0, "x": 600, "y": 300, "wires": [ [ "33c95ac7.804076" ] ] }, { "id": "33c95ac7.804076", "type": "debug", "z": "3d518e20.c6acaa", "name": "Umleitung", "active": true, "console": "false", "complete": "payload", "x": 770, "y": 300, "wires": [] }, { "id": "c987d40c.2a564", "type": "delay", "z": "3d518e20.c6acaa", "name": "", "pauseType": "delay", "timeout": "2", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 80, "y": 100, "wires": [ [ "cfb18941.485ab8" ] ] }, { "id": "2ea254ce.1a1ffc", "type": "delay", "z": "3d518e20.c6acaa", "name": "", "pauseType": "delay", "timeout": "5", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 80, "y": 160, "wires": [ [ "a18c1474.2a34b8" ] ] }, { "id": "632ad43b.5cd71c", "type": "function", "z": "3d518e20.c6acaa", "name": "Session ID", "func": "msg.payload = \"POST /login_json HTTP/1.1\\r\\nHost: 192.168.123.175\\r\\nUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0\\r\\nAccept: text/javascript, text/html, application/xml, text/xml, */*\\r\\nAccept-Language: de,en-US;q=0.7,en;q=0.3\\r\\nAccept-Encoding: gzip, deflate\\r\\nReferer: http://192.168.123.175/statics/page_portal.htm\\r\\nX-Requested-With: XMLHttpRequest\\r\\nX-Prototype-Version: 1.7\\r\\nContent-Type: application/x-www-form-urlencoded; charset=UTF-8\\r\\nContent-Length: 71\\r\\nConnection: keep-alive\\r\\n\\r\\nLOGIN_NOW=&eksservernumber=&eksname=&LOGIN_NAME=admin&LOGIN_PASS=111111\\r\\n\"\nreturn msg;", "outputs": 1, "noerr": 0, "x": 250, "y": 240, "wires": [ [ "da533816.5ad09" ] ] }, { "id": "da533816.5ad09", "type": "tcp request", "z": "3d518e20.c6acaa", "server": "192.168.123.175", "port": "80", "out": "time", "splitc": "1000", "name": "GET Portal", "x": 430, "y": 240, "wires": [ [ "883e7370.d4efe" ] ] }, { "id": "883e7370.d4efe", "type": "function", "z": "3d518e20.c6acaa", "name": "Antwort", "func": "var String = msg.payload.toString('utf8');\nvar Position = String.indexOf(\"AUERSessionID=\");\nvar ID = String.substr(Position+14,15);\nglobal.set(\"SessionID\",ID);\nmsg = {};\nmsg.payload = ID;\nreturn msg", "outputs": "1", "noerr": 0, "x": 600, "y": 240, "wires": [ [ "c35174b2.6c5858" ] ] }, { "id": "72d50e57.9fc7f", "type": "function", "z": "3d518e20.c6acaa", "name": "Ausloggen", "func": "var ID = global.get(\"SessionID\");\nmsg.payload = \"POST /appclose HTTP/1.1\\r\\nHost: 192.168.123.175\\r\\nUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0\\r\\nAccept: text/javascript, text/html, application/xml, text/xml, */*\\r\\nAccept-Language: de,en-US;q=0.7,en;q=0.3\\r\\nAccept-Encoding: gzip, deflate\\r\\nReferer: http://192.168.123.175/statics/page_portal.htm\\r\\nX-Requested-With: XMLHttpRequest\\r\\nX-Prototype-Version: 1.7\\r\\nContent-Type: application/x-www-form-urlencoded; charset=UTF-8\\r\\nContent-Length: 0\\r\\nCookie: AUERSessionID=\"+ID+\"; AUERWEB_COOKIE=admin\\r\\nConnection: keep-alive\\r\\n\\r\\n\"\nreturn msg;", "outputs": 1, "noerr": 0, "x": 250, "y": 360, "wires": [ [ "255f0d77.e1e64a" ] ] }, { "id": "255f0d77.e1e64a", "type": "tcp request", "z": "3d518e20.c6acaa", "server": "192.168.123.175", "port": "80", "out": "time", "splitc": "1000", "name": "GET Portal", "x": 430, "y": 360, "wires": [ [ "1f31fe5a.ecf152" ] ] }, { "id": "1f31fe5a.ecf152", "type": "function", "z": "3d518e20.c6acaa", "name": "Antwort", "func": "msg.payload=msg.payload.toString('utf8')\nreturn msg;", "outputs": 1, "noerr": 0, "x": 600, "y": 360, "wires": [ [ "3478dd2e.1d0942" ] ] }, { "id": "3478dd2e.1d0942", "type": "debug", "z": "3d518e20.c6acaa", "name": "Ausloggen", "active": true, "console": "false", "complete": "payload", "x": 770, "y": 360, "wires": [] }, { "id": "c35174b2.6c5858", "type": "debug", "z": "3d518e20.c6acaa", "name": "AUERSessionID", "active": true, "console": "false", "complete": "payload", "x": 790, "y": 240, "wires": [] }, { "id": "77487479.ad3bfc", "type": "delay", "z": "3d518e20.c6acaa", "name": "", "pauseType": "delay", "timeout": "5", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 80, "y": 360, "wires": [ [ "72d50e57.9fc7f" ] ] }, { "id": "a8b0a81f.1a8bb8", "type": "ioBroker in", "z": "3d518e20.c6acaa", "name": "Umleitung", "topic": "knx.0.Geräte.Steckdosen.Handysteckdose", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "x": 140, "y": 440, "wires": [ [ "41f3a5b8.cee4fc", "e5ea983e.cb02f8" ] ] }, { "id": "fd5a40ac.3559", "type": "debug", "z": "3d518e20.c6acaa", "name": "AN", "active": true, "console": "false", "complete": "payload", "x": 630, "y": 440, "wires": [] }, { "id": "41f3a5b8.cee4fc", "type": "switch", "z": "3d518e20.c6acaa", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "1", "vt": "str" } ], "checkall": "true", "outputs": 1, "x": 450, "y": 440, "wires": [ [ "fd5a40ac.3559", "b58a0c9.94de77", "c987d40c.2a564", "2ea254ce.1a1ffc" ] ] }, { "id": "e5ea983e.cb02f8", "type": "switch", "z": "3d518e20.c6acaa", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "0", "vt": "str" } ], "checkall": "true", "outputs": 1, "x": 450, "y": 500, "wires": [ [ "881e0d14.16a9c", "5b9c1036.dd2748", "632ad43b.5cd71c", "77487479.ad3bfc" ] ] }, { "id": "881e0d14.16a9c", "type": "debug", "z": "3d518e20.c6acaa", "name": "AUS", "active": true, "console": "false", "complete": "payload", "x": 630, "y": 500, "wires": [] }, { "id": "5b9c1036.dd2748", "type": "delay", "z": "3d518e20.c6acaa", "name": "", "pauseType": "delay", "timeout": "2", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 80, "y": 300, "wires": [ [ "aec9e6c8.ae9d98" ] ] } !

      Edit by Dutchman 05-07: Code in code block gesetz zur besseren erkennbarkeit

      1 Reply Last reply Reply Quote 0
      • t.omalley
        t.omalley last edited by

        ICH BIN BEGEISTERT!!!

        Wir sind Auerswald Premium Partner und das ist für mich ein echter Mehrwert, den ich damit erzielen kann. Als erstes werde ich die Echtzeit-Anzeige der Amtsbelegung an unserem Zentralen-Monitor realisieren. Die Funktionstasten sind mir dazu zu ungenau. Über die SQL-History/Flow kann ich damit dann die Auslastung der Ämter zeitabhängig darstellen! Das ist ein Feature, das ich ansonsten nur mit sauteurer CTI-Anbindung und Auswertesoftware erzielt hätte.

        Danke für den Ansatz und die Arbeit, die uns hier ordentlich weiterbringt beim Ausbau unserer Sonderlösungen.

        T.Omalley

        1 Reply Last reply Reply Quote 0
        • F
          fuchs1978 last edited by

          Schön das es gefällt. Es wäre schön, wenn ihr auch euren Code veröffentlicht. Oder vielleicht erstellt ihr ja einen eigenen Adapter. Dafür reichte es bei mir leider nicht 😉

          Inzwischen habe ich noch die verpassten Anrufe auf dem ioBroker.

          1 Reply Last reply Reply Quote 0
          • J
            joesilver9 last edited by

            Könntest du deinen jetzigen Stand bitte noch mal posten?

            Gruß

            joesilver

            1 Reply Last reply Reply Quote 0
            • S
              snuflex last edited by

              Hallo,

              Ich lese mal mit. Wir sind selber im Besitz einer Auerswald Telefonanlage mit dem Modul Türöffner über das Telefon.

              Gibt es vielleicht eine Möglichkeit den Türöffner auf den iobroker zu legen ?

              Grüße. 😄

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              Support us

              ioBroker
              Community Adapters
              Donate

              728
              Online

              31.7k
              Users

              79.7k
              Topics

              1.3m
              Posts

              4
              5
              4233
              Loading More Posts
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes
              Reply
              • Reply as topic
              Log in to reply
              Community
              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
              The ioBroker Community 2014-2023
              logo