Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Node-Red
  5. HTTP-request von Mobotix T25

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    16
    1
    1.5k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    844

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.1k

HTTP-request von Mobotix T25

Geplant Angeheftet Gesperrt Verschoben Node-Red
22 Beiträge 2 Kommentatoren 1.9k Aufrufe 1 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • A ak68

    @mickym DANKE :)

    mickymM Offline
    mickymM Offline
    mickym
    Most Active
    schrieb am zuletzt editiert von mickym
    #21

    @ak68 War noch nicht fertig - zum Schluss prüfst dann nur noch das topic als Quelle ab:

    d4b6fbdb-21f5-4439-8ec9-3277a272f805-image.png

    594a3f5b-b27a-4bf6-b6d8-a42b809d9560-image.png

    Da muss man nichts Programmieren - geschweige denn mit Javascript function Nodes nutzen!!! - Vermeide das so gut es geht, nur so wirst Du die Vorteile des grafischen Programmierens zu schätzen wissen!!

    Hier mal der Flow zum Import:

    [
       {
           "id": "1f1888c3e6587da8",
           "type": "http response",
           "z": "289f539dcc33814e",
           "name": "",
           "statusCode": "",
           "headers": {},
           "x": 290,
           "y": 6560,
           "wires": []
       },
       {
           "id": "b5a3bf31f304a2c6",
           "type": "http in",
           "z": "289f539dcc33814e",
           "name": "",
           "url": "/mobotix",
           "method": "get",
           "upload": false,
           "swaggerDoc": "",
           "x": 110,
           "y": 6560,
           "wires": [
               [
                   "1f1888c3e6587da8",
                   "96a8f338668a17cc",
                   "b8ca3dc79ed7b5aa"
               ]
           ]
       },
       {
           "id": "96a8f338668a17cc",
           "type": "debug",
           "z": "289f539dcc33814e",
           "name": "JSON",
           "active": true,
           "tosidebar": true,
           "console": false,
           "tostatus": false,
           "complete": "payload",
           "targetType": "msg",
           "statusVal": "",
           "statusType": "auto",
           "x": 310,
           "y": 6480,
           "wires": []
       },
       {
           "id": "b8ca3dc79ed7b5aa",
           "type": "split",
           "z": "289f539dcc33814e",
           "name": "",
           "splt": "\\n",
           "spltType": "str",
           "arraySplt": 1,
           "arraySpltType": "len",
           "stream": false,
           "addname": "topic",
           "x": 290,
           "y": 6620,
           "wires": [
               [
                   "2dd2f27ca23a09ba",
                   "400ff1a9fc71116d"
               ]
           ]
       },
       {
           "id": "2dd2f27ca23a09ba",
           "type": "debug",
           "z": "289f539dcc33814e",
           "name": "Kommando",
           "active": true,
           "tosidebar": true,
           "console": false,
           "tostatus": false,
           "complete": "payload",
           "targetType": "msg",
           "statusVal": "",
           "statusType": "auto",
           "x": 430,
           "y": 6720,
           "wires": []
       },
       {
           "id": "400ff1a9fc71116d",
           "type": "switch",
           "z": "289f539dcc33814e",
           "name": "on/off",
           "property": "payload",
           "propertyType": "msg",
           "rules": [
               {
                   "t": "cont",
                   "v": "On",
                   "vt": "str"
               }
           ],
           "checkall": "true",
           "repair": false,
           "outputs": 1,
           "x": 450,
           "y": 6620,
           "wires": [
               [
                   "1bf95d49381f2202"
               ]
           ]
       },
       {
           "id": "1bf95d49381f2202",
           "type": "change",
           "z": "289f539dcc33814e",
           "name": "on => 1",
           "rules": [],
           "action": "",
           "property": "",
           "from": "",
           "to": "",
           "reg": false,
           "x": 600,
           "y": 6620,
           "wires": [
               [
                   "bbb69ba12e160990"
               ]
           ]
       },
       {
           "id": "bbb69ba12e160990",
           "type": "switch",
           "z": "289f539dcc33814e",
           "name": "Quelle",
           "property": "topic",
           "propertyType": "msg",
           "rules": [
               {
                   "t": "eq",
                   "v": "Praxis",
                   "vt": "str"
               },
               {
                   "t": "eq",
                   "v": "Privar",
                   "vt": "str"
               }
           ],
           "checkall": "true",
           "repair": false,
           "outputs": 2,
           "x": 750,
           "y": 6620,
           "wires": [
               [
                   "3963aa4398c2f5b1"
               ],
               [
                   "9d2b9bd63ed9d1be"
               ]
           ]
       },
       {
           "id": "3963aa4398c2f5b1",
           "type": "debug",
           "z": "289f539dcc33814e",
           "name": "Praxis",
           "active": true,
           "tosidebar": true,
           "console": false,
           "tostatus": false,
           "complete": "payload",
           "targetType": "msg",
           "statusVal": "",
           "statusType": "auto",
           "x": 910,
           "y": 6560,
           "wires": []
       },
       {
           "id": "9d2b9bd63ed9d1be",
           "type": "debug",
           "z": "289f539dcc33814e",
           "name": "Privat",
           "active": true,
           "tosidebar": true,
           "console": false,
           "tostatus": false,
           "complete": "payload",
           "targetType": "msg",
           "statusVal": "",
           "statusType": "auto",
           "x": 890,
           "y": 6640,
           "wires": []
       }
    ]
    

    Was Du in den Filtern machst, habe ich zwar nicht kapiert - aber das weißt Du ja besser.

    Du musst also Deine Logik etwas umdrehen.

    Über die payload verzweigst Du ERST auf verschiedene Kommandoarten zur Bearbeitung und zum Schluss teilst Du via topic auf das jeweilige Endgerät auf.

    Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

    A 1 Antwort Letzte Antwort
    0
    • mickymM mickym

      @ak68 War noch nicht fertig - zum Schluss prüfst dann nur noch das topic als Quelle ab:

      d4b6fbdb-21f5-4439-8ec9-3277a272f805-image.png

      594a3f5b-b27a-4bf6-b6d8-a42b809d9560-image.png

      Da muss man nichts Programmieren - geschweige denn mit Javascript function Nodes nutzen!!! - Vermeide das so gut es geht, nur so wirst Du die Vorteile des grafischen Programmierens zu schätzen wissen!!

      Hier mal der Flow zum Import:

      [
         {
             "id": "1f1888c3e6587da8",
             "type": "http response",
             "z": "289f539dcc33814e",
             "name": "",
             "statusCode": "",
             "headers": {},
             "x": 290,
             "y": 6560,
             "wires": []
         },
         {
             "id": "b5a3bf31f304a2c6",
             "type": "http in",
             "z": "289f539dcc33814e",
             "name": "",
             "url": "/mobotix",
             "method": "get",
             "upload": false,
             "swaggerDoc": "",
             "x": 110,
             "y": 6560,
             "wires": [
                 [
                     "1f1888c3e6587da8",
                     "96a8f338668a17cc",
                     "b8ca3dc79ed7b5aa"
                 ]
             ]
         },
         {
             "id": "96a8f338668a17cc",
             "type": "debug",
             "z": "289f539dcc33814e",
             "name": "JSON",
             "active": true,
             "tosidebar": true,
             "console": false,
             "tostatus": false,
             "complete": "payload",
             "targetType": "msg",
             "statusVal": "",
             "statusType": "auto",
             "x": 310,
             "y": 6480,
             "wires": []
         },
         {
             "id": "b8ca3dc79ed7b5aa",
             "type": "split",
             "z": "289f539dcc33814e",
             "name": "",
             "splt": "\\n",
             "spltType": "str",
             "arraySplt": 1,
             "arraySpltType": "len",
             "stream": false,
             "addname": "topic",
             "x": 290,
             "y": 6620,
             "wires": [
                 [
                     "2dd2f27ca23a09ba",
                     "400ff1a9fc71116d"
                 ]
             ]
         },
         {
             "id": "2dd2f27ca23a09ba",
             "type": "debug",
             "z": "289f539dcc33814e",
             "name": "Kommando",
             "active": true,
             "tosidebar": true,
             "console": false,
             "tostatus": false,
             "complete": "payload",
             "targetType": "msg",
             "statusVal": "",
             "statusType": "auto",
             "x": 430,
             "y": 6720,
             "wires": []
         },
         {
             "id": "400ff1a9fc71116d",
             "type": "switch",
             "z": "289f539dcc33814e",
             "name": "on/off",
             "property": "payload",
             "propertyType": "msg",
             "rules": [
                 {
                     "t": "cont",
                     "v": "On",
                     "vt": "str"
                 }
             ],
             "checkall": "true",
             "repair": false,
             "outputs": 1,
             "x": 450,
             "y": 6620,
             "wires": [
                 [
                     "1bf95d49381f2202"
                 ]
             ]
         },
         {
             "id": "1bf95d49381f2202",
             "type": "change",
             "z": "289f539dcc33814e",
             "name": "on => 1",
             "rules": [],
             "action": "",
             "property": "",
             "from": "",
             "to": "",
             "reg": false,
             "x": 600,
             "y": 6620,
             "wires": [
                 [
                     "bbb69ba12e160990"
                 ]
             ]
         },
         {
             "id": "bbb69ba12e160990",
             "type": "switch",
             "z": "289f539dcc33814e",
             "name": "Quelle",
             "property": "topic",
             "propertyType": "msg",
             "rules": [
                 {
                     "t": "eq",
                     "v": "Praxis",
                     "vt": "str"
                 },
                 {
                     "t": "eq",
                     "v": "Privar",
                     "vt": "str"
                 }
             ],
             "checkall": "true",
             "repair": false,
             "outputs": 2,
             "x": 750,
             "y": 6620,
             "wires": [
                 [
                     "3963aa4398c2f5b1"
                 ],
                 [
                     "9d2b9bd63ed9d1be"
                 ]
             ]
         },
         {
             "id": "3963aa4398c2f5b1",
             "type": "debug",
             "z": "289f539dcc33814e",
             "name": "Praxis",
             "active": true,
             "tosidebar": true,
             "console": false,
             "tostatus": false,
             "complete": "payload",
             "targetType": "msg",
             "statusVal": "",
             "statusType": "auto",
             "x": 910,
             "y": 6560,
             "wires": []
         },
         {
             "id": "9d2b9bd63ed9d1be",
             "type": "debug",
             "z": "289f539dcc33814e",
             "name": "Privat",
             "active": true,
             "tosidebar": true,
             "console": false,
             "tostatus": false,
             "complete": "payload",
             "targetType": "msg",
             "statusVal": "",
             "statusType": "auto",
             "x": 890,
             "y": 6640,
             "wires": []
         }
      ]
      

      Was Du in den Filtern machst, habe ich zwar nicht kapiert - aber das weißt Du ja besser.

      Du musst also Deine Logik etwas umdrehen.

      Über die payload verzweigst Du ERST auf verschiedene Kommandoarten zur Bearbeitung und zum Schluss teilst Du via topic auf das jeweilige Endgerät auf.

      A Offline
      A Offline
      ak68
      schrieb am zuletzt editiert von
      #22

      @mickym DANKE, hat geklappt, ist deutlich "schlanker"

      ioBroker auf QNAP TVS-473
      Visu und Logiken mit node-red
      Anbindung an KNX per openKNX

      1 Antwort Letzte Antwort
      0
      Antworten
      • In einem neuen Thema antworten
      Anmelden zum Antworten
      • Älteste zuerst
      • Neuste zuerst
      • Meiste Stimmen


      Support us

      ioBroker
      Community Adapters
      Donate

      637

      Online

      32.6k

      Benutzer

      82.1k

      Themen

      1.3m

      Beiträge
      Community
      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
      ioBroker Community 2014-2025
      logo
      • Anmelden

      • Du hast noch kein Konto? Registrieren

      • Anmelden oder registrieren, um zu suchen
      • Erster Beitrag
        Letzter Beitrag
      0
      • Home
      • Aktuell
      • Tags
      • Ungelesen 0
      • Kategorien
      • Unreplied
      • Beliebt
      • GitHub
      • Docu
      • Hilfe