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. ioBroker Allgemein
  4. Node Red Flow?

NEWS

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    22
    1
    1.1k

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

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    14
    1
    2.4k

Node Red Flow?

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
7 Beiträge 3 Kommentatoren 338 Aufrufe 3 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.
  • T Online
    T Online
    TimoWald
    schrieb am zuletzt editiert von
    #1

    Hallo, habe mir einen Flow gebastelt für eine Luxtronik Wärmepumpe.
    Leider bekomme ich nicht hin damit wenn der Mischer Auf ein True auf die GA x/x/1 gesendet wird und bei Zu ein True auf die GA x/x/2 gesendetr wird. Was mache ich falsch?

    a800c871-4a5b-4d03-adb0-decf0a94f6ee-grafik.png

    e650300e-ab34-4b03-916e-ad31913b5c94-grafik.png

    Marc BergM mickymM 3 Antworten Letzte Antwort
    0
    • T TimoWald

      Hallo, habe mir einen Flow gebastelt für eine Luxtronik Wärmepumpe.
      Leider bekomme ich nicht hin damit wenn der Mischer Auf ein True auf die GA x/x/1 gesendet wird und bei Zu ein True auf die GA x/x/2 gesendetr wird. Was mache ich falsch?

      a800c871-4a5b-4d03-adb0-decf0a94f6ee-grafik.png

      e650300e-ab34-4b03-916e-ad31913b5c94-grafik.png

      Marc BergM Offline
      Marc BergM Offline
      Marc Berg
      Most Active
      schrieb am zuletzt editiert von Marc Berg
      #2

      @timowald Eins vorab: mit KNX kenne ich mich Null aus, könnte also nur in Bezug auf Node Red helfen.

      Dein Problem habe ich allerdings nicht richtig verstehen können. Ist es so, dass Du das Attribut "Mischer 1 Auf" auswerten möchtest? Wenn dieses auf "Ein" steht, soll ein "True" an den Datenpunkt "openknx.0.Altbau.Wärempumpe....." ausgegeben werden?

      Am besten, Du postest mal das gesamte JSON-Object hier rein (mit "Code"-Tags).
      Im Debug-Fenster auf "Wert kopieren" klicken:

      525f9dd2-b0c9-48b4-bdfb-fbafa08c4e5d-grafik.png

      Außerdem noch ein Debug-Node hinter den Change-Node hängen und den Inhalt posten.

      NUC10I3+Ubuntu+Docker+ioBroker+influxDB2+Node Red+RabbitMQ+Grafana

      Pi-hole, Traefik, Checkmk, Conbee II+Zigbee2MQTT, ESPSomfy-RTS, LoRaWAN, Arduino, KiCad

      Benutzt das Voting im Beitrag, wenn er euch geholfen hat.

      T 1 Antwort Letzte Antwort
      0
      • Marc BergM Marc Berg

        @timowald Eins vorab: mit KNX kenne ich mich Null aus, könnte also nur in Bezug auf Node Red helfen.

        Dein Problem habe ich allerdings nicht richtig verstehen können. Ist es so, dass Du das Attribut "Mischer 1 Auf" auswerten möchtest? Wenn dieses auf "Ein" steht, soll ein "True" an den Datenpunkt "openknx.0.Altbau.Wärempumpe....." ausgegeben werden?

        Am besten, Du postest mal das gesamte JSON-Object hier rein (mit "Code"-Tags).
        Im Debug-Fenster auf "Wert kopieren" klicken:

        525f9dd2-b0c9-48b4-bdfb-fbafa08c4e5d-grafik.png

        Außerdem noch ein Debug-Node hinter den Change-Node hängen und den Inhalt posten.

        T Online
        T Online
        TimoWald
        schrieb am zuletzt editiert von
        #3

        @marc-berg es gibt doch wohl einen Baustein der das übersetzt, oder? Wenn EIN kommt soll er True senden und bei AUS False.

        Marc BergM 1 Antwort Letzte Antwort
        0
        • T TimoWald

          @marc-berg es gibt doch wohl einen Baustein der das übersetzt, oder? Wenn EIN kommt soll er True senden und bei AUS False.

          Marc BergM Offline
          Marc BergM Offline
          Marc Berg
          Most Active
          schrieb am zuletzt editiert von Marc Berg
          #4

          @timowald Im einfachsten Fall würde ich einen Change-Node mit folgendem Inhalt nutzen :

          671af6e8-5e5b-4c3f-83fd-562b93fd7e45-grafik.png

          Dieser liefert den Boolschen Wert "true", wenn der Payload = "Ein" ist. In allen anderen Fällen "false".

          54b5c079-c45e-4cfd-816f-ddf211dd93ea-grafik.png

          NUC10I3+Ubuntu+Docker+ioBroker+influxDB2+Node Red+RabbitMQ+Grafana

          Pi-hole, Traefik, Checkmk, Conbee II+Zigbee2MQTT, ESPSomfy-RTS, LoRaWAN, Arduino, KiCad

          Benutzt das Voting im Beitrag, wenn er euch geholfen hat.

          1 Antwort Letzte Antwort
          0
          • T TimoWald

            Hallo, habe mir einen Flow gebastelt für eine Luxtronik Wärmepumpe.
            Leider bekomme ich nicht hin damit wenn der Mischer Auf ein True auf die GA x/x/1 gesendet wird und bei Zu ein True auf die GA x/x/2 gesendetr wird. Was mache ich falsch?

            a800c871-4a5b-4d03-adb0-decf0a94f6ee-grafik.png

            e650300e-ab34-4b03-916e-ad31913b5c94-grafik.png

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

            @timowald Klar Du musst aber halt auch den ganzen Pfad kopieren.

            21113e03-ceee-41ed-8b08-ba111240161f-image.png

            oder wenn Du mit logischen Verknüpfungen und JSONATA arbeiten willst - musst Du halt Punktschreibweise verwenden:

            payload.Informationen.Ausgänge."Mischer 1 Auf"= "Ein" and payload.Informationen.Ausgänge."Mischer 1 Zu"= "Aus"
            

            Hier mal zum Spielen:

            [
               {
                   "id": "4d7aace11e8f5b36",
                   "type": "inject",
                   "z": "289f539dcc33814e",
                   "name": "",
                   "props": [
                       {
                           "p": "payload"
                       }
                   ],
                   "repeat": "",
                   "crontab": "",
                   "once": false,
                   "onceDelay": 0.1,
                   "topic": "",
                   "payload": "{\"Informationen\":{\"Ausgänge\":{\"Mischer 1 Auf\":\"Ein\",\"Mischer 1 Zu\":\"Aus\"}}}",
                   "payloadType": "json",
                   "x": 110,
                   "y": 3740,
                   "wires": [
                       [
                           "352fb21ead8a8473",
                           "31a75b6175205de2",
                           "ff23d096d336d839"
                       ]
                   ]
               },
               {
                   "id": "352fb21ead8a8473",
                   "type": "debug",
                   "z": "289f539dcc33814e",
                   "name": "Objekt",
                   "active": true,
                   "tosidebar": true,
                   "console": false,
                   "tostatus": false,
                   "complete": "payload",
                   "targetType": "msg",
                   "statusVal": "",
                   "statusType": "auto",
                   "x": 290,
                   "y": 3740,
                   "wires": []
               },
               {
                   "id": "31a75b6175205de2",
                   "type": "change",
                   "z": "289f539dcc33814e",
                   "name": "",
                   "rules": [
                       {
                           "t": "set",
                           "p": "payload",
                           "pt": "msg",
                           "to": "payload.Informationen[\"Ausgänge\"][\"Mischer 1 Auf\"]",
                           "tot": "msg"
                       },
                       {
                           "t": "change",
                           "p": "payload",
                           "pt": "msg",
                           "from": "Aus",
                           "fromt": "str",
                           "to": "true",
                           "tot": "bool"
                       },
                       {
                           "t": "change",
                           "p": "payload",
                           "pt": "msg",
                           "from": "Ein",
                           "fromt": "str",
                           "to": "false",
                           "tot": "bool"
                       }
                   ],
                   "action": "",
                   "property": "",
                   "from": "",
                   "to": "",
                   "reg": false,
                   "x": 310,
                   "y": 3800,
                   "wires": [
                       [
                           "6724d41c31ad033c"
                       ]
                   ]
               },
               {
                   "id": "6724d41c31ad033c",
                   "type": "debug",
                   "z": "289f539dcc33814e",
                   "name": "Mischer 1 Auf ",
                   "active": true,
                   "tosidebar": true,
                   "console": false,
                   "tostatus": false,
                   "complete": "payload",
                   "targetType": "msg",
                   "statusVal": "",
                   "statusType": "auto",
                   "x": 520,
                   "y": 3800,
                   "wires": []
               },
               {
                   "id": "ff23d096d336d839",
                   "type": "change",
                   "z": "289f539dcc33814e",
                   "name": "",
                   "rules": [
                       {
                           "t": "set",
                           "p": "payload",
                           "pt": "msg",
                           "to": "payload.Informationen.Ausgänge.\"Mischer 1 Auf\"= \"Ein\" and payload.Informationen.Ausgänge.\"Mischer 1 Zu\"= \"Aus\"",
                           "tot": "jsonata"
                       }
                   ],
                   "action": "",
                   "property": "",
                   "from": "",
                   "to": "",
                   "reg": false,
                   "x": 310,
                   "y": 3880,
                   "wires": [
                       [
                           "b4ec66a5c64ffa36"
                       ]
                   ]
               },
               {
                   "id": "b4ec66a5c64ffa36",
                   "type": "debug",
                   "z": "289f539dcc33814e",
                   "name": "logische Verknüpfung",
                   "active": true,
                   "tosidebar": true,
                   "console": false,
                   "tostatus": false,
                   "complete": "payload",
                   "targetType": "msg",
                   "statusVal": "",
                   "statusType": "auto",
                   "x": 540,
                   "y": 3880,
                   "wires": []
               }
            ]
            

            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.

            T 1 Antwort Letzte Antwort
            0
            • T TimoWald

              Hallo, habe mir einen Flow gebastelt für eine Luxtronik Wärmepumpe.
              Leider bekomme ich nicht hin damit wenn der Mischer Auf ein True auf die GA x/x/1 gesendet wird und bei Zu ein True auf die GA x/x/2 gesendetr wird. Was mache ich falsch?

              a800c871-4a5b-4d03-adb0-decf0a94f6ee-grafik.png

              e650300e-ab34-4b03-916e-ad31913b5c94-grafik.png

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

              @timowald sagte in Node Red Flow?:

              wenn der Mischer Auf ein True auf die GA x/x/1 gesendet wird und bei Zu ein True auf die GA x/x/2 gesendetr wird

              So was filtert man mit einer Switch Node aus.

              1be4b76d-48d4-4ade-897a-abaf0bc9cc3b-image.png

              [
                  {
                      "id": "4d7aace11e8f5b36",
                      "type": "inject",
                      "z": "289f539dcc33814e",
                      "name": "",
                      "props": [
                          {
                              "p": "payload"
                          }
                      ],
                      "repeat": "",
                      "crontab": "",
                      "once": false,
                      "onceDelay": 0.1,
                      "topic": "",
                      "payload": "{\"Informationen\":{\"Ausgänge\":{\"Mischer 1 Auf\":\"Ein\",\"Mischer 1 Zu\":\"Aus\"}}}",
                      "payloadType": "json",
                      "x": 110,
                      "y": 3740,
                      "wires": [
                          [
                              "94329c87bf22b307",
                              "59be3820bd94ba6f",
                              "a5dfd1a2adfa021c"
                          ]
                      ]
                  },
                  {
                      "id": "94329c87bf22b307",
                      "type": "switch",
                      "z": "289f539dcc33814e",
                      "name": "Mischer 1 Auf = Ein?",
                      "property": "payload.Informationen[\"Ausgänge\"][\"Mischer 1 Auf\"]",
                      "propertyType": "msg",
                      "rules": [
                          {
                              "t": "eq",
                              "v": "Ein",
                              "vt": "str"
                          }
                      ],
                      "checkall": "true",
                      "repair": false,
                      "outputs": 1,
                      "x": 340,
                      "y": 3740,
                      "wires": [
                          [
                              "306333963d9ad738"
                          ]
                      ]
                  },
                  {
                      "id": "59be3820bd94ba6f",
                      "type": "switch",
                      "z": "289f539dcc33814e",
                      "name": "Mischer 1 Zu = Ein?",
                      "property": "payload.Informationen[\"Ausgänge\"][\"Mischer 1 Zu\"]",
                      "propertyType": "msg",
                      "rules": [
                          {
                              "t": "eq",
                              "v": "Ein",
                              "vt": "str"
                          }
                      ],
                      "checkall": "true",
                      "repair": false,
                      "outputs": 1,
                      "x": 340,
                      "y": 3780,
                      "wires": [
                          [
                              "e45bc7a72ae656d3"
                          ]
                      ]
                  },
                  {
                      "id": "306333963d9ad738",
                      "type": "change",
                      "z": "289f539dcc33814e",
                      "name": "setze true",
                      "rules": [
                          {
                              "t": "set",
                              "p": "payload",
                              "pt": "msg",
                              "to": "true",
                              "tot": "bool"
                          }
                      ],
                      "action": "",
                      "property": "",
                      "from": "",
                      "to": "",
                      "reg": false,
                      "x": 540,
                      "y": 3740,
                      "wires": [
                          [
                              "fa32bfcdd83bca76"
                          ]
                      ]
                  },
                  {
                      "id": "e45bc7a72ae656d3",
                      "type": "change",
                      "z": "289f539dcc33814e",
                      "name": "setze true",
                      "rules": [
                          {
                              "t": "set",
                              "p": "payload",
                              "pt": "msg",
                              "to": "true",
                              "tot": "bool"
                          }
                      ],
                      "action": "",
                      "property": "",
                      "from": "",
                      "to": "",
                      "reg": false,
                      "x": 540,
                      "y": 3780,
                      "wires": [
                          [
                              "d62ae29d1432fe3d"
                          ]
                      ]
                  },
                  {
                      "id": "fa32bfcdd83bca76",
                      "type": "debug",
                      "z": "289f539dcc33814e",
                      "name": "zu GA x/x/1 ",
                      "active": true,
                      "tosidebar": true,
                      "console": false,
                      "tostatus": false,
                      "complete": "payload",
                      "targetType": "msg",
                      "statusVal": "",
                      "statusType": "auto",
                      "x": 730,
                      "y": 3740,
                      "wires": []
                  },
                  {
                      "id": "d62ae29d1432fe3d",
                      "type": "debug",
                      "z": "289f539dcc33814e",
                      "name": "zu GA x/x/2",
                      "active": true,
                      "tosidebar": true,
                      "console": false,
                      "tostatus": false,
                      "complete": "payload",
                      "targetType": "msg",
                      "statusVal": "",
                      "statusType": "auto",
                      "x": 730,
                      "y": 3780,
                      "wires": []
                  },
                  {
                      "id": "a5dfd1a2adfa021c",
                      "type": "debug",
                      "z": "289f539dcc33814e",
                      "name": "Input",
                      "active": true,
                      "tosidebar": true,
                      "console": false,
                      "tostatus": false,
                      "complete": "payload",
                      "targetType": "msg",
                      "statusVal": "",
                      "statusType": "auto",
                      "x": 290,
                      "y": 3680,
                      "wires": []
                  }
              ]
              

              Falls es Zwischenstadien gibt und Du willst sicher sein, dass die Kombination beider Werte stimmt, dann musst Du die Bedingungen als JSONATA in die Switch Node schreiben.

              cb7e9550-b24b-4372-8cf6-a8420c69d5eb-image.png

              [
                 {
                     "id": "4d7aace11e8f5b36",
                     "type": "inject",
                     "z": "289f539dcc33814e",
                     "name": "",
                     "props": [
                         {
                             "p": "payload"
                         }
                     ],
                     "repeat": "",
                     "crontab": "",
                     "once": false,
                     "onceDelay": 0.1,
                     "topic": "",
                     "payload": "{\"Informationen\":{\"Ausgänge\":{\"Mischer 1 Auf\":\"Aus\",\"Mischer 1 Zu\":\"Ein\"}}}",
                     "payloadType": "json",
                     "x": 110,
                     "y": 3740,
                     "wires": [
                         [
                             "94329c87bf22b307",
                             "a5dfd1a2adfa021c",
                             "09f43e212f1f6a63"
                         ]
                     ]
                 },
                 {
                     "id": "94329c87bf22b307",
                     "type": "switch",
                     "z": "289f539dcc33814e",
                     "name": "Mischer 1 Auf = Ein und Mischer 1 Zu = Aus ?",
                     "property": "payload.Informationen.Ausgänge.\"Mischer 1 Auf\" = \"Ein\" and payload.Informationen.Ausgänge.\"Mischer 1 Zu\" = \"Aus\"",
                     "propertyType": "jsonata",
                     "rules": [
                         {
                             "t": "true"
                         }
                     ],
                     "checkall": "true",
                     "repair": false,
                     "outputs": 1,
                     "x": 420,
                     "y": 3740,
                     "wires": [
                         [
                             "306333963d9ad738"
                         ]
                     ]
                 },
                 {
                     "id": "306333963d9ad738",
                     "type": "change",
                     "z": "289f539dcc33814e",
                     "name": "setze true",
                     "rules": [
                         {
                             "t": "set",
                             "p": "payload",
                             "pt": "msg",
                             "to": "true",
                             "tot": "bool"
                         }
                     ],
                     "action": "",
                     "property": "",
                     "from": "",
                     "to": "",
                     "reg": false,
                     "x": 700,
                     "y": 3740,
                     "wires": [
                         [
                             "fa32bfcdd83bca76"
                         ]
                     ]
                 },
                 {
                     "id": "e45bc7a72ae656d3",
                     "type": "change",
                     "z": "289f539dcc33814e",
                     "name": "setze true",
                     "rules": [
                         {
                             "t": "set",
                             "p": "payload",
                             "pt": "msg",
                             "to": "true",
                             "tot": "bool"
                         }
                     ],
                     "action": "",
                     "property": "",
                     "from": "",
                     "to": "",
                     "reg": false,
                     "x": 700,
                     "y": 3780,
                     "wires": [
                         [
                             "d62ae29d1432fe3d"
                         ]
                     ]
                 },
                 {
                     "id": "fa32bfcdd83bca76",
                     "type": "debug",
                     "z": "289f539dcc33814e",
                     "name": "zu GA x/x/1 ",
                     "active": true,
                     "tosidebar": true,
                     "console": false,
                     "tostatus": false,
                     "complete": "payload",
                     "targetType": "msg",
                     "statusVal": "",
                     "statusType": "auto",
                     "x": 890,
                     "y": 3740,
                     "wires": []
                 },
                 {
                     "id": "d62ae29d1432fe3d",
                     "type": "debug",
                     "z": "289f539dcc33814e",
                     "name": "zu GA x/x/2",
                     "active": true,
                     "tosidebar": true,
                     "console": false,
                     "tostatus": false,
                     "complete": "payload",
                     "targetType": "msg",
                     "statusVal": "",
                     "statusType": "auto",
                     "x": 890,
                     "y": 3780,
                     "wires": []
                 },
                 {
                     "id": "a5dfd1a2adfa021c",
                     "type": "debug",
                     "z": "289f539dcc33814e",
                     "name": "Input",
                     "active": true,
                     "tosidebar": true,
                     "console": false,
                     "tostatus": false,
                     "complete": "payload",
                     "targetType": "msg",
                     "statusVal": "",
                     "statusType": "auto",
                     "x": 290,
                     "y": 3680,
                     "wires": []
                 },
                 {
                     "id": "09f43e212f1f6a63",
                     "type": "switch",
                     "z": "289f539dcc33814e",
                     "name": "Mischer 1 Auf = Aus und Mischer 1 Zu = Ein ?",
                     "property": "payload.Informationen.Ausgänge.\"Mischer 1 Auf\" = \"Aus\" and payload.Informationen.Ausgänge.\"Mischer 1 Zu\" = \"Ein\"",
                     "propertyType": "jsonata",
                     "rules": [
                         {
                             "t": "true"
                         }
                     ],
                     "checkall": "true",
                     "repair": false,
                     "outputs": 1,
                     "x": 420,
                     "y": 3780,
                     "wires": [
                         [
                             "e45bc7a72ae656d3"
                         ]
                     ]
                 }
              ]
              

              Das Ganze geht natürlich auch mit einer Switch Node und 2 Ausgängen:

              964a59b1-e6e8-41ca-bad8-e6f1804082cc-image.png

              d6cd16f9-c92a-4a53-81b0-ad95190346cb-image.png

              [
                 {
                     "id": "4d7aace11e8f5b36",
                     "type": "inject",
                     "z": "289f539dcc33814e",
                     "name": "",
                     "props": [
                         {
                             "p": "payload"
                         }
                     ],
                     "repeat": "",
                     "crontab": "",
                     "once": false,
                     "onceDelay": 0.1,
                     "topic": "",
                     "payload": "{\"Informationen\":{\"Ausgänge\":{\"Mischer 1 Auf\":\"Ein\",\"Mischer 1 Zu\":\"Aus\"}}}",
                     "payloadType": "json",
                     "x": 110,
                     "y": 3740,
                     "wires": [
                         [
                             "94329c87bf22b307",
                             "a5dfd1a2adfa021c"
                         ]
                     ]
                 },
                 {
                     "id": "94329c87bf22b307",
                     "type": "switch",
                     "z": "289f539dcc33814e",
                     "name": "Mischer 1 Auf = ? und Mischer 1 Zu = ?",
                     "property": "payload",
                     "propertyType": "msg",
                     "rules": [
                         {
                             "t": "jsonata_exp",
                             "v": "payload.Informationen.Ausgänge.\"Mischer 1 Auf\" = \"Ein\" and payload.Informationen.Ausgänge.\"Mischer 1 Zu\" = \"Aus\"",
                             "vt": "jsonata"
                         },
                         {
                             "t": "jsonata_exp",
                             "v": "payload.Informationen.Ausgänge.\"Mischer 1 Auf\" = \"Aus\" and payload.Informationen.Ausgänge.\"Mischer 1 Zu\" = \"Ein\"",
                             "vt": "jsonata"
                         }
                     ],
                     "checkall": "true",
                     "repair": false,
                     "outputs": 2,
                     "x": 400,
                     "y": 3760,
                     "wires": [
                         [
                             "306333963d9ad738"
                         ],
                         [
                             "e45bc7a72ae656d3"
                         ]
                     ]
                 },
                 {
                     "id": "306333963d9ad738",
                     "type": "change",
                     "z": "289f539dcc33814e",
                     "name": "setze true",
                     "rules": [
                         {
                             "t": "set",
                             "p": "payload",
                             "pt": "msg",
                             "to": "true",
                             "tot": "bool"
                         }
                     ],
                     "action": "",
                     "property": "",
                     "from": "",
                     "to": "",
                     "reg": false,
                     "x": 700,
                     "y": 3740,
                     "wires": [
                         [
                             "fa32bfcdd83bca76"
                         ]
                     ]
                 },
                 {
                     "id": "e45bc7a72ae656d3",
                     "type": "change",
                     "z": "289f539dcc33814e",
                     "name": "setze true",
                     "rules": [
                         {
                             "t": "set",
                             "p": "payload",
                             "pt": "msg",
                             "to": "true",
                             "tot": "bool"
                         }
                     ],
                     "action": "",
                     "property": "",
                     "from": "",
                     "to": "",
                     "reg": false,
                     "x": 700,
                     "y": 3780,
                     "wires": [
                         [
                             "d62ae29d1432fe3d"
                         ]
                     ]
                 },
                 {
                     "id": "fa32bfcdd83bca76",
                     "type": "debug",
                     "z": "289f539dcc33814e",
                     "name": "zu GA x/x/1 ",
                     "active": true,
                     "tosidebar": true,
                     "console": false,
                     "tostatus": false,
                     "complete": "payload",
                     "targetType": "msg",
                     "statusVal": "",
                     "statusType": "auto",
                     "x": 890,
                     "y": 3740,
                     "wires": []
                 },
                 {
                     "id": "d62ae29d1432fe3d",
                     "type": "debug",
                     "z": "289f539dcc33814e",
                     "name": "zu GA x/x/2",
                     "active": true,
                     "tosidebar": true,
                     "console": false,
                     "tostatus": false,
                     "complete": "payload",
                     "targetType": "msg",
                     "statusVal": "",
                     "statusType": "auto",
                     "x": 890,
                     "y": 3780,
                     "wires": []
                 },
                 {
                     "id": "a5dfd1a2adfa021c",
                     "type": "debug",
                     "z": "289f539dcc33814e",
                     "name": "Input",
                     "active": true,
                     "tosidebar": true,
                     "console": false,
                     "tostatus": false,
                     "complete": "payload",
                     "targetType": "msg",
                     "statusVal": "",
                     "statusType": "auto",
                     "x": 290,
                     "y": 3680,
                     "wires": []
                 }
              ]
              

              So nun sollten wir die wichtigsten Kombis durch haben. In dem Fall brauchst Du eine switch Node - und kannst das nicht mit einer Change Node abhandeln, weil Du ja in jedem Fall true setzen willst, aber zustandsabhängig nur an einen bestimmten Ausgang. Anderenfalls werden ja immer alle Ausgänge gleichzeitig bedient. Das kann man natürlich auch machen - dann nimmst halt das wie @Marc-Berg geschrieben hat und hängst halt die Change Nodes - 1:1 an.

              957ec0ec-0285-43bc-8265-337baf073978-image.png

              In diesem Fall wird nach jeder Nachricht eine Ausgabe geschrieben.

              [
                 {
                     "id": "4d7aace11e8f5b36",
                     "type": "inject",
                     "z": "289f539dcc33814e",
                     "name": "",
                     "props": [
                         {
                             "p": "payload"
                         }
                     ],
                     "repeat": "",
                     "crontab": "",
                     "once": false,
                     "onceDelay": 0.1,
                     "topic": "",
                     "payload": "{\"Informationen\":{\"Ausgänge\":{\"Mischer 1 Auf\":\"Aus\",\"Mischer 1 Zu\":\"Ein\"}}}",
                     "payloadType": "json",
                     "x": 110,
                     "y": 3740,
                     "wires": [
                         [
                             "94329c87bf22b307",
                             "a5dfd1a2adfa021c",
                             "b142cb372480d70e",
                             "ba1182821e3c9b56"
                         ]
                     ]
                 },
                 {
                     "id": "94329c87bf22b307",
                     "type": "switch",
                     "z": "289f539dcc33814e",
                     "name": "Mischer 1 Auf = ? und Mischer 1 Zu = ?",
                     "property": "payload",
                     "propertyType": "msg",
                     "rules": [
                         {
                             "t": "jsonata_exp",
                             "v": "payload.Informationen.Ausgänge.\"Mischer 1 Auf\" = \"Ein\" and payload.Informationen.Ausgänge.\"Mischer 1 Zu\" = \"Aus\"",
                             "vt": "jsonata"
                         },
                         {
                             "t": "jsonata_exp",
                             "v": "payload.Informationen.Ausgänge.\"Mischer 1 Auf\" = \"Aus\" and payload.Informationen.Ausgänge.\"Mischer 1 Zu\" = \"Ein\"",
                             "vt": "jsonata"
                         }
                     ],
                     "checkall": "true",
                     "repair": false,
                     "outputs": 2,
                     "x": 400,
                     "y": 3760,
                     "wires": [
                         [
                             "306333963d9ad738"
                         ],
                         [
                             "e45bc7a72ae656d3"
                         ]
                     ]
                 },
                 {
                     "id": "306333963d9ad738",
                     "type": "change",
                     "z": "289f539dcc33814e",
                     "name": "setze true",
                     "rules": [
                         {
                             "t": "set",
                             "p": "payload",
                             "pt": "msg",
                             "to": "true",
                             "tot": "bool"
                         }
                     ],
                     "action": "",
                     "property": "",
                     "from": "",
                     "to": "",
                     "reg": false,
                     "x": 700,
                     "y": 3740,
                     "wires": [
                         [
                             "fa32bfcdd83bca76"
                         ]
                     ]
                 },
                 {
                     "id": "e45bc7a72ae656d3",
                     "type": "change",
                     "z": "289f539dcc33814e",
                     "name": "setze true",
                     "rules": [
                         {
                             "t": "set",
                             "p": "payload",
                             "pt": "msg",
                             "to": "true",
                             "tot": "bool"
                         }
                     ],
                     "action": "",
                     "property": "",
                     "from": "",
                     "to": "",
                     "reg": false,
                     "x": 700,
                     "y": 3780,
                     "wires": [
                         [
                             "d62ae29d1432fe3d"
                         ]
                     ]
                 },
                 {
                     "id": "fa32bfcdd83bca76",
                     "type": "debug",
                     "z": "289f539dcc33814e",
                     "name": "zu GA x/x/1 ",
                     "active": false,
                     "tosidebar": true,
                     "console": false,
                     "tostatus": false,
                     "complete": "payload",
                     "targetType": "msg",
                     "statusVal": "",
                     "statusType": "auto",
                     "x": 890,
                     "y": 3740,
                     "wires": []
                 },
                 {
                     "id": "d62ae29d1432fe3d",
                     "type": "debug",
                     "z": "289f539dcc33814e",
                     "name": "zu GA x/x/2",
                     "active": false,
                     "tosidebar": true,
                     "console": false,
                     "tostatus": false,
                     "complete": "payload",
                     "targetType": "msg",
                     "statusVal": "",
                     "statusType": "auto",
                     "x": 890,
                     "y": 3780,
                     "wires": []
                 },
                 {
                     "id": "a5dfd1a2adfa021c",
                     "type": "debug",
                     "z": "289f539dcc33814e",
                     "name": "Input",
                     "active": true,
                     "tosidebar": true,
                     "console": false,
                     "tostatus": false,
                     "complete": "payload",
                     "targetType": "msg",
                     "statusVal": "",
                     "statusType": "auto",
                     "x": 290,
                     "y": 3680,
                     "wires": []
                 },
                 {
                     "id": "b142cb372480d70e",
                     "type": "change",
                     "z": "289f539dcc33814e",
                     "name": "\"Mischer 1 Auf\" = \"Ein\" ",
                     "rules": [
                         {
                             "t": "set",
                             "p": "payload",
                             "pt": "msg",
                             "to": "payload.Informationen.Ausgänge.\"Mischer 1 Auf\" = \"Ein\" ",
                             "tot": "jsonata"
                         }
                     ],
                     "action": "",
                     "property": "",
                     "from": "",
                     "to": "",
                     "reg": false,
                     "x": 340,
                     "y": 3860,
                     "wires": [
                         [
                             "1ef4d92011293911"
                         ]
                     ]
                 },
                 {
                     "id": "ba1182821e3c9b56",
                     "type": "change",
                     "z": "289f539dcc33814e",
                     "name": "\"Mischer 1 Zu\" = \"Ein\"",
                     "rules": [
                         {
                             "t": "set",
                             "p": "payload",
                             "pt": "msg",
                             "to": " payload.Informationen.Ausgänge.\"Mischer 1 Zu\" = \"Ein\"",
                             "tot": "jsonata"
                         }
                     ],
                     "action": "",
                     "property": "",
                     "from": "",
                     "to": "",
                     "reg": false,
                     "x": 340,
                     "y": 3900,
                     "wires": [
                         [
                             "a04d4beac5b32ac8"
                         ]
                     ]
                 },
                 {
                     "id": "1ef4d92011293911",
                     "type": "debug",
                     "z": "289f539dcc33814e",
                     "name": "zu GA x/x/1 ",
                     "active": true,
                     "tosidebar": true,
                     "console": false,
                     "tostatus": false,
                     "complete": "payload",
                     "targetType": "msg",
                     "statusVal": "",
                     "statusType": "auto",
                     "x": 550,
                     "y": 3860,
                     "wires": []
                 },
                 {
                     "id": "a04d4beac5b32ac8",
                     "type": "debug",
                     "z": "289f539dcc33814e",
                     "name": "zu GA x/x/2",
                     "active": true,
                     "tosidebar": true,
                     "console": false,
                     "tostatus": false,
                     "complete": "payload",
                     "targetType": "msg",
                     "statusVal": "",
                     "statusType": "auto",
                     "x": 550,
                     "y": 3900,
                     "wires": []
                 }
              ]
              

              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.

              1 Antwort Letzte Antwort
              0
              • mickymM mickym

                @timowald Klar Du musst aber halt auch den ganzen Pfad kopieren.

                21113e03-ceee-41ed-8b08-ba111240161f-image.png

                oder wenn Du mit logischen Verknüpfungen und JSONATA arbeiten willst - musst Du halt Punktschreibweise verwenden:

                payload.Informationen.Ausgänge."Mischer 1 Auf"= "Ein" and payload.Informationen.Ausgänge."Mischer 1 Zu"= "Aus"
                

                Hier mal zum Spielen:

                [
                   {
                       "id": "4d7aace11e8f5b36",
                       "type": "inject",
                       "z": "289f539dcc33814e",
                       "name": "",
                       "props": [
                           {
                               "p": "payload"
                           }
                       ],
                       "repeat": "",
                       "crontab": "",
                       "once": false,
                       "onceDelay": 0.1,
                       "topic": "",
                       "payload": "{\"Informationen\":{\"Ausgänge\":{\"Mischer 1 Auf\":\"Ein\",\"Mischer 1 Zu\":\"Aus\"}}}",
                       "payloadType": "json",
                       "x": 110,
                       "y": 3740,
                       "wires": [
                           [
                               "352fb21ead8a8473",
                               "31a75b6175205de2",
                               "ff23d096d336d839"
                           ]
                       ]
                   },
                   {
                       "id": "352fb21ead8a8473",
                       "type": "debug",
                       "z": "289f539dcc33814e",
                       "name": "Objekt",
                       "active": true,
                       "tosidebar": true,
                       "console": false,
                       "tostatus": false,
                       "complete": "payload",
                       "targetType": "msg",
                       "statusVal": "",
                       "statusType": "auto",
                       "x": 290,
                       "y": 3740,
                       "wires": []
                   },
                   {
                       "id": "31a75b6175205de2",
                       "type": "change",
                       "z": "289f539dcc33814e",
                       "name": "",
                       "rules": [
                           {
                               "t": "set",
                               "p": "payload",
                               "pt": "msg",
                               "to": "payload.Informationen[\"Ausgänge\"][\"Mischer 1 Auf\"]",
                               "tot": "msg"
                           },
                           {
                               "t": "change",
                               "p": "payload",
                               "pt": "msg",
                               "from": "Aus",
                               "fromt": "str",
                               "to": "true",
                               "tot": "bool"
                           },
                           {
                               "t": "change",
                               "p": "payload",
                               "pt": "msg",
                               "from": "Ein",
                               "fromt": "str",
                               "to": "false",
                               "tot": "bool"
                           }
                       ],
                       "action": "",
                       "property": "",
                       "from": "",
                       "to": "",
                       "reg": false,
                       "x": 310,
                       "y": 3800,
                       "wires": [
                           [
                               "6724d41c31ad033c"
                           ]
                       ]
                   },
                   {
                       "id": "6724d41c31ad033c",
                       "type": "debug",
                       "z": "289f539dcc33814e",
                       "name": "Mischer 1 Auf ",
                       "active": true,
                       "tosidebar": true,
                       "console": false,
                       "tostatus": false,
                       "complete": "payload",
                       "targetType": "msg",
                       "statusVal": "",
                       "statusType": "auto",
                       "x": 520,
                       "y": 3800,
                       "wires": []
                   },
                   {
                       "id": "ff23d096d336d839",
                       "type": "change",
                       "z": "289f539dcc33814e",
                       "name": "",
                       "rules": [
                           {
                               "t": "set",
                               "p": "payload",
                               "pt": "msg",
                               "to": "payload.Informationen.Ausgänge.\"Mischer 1 Auf\"= \"Ein\" and payload.Informationen.Ausgänge.\"Mischer 1 Zu\"= \"Aus\"",
                               "tot": "jsonata"
                           }
                       ],
                       "action": "",
                       "property": "",
                       "from": "",
                       "to": "",
                       "reg": false,
                       "x": 310,
                       "y": 3880,
                       "wires": [
                           [
                               "b4ec66a5c64ffa36"
                           ]
                       ]
                   },
                   {
                       "id": "b4ec66a5c64ffa36",
                       "type": "debug",
                       "z": "289f539dcc33814e",
                       "name": "logische Verknüpfung",
                       "active": true,
                       "tosidebar": true,
                       "console": false,
                       "tostatus": false,
                       "complete": "payload",
                       "targetType": "msg",
                       "statusVal": "",
                       "statusType": "auto",
                       "x": 540,
                       "y": 3880,
                       "wires": []
                   }
                ]
                

                T Online
                T Online
                TimoWald
                schrieb am zuletzt editiert von
                #7

                @mickym hallo, so habe ich es lösen können. Vielen Dank, ihr seid die besten.

                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
                FAQ Cloud / IOT
                HowTo: Node.js-Update
                HowTo: Backup/Restore
                Downloads
                BLOG

                748

                Online

                32.5k

                Benutzer

                81.6k

                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