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. Node Red DP erstellen

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Node Red DP erstellen

    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dos1973 @mickym last edited by

      @mickym

      das ist jetzt der neue flow.

      Bildschirmfoto 2023-12-17 um 15.12.15.png

      es passt aber nicht??
      Bildschirmfoto 2023-12-17 um 15.11.10.png

      mickym 1 Reply Last reply Reply Quote 0
      • mickym
        mickym Most Active @dos1973 last edited by mickym

        @dos1973 Klemm bitte nochmal die iobroker out Node ab. Lösche bitte in den Objekten nochmal den Baum Shelly-BLE-Geräte und poste nun die Einzelnachrichten im Debugfenster. Vielleicht auch den Browser refreshen -

        D 1 Reply Last reply Reply Quote 0
        • D
          dos1973 @mickym last edited by

          @mickym

          mach icg gleich.

          aber schau mal hier.

          Bildschirmfoto 2023-12-17 um 15.16.54.png

          ich triggere das manuell und das kommt an. hier fehlt do schon die mac als übergeordneter folder

          Bildschirmfoto 2023-12-17 um 15.17.45.png

          mickym 1 Reply Last reply Reply Quote 0
          • mickym
            mickym Most Active @dos1973 last edited by

            @dos1973 Oh ich sehe - mein Fehler - ich bin heute anscheinend nicht fit.

            D 1 Reply Last reply Reply Quote 1
            • D
              dos1973 @mickym last edited by

              @mickym
              ✌

              1 Reply Last reply Reply Quote 0
              • mickym
                mickym Most Active last edited by

                So nun kommen bei mir aber die topics mit der mac Adresse raus:

                e9ba082b-8759-43dd-84bb-07b4629759b2-image.png

                c5f3aebf-170a-481e-99ea-5e82955ac4d0-image.png

                Also das Ganze nochmal zum Import - erst mit der Inject Node testen:

                [
                   {
                       "id": "85395d3e7d299c24",
                       "type": "inject",
                       "z": "517cd16e4d7e6ae4",
                       "name": "Eingangswerte",
                       "props": [
                           {
                               "p": "input",
                               "v": "{\"scriptVersion\":\"0.1\",\"src\":\"shellies/Pro3_EM\",\"srcBle\":{\"mac\":\"b4:35:22:fe:56:ad\"},\"payload\":{\"encryption\":false,\"BTHome_version\":2,\"pid\":253,\"battery\":100,\"button\":2,\"rssi\":-79,\"address\":\"b4:35:22:fe:56:ad\"}}",
                               "vt": "json"
                           }
                       ],
                       "repeat": "",
                       "crontab": "",
                       "once": false,
                       "onceDelay": 0.1,
                       "topic": "",
                       "x": 180,
                       "y": 780,
                       "wires": [
                           [
                               "9ac0c724ea2285d2",
                               "71622aabe05c1ac5"
                           ]
                       ]
                   },
                   {
                       "id": "9ac0c724ea2285d2",
                       "type": "change",
                       "z": "517cd16e4d7e6ae4",
                       "name": "konstruiere OriginalObjekt",
                       "rules": [
                           {
                               "t": "move",
                               "p": "input.scriptVersion",
                               "pt": "msg",
                               "to": "scriptVersion",
                               "tot": "msg"
                           },
                           {
                               "t": "move",
                               "p": "input.src",
                               "pt": "msg",
                               "to": "src",
                               "tot": "msg"
                           },
                           {
                               "t": "move",
                               "p": "input.srcBle",
                               "pt": "msg",
                               "to": "srcBle",
                               "tot": "msg"
                           },
                           {
                               "t": "move",
                               "p": "input.payload",
                               "pt": "msg",
                               "to": "payload",
                               "tot": "msg"
                           },
                           {
                               "t": "delete",
                               "p": "input",
                               "pt": "msg"
                           }
                       ],
                       "action": "",
                       "property": "",
                       "from": "",
                       "to": "",
                       "reg": false,
                       "x": 410,
                       "y": 780,
                       "wires": [
                           [
                               "dbf5c78009b4f581",
                               "f19cc6f7778c2633"
                           ]
                       ]
                   },
                   {
                       "id": "71622aabe05c1ac5",
                       "type": "debug",
                       "z": "517cd16e4d7e6ae4",
                       "name": "Eingabewert",
                       "active": false,
                       "tosidebar": true,
                       "console": false,
                       "tostatus": false,
                       "complete": "true",
                       "targetType": "full",
                       "statusVal": "",
                       "statusType": "auto",
                       "x": 370,
                       "y": 740,
                       "wires": []
                   },
                   {
                       "id": "dbf5c78009b4f581",
                       "type": "debug",
                       "z": "517cd16e4d7e6ae4",
                       "name": "Originalobjekt",
                       "active": true,
                       "tosidebar": true,
                       "console": false,
                       "tostatus": false,
                       "complete": "true",
                       "targetType": "full",
                       "statusVal": "",
                       "statusType": "auto",
                       "x": 620,
                       "y": 740,
                       "wires": []
                   },
                   {
                       "id": "831875c3be845a77",
                       "type": "split",
                       "z": "517cd16e4d7e6ae4",
                       "name": "teile Objekt in Einzelnachrichten",
                       "splt": "\\n",
                       "spltType": "str",
                       "arraySplt": 1,
                       "arraySpltType": "len",
                       "stream": false,
                       "addname": "topic",
                       "x": 790,
                       "y": 840,
                       "wires": [
                           [
                               "4e6bbe32dfcc7c5d"
                           ]
                       ]
                   },
                   {
                       "id": "f19cc6f7778c2633",
                       "type": "change",
                       "z": "517cd16e4d7e6ae4",
                       "name": "Ändere srcBle",
                       "rules": [
                           {
                               "t": "change",
                               "p": "srcBle.mac",
                               "pt": "msg",
                               "from": ":",
                               "fromt": "str",
                               "to": "-",
                               "tot": "str"
                           },
                           {
                               "t": "set",
                               "p": "srcBle",
                               "pt": "msg",
                               "to": "\"0_userdata.0.Wohnung.Status.Shelly.Shelly-BLE-Geraete.\" & srcBle.mac",
                               "tot": "jsonata"
                           }
                       ],
                       "action": "",
                       "property": "",
                       "from": "",
                       "to": "",
                       "reg": false,
                       "x": 240,
                       "y": 840,
                       "wires": [
                           [
                               "c1cac0b6dc174190"
                           ]
                       ]
                   },
                   {
                       "id": "c1cac0b6dc174190",
                       "type": "change",
                       "z": "517cd16e4d7e6ae4",
                       "name": "Entferne payload-Eigenschaften",
                       "rules": [
                           {
                               "t": "delete",
                               "p": "payload.address",
                               "pt": "msg"
                           }
                       ],
                       "action": "",
                       "property": "",
                       "from": "",
                       "to": "",
                       "reg": false,
                       "x": 490,
                       "y": 840,
                       "wires": [
                           [
                               "831875c3be845a77"
                           ]
                       ]
                   },
                   {
                       "id": "4e6bbe32dfcc7c5d",
                       "type": "change",
                       "z": "517cd16e4d7e6ae4",
                       "name": "erstelle topic",
                       "rules": [
                           {
                               "t": "set",
                               "p": "topic",
                               "pt": "msg",
                               "to": "srcBle & \".\" & topic",
                               "tot": "jsonata"
                           }
                       ],
                       "action": "",
                       "property": "",
                       "from": "",
                       "to": "",
                       "reg": false,
                       "x": 1030,
                       "y": 840,
                       "wires": [
                           [
                               "15bab36dddd209ed",
                               "474c1b7582b85047"
                           ]
                       ]
                   },
                   {
                       "id": "474c1b7582b85047",
                       "type": "debug",
                       "z": "517cd16e4d7e6ae4",
                       "name": "Einzelnachrichten",
                       "active": true,
                       "tosidebar": true,
                       "console": false,
                       "tostatus": false,
                       "complete": "payload",
                       "targetType": "msg",
                       "statusVal": "",
                       "statusType": "auto",
                       "x": 1230,
                       "y": 800,
                       "wires": []
                   },
                   {
                       "id": "15bab36dddd209ed",
                       "type": "ioBroker out",
                       "z": "517cd16e4d7e6ae4",
                       "name": "schreibe Werte",
                       "topic": "",
                       "ack": "true",
                       "autoCreate": "true",
                       "stateName": "",
                       "role": "",
                       "payloadType": "",
                       "readonly": "false",
                       "stateUnit": "",
                       "stateMin": "",
                       "stateMax": "",
                       "x": 1220,
                       "y": 840,
                       "wires": []
                   }
                ]
                

                1 Reply Last reply Reply Quote 0
                • mickym
                  mickym Most Active last edited by

                  Und wenn es mit der Inject Node geht und mit den Nachrichten aus dem mqtt-In Node nicht - dann bitte mal genau schauen ,ob Du noch Unterschiede im konstruierten Nachrichtenobjekt mit der Inject Node und der aus der mqtt-In Node feststellen kannst.

                  D 1 Reply Last reply Reply Quote 0
                  • D
                    dos1973 @mickym last edited by

                    @mickym
                    ja mit inject gehts, mit der nachrichten nicht

                    der untere ist mit inject, der obere mit der nachricht
                    Bildschirmfoto 2023-12-17 um 15.37.04.png

                    mickym 1 Reply Last reply Reply Quote 0
                    • mickym
                      mickym Most Active @dos1973 last edited by mickym

                      @dos1973 Ah ich sehe schon das ganze ist ein payload Objekt - OK ich ändere es wird einfacher.

                      997ed1f0-277c-476e-8bea-5662b0f2fb45-image.png

                      Ich dachte Du hättest mir das komplette Nachrichtenobjekt kopiert. Na dann wird es einfacher - warte ich stelle um .....

                      Ich weiß ich müsste genauer hinschauen - aber ist einfach schwierig. 😉 Sorry, sorry.

                      mickym 1 Reply Last reply Reply Quote 0
                      • mickym
                        mickym Most Active @mickym last edited by mickym

                        So nun sollte es aber:

                        88e7a843-c9d4-494f-b340-8ba524f374e2-image.png

                        Hier ein neuer Import. Ich hoffe nun habe ich alles gesehen. Es war wohl eine payload in der payload.

                        [
                           {
                               "id": "85395d3e7d299c24",
                               "type": "inject",
                               "z": "517cd16e4d7e6ae4",
                               "name": "Eingangswerte",
                               "props": [
                                   {
                                       "p": "payload"
                                   }
                               ],
                               "repeat": "",
                               "crontab": "",
                               "once": false,
                               "onceDelay": 0.1,
                               "topic": "",
                               "payload": "{\"scriptVersion\":\"0.1\",\"src\":\"shellies/Pro3_EM\",\"srcBle\":{\"mac\":\"b4:35:22:fe:56:ad\"},\"payload\":{\"encryption\":false,\"BTHome_version\":2,\"pid\":253,\"battery\":100,\"button\":2,\"rssi\":-79,\"address\":\"b4:35:22:fe:56:ad\"}}",
                               "payloadType": "json",
                               "x": 140,
                               "y": 740,
                               "wires": [
                                   [
                                       "c7792c25c96d976f",
                                       "f19cc6f7778c2633"
                                   ]
                               ]
                           },
                           {
                               "id": "831875c3be845a77",
                               "type": "split",
                               "z": "517cd16e4d7e6ae4",
                               "name": "teile Objekt in Einzelnachrichten",
                               "splt": "\\n",
                               "spltType": "str",
                               "arraySplt": 1,
                               "arraySpltType": "len",
                               "stream": false,
                               "addname": "topic",
                               "x": 970,
                               "y": 800,
                               "wires": [
                                   [
                                       "4e6bbe32dfcc7c5d"
                                   ]
                               ]
                           },
                           {
                               "id": "f19cc6f7778c2633",
                               "type": "change",
                               "z": "517cd16e4d7e6ae4",
                               "name": "Ändere srcBle und payload",
                               "rules": [
                                   {
                                       "t": "move",
                                       "p": "payload.srcBle.mac",
                                       "pt": "msg",
                                       "to": "srcBle",
                                       "tot": "msg"
                                   },
                                   {
                                       "t": "change",
                                       "p": "srcBle",
                                       "pt": "msg",
                                       "from": ":",
                                       "fromt": "str",
                                       "to": "-",
                                       "tot": "str"
                                   },
                                   {
                                       "t": "set",
                                       "p": "srcBle",
                                       "pt": "msg",
                                       "to": "\"0_userdata.0.Wohnung.Status.Shelly.Shelly-BLE-Geraete.\" & srcBle",
                                       "tot": "jsonata"
                                   },
                                   {
                                       "t": "set",
                                       "p": "payload",
                                       "pt": "msg",
                                       "to": "payload.payload",
                                       "tot": "msg"
                                   }
                               ],
                               "action": "",
                               "property": "",
                               "from": "",
                               "to": "",
                               "reg": false,
                               "x": 380,
                               "y": 800,
                               "wires": [
                                   [
                                       "c1cac0b6dc174190"
                                   ]
                               ]
                           },
                           {
                               "id": "c1cac0b6dc174190",
                               "type": "change",
                               "z": "517cd16e4d7e6ae4",
                               "name": "Entferne payload-Eigenschaften",
                               "rules": [
                                   {
                                       "t": "delete",
                                       "p": "payload.address",
                                       "pt": "msg"
                                   }
                               ],
                               "action": "",
                               "property": "",
                               "from": "",
                               "to": "",
                               "reg": false,
                               "x": 670,
                               "y": 800,
                               "wires": [
                                   [
                                       "831875c3be845a77"
                                   ]
                               ]
                           },
                           {
                               "id": "4e6bbe32dfcc7c5d",
                               "type": "change",
                               "z": "517cd16e4d7e6ae4",
                               "name": "erstelle topic",
                               "rules": [
                                   {
                                       "t": "set",
                                       "p": "topic",
                                       "pt": "msg",
                                       "to": "srcBle & \".\" & topic",
                                       "tot": "jsonata"
                                   }
                               ],
                               "action": "",
                               "property": "",
                               "from": "",
                               "to": "",
                               "reg": false,
                               "x": 1210,
                               "y": 800,
                               "wires": [
                                   [
                                       "15bab36dddd209ed",
                                       "474c1b7582b85047"
                                   ]
                               ]
                           },
                           {
                               "id": "474c1b7582b85047",
                               "type": "debug",
                               "z": "517cd16e4d7e6ae4",
                               "name": "Einzelnachrichten",
                               "active": true,
                               "tosidebar": true,
                               "console": false,
                               "tostatus": false,
                               "complete": "payload",
                               "targetType": "msg",
                               "statusVal": "",
                               "statusType": "auto",
                               "x": 1430,
                               "y": 740,
                               "wires": []
                           },
                           {
                               "id": "15bab36dddd209ed",
                               "type": "ioBroker out",
                               "z": "517cd16e4d7e6ae4",
                               "name": "schreibe Werte",
                               "topic": "",
                               "ack": "true",
                               "autoCreate": "true",
                               "stateName": "",
                               "role": "",
                               "payloadType": "",
                               "readonly": "false",
                               "stateUnit": "",
                               "stateMin": "",
                               "stateMax": "",
                               "x": 1420,
                               "y": 800,
                               "wires": []
                           },
                           {
                               "id": "c7792c25c96d976f",
                               "type": "debug",
                               "z": "517cd16e4d7e6ae4",
                               "name": "Eingangs-payload",
                               "active": true,
                               "tosidebar": true,
                               "console": false,
                               "tostatus": false,
                               "complete": "payload",
                               "targetType": "msg",
                               "statusVal": "",
                               "statusType": "auto",
                               "x": 370,
                               "y": 740,
                               "wires": []
                           }
                        ]
                        

                        D 1 Reply Last reply Reply Quote 0
                        • D
                          dos1973 @mickym last edited by dos1973

                          @mickym
                          yes! schaut gut aus.

                          Bildschirmfoto 2023-12-17 um 15.53.23.png

                          das sind bereits 2 verschiedene Geräte

                          mickym 1 Reply Last reply Reply Quote 0
                          • mickym
                            mickym Most Active @dos1973 last edited by

                            @dos1973 Ok - ja sorry, sorry. - Aber Du siehst der Flow ist oft weniger entscheidend - man muss die richtigen Daten mit einer Inject-Node nachbilden können, um den Flow richtig zu machen. Kannst Du Dir ja wieder im Detail anschauen und wenn Du Fragen hast, warum was und wie - dann sprechen wir jede einzelne Node durch.

                            D 1 Reply Last reply Reply Quote 0
                            • D
                              dos1973 @mickym last edited by

                              @mickym
                              ich beobacte das ganze mal. wie immer eine riese Danke für deine Hilfe und Geduld.

                              mickym 1 Reply Last reply Reply Quote 0
                              • mickym
                                mickym Most Active @dos1973 last edited by

                                @dos1973 Ja und entschuldige meine Schlampigkeit. Und wie gesagt, wenn Du so was selbst machen willst, dann frag einfach, warum was und wie.

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

                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                903
                                Online

                                31.7k
                                Users

                                79.7k
                                Topics

                                1.3m
                                Posts

                                2
                                42
                                1226
                                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