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

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    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

      nee klappt nicht.

      Bildschirmfoto 2023-12-17 um 14.35.54.png

      habe es ergänzt
      Bildschirmfoto 2023-12-17 um 14.36.54.png

      sieht alles genauso aus
      Bildschirmfoto 2023-12-17 um 14.37.22.png

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

        @dos1973 Entweder nochmal frischer Import - oder Du hast hinten an der topic Node was geändert. Ansonsten klemm die iobroker-out Node ab, mach einen debug dahinter und poste das. Aber erst neu importieren.

        Die Nachrichten, die in die iobroker-Out NOde gehen müssen so aussehen:

        cb6f75c5-e87b-49fc-8b3e-c3109c549aea-image.png

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

          @mickym
          ich habe es komplett neu importiert

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

            @dos1973 sagte in Node Red DP erstellen:

            @mickym
            ich habe es komplett neu importiert

            Und Debug Node hinten dran gemacht und bitte Screenshot der einzelnen Nachrichten bevor diese in die iobroker-Out Node gehen. - Ich hab dir gerade geschickt wie das aussehen muss.

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

              @mickym
              ich hoffe ich habs verstanden
              Bildschirmfoto 2023-12-17 um 14.43.05.png

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

                @dos1973 OK ich weiß nicht wo die 2 Punkte her kommen.

                Ich werde nochmal mit diesem Objekt Deinen Input nachbauen und Du sagst, ob der mit Deinem identisch ist.

                {"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"}}
                
                D 1 Reply Last reply Reply Quote 0
                • D
                  dos1973 @mickym last edited by

                  @mickym
                  ist irgendwie eine schwere geburt...

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

                    Ich denke ich habe den Fehler gefunden:
                    2176e50b-6fa3-4f3e-bc8f-1612f94454ba-image.png
                    da muss der Punkt raus - sorry war schlampig meinerseits

                    FALLS NICHT DANN

                    ... bitte diesen ganzen Flow importieren und bestätigen erstmal, dass nun das konstruierte Eingangsobjekt genauso wie Deine Nachrichten aussehen:

                    5d65d58e-71da-4c08-a374-8ece4a3437d5-image.png

                    Also mit der Inject Node testen.

                    Wenn das so ist dann kannst Du vor die 2. Reihe Deine mqtt-In klemmen

                    [
                       {
                           "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": "set",
                                   "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",
                           "d": true,
                           "name": "schreibe Werte",
                           "topic": "",
                           "ack": "true",
                           "autoCreate": "true",
                           "stateName": "",
                           "role": "",
                           "payloadType": "",
                           "readonly": "false",
                           "stateUnit": "",
                           "stateMin": "",
                           "stateMax": "",
                           "x": 1220,
                           "y": 840,
                           "wires": []
                       }
                    ]
                    

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

                      @mickym
                      wenn ich den "Eingangswert Triggere" passiert nichts in der DP struktur

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

                        @dos1973 Das ist klar - ist doch hinten deaktiviert. Wie gesagt mach einfach den Punkt raus an dem Originalflow den Du schon hast.

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

                          @mickym
                          ja, habs zu spät gesehen 🙂

                          Bildschirmfoto 2023-12-17 um 15.07.53.png

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

                            @dos1973

                            Das sollte aber hinhauen. Wie gesagt vorher war nur der Punkt zuviel

                            acec30d9-ed7c-42d0-a409-9244cff596a2-image.png

                            D 1 Reply Last reply Reply Quote 0
                            • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            791
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

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