Skip to content
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • 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

  • Default (No Skin)
  • No Skin
Collapse
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Node-Red
  5. HTTP-request von Mobotix T25

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.0k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.8k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.0k

HTTP-request von Mobotix T25

HTTP-request von Mobotix T25

Scheduled Pinned Locked Moved Node-Red
22 Posts 2 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A ak68

    @mickym DANKE 🙂

    mickymM Online
    mickymM Online
    mickym
    Most Active
    wrote on last edited by 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 Reply Last reply
    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
      wrote on last edited by
      #22

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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      Support us

      ioBroker
      Community Adapters
      Donate

      602

      Online

      32.4k

      Users

      81.3k

      Topics

      1.3m

      Posts
      Community
      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
      ioBroker Community 2014-2025
      logo
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Recent
      • Tags
      • Unread 0
      • Categories
      • Unreplied
      • Popular
      • GitHub
      • Docu
      • Hilfe