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 dos1973

      @mickym

      so kommt es an...

      Bildschirmfoto 2023-12-17 um 14.17.10.png

      Bildschirmfoto 2023-12-17 um 14.16.40.png

      pfade - aber bvei unterschiedlichen Geräten, können die anders lauten.
      das ist zB. eine Bewgungsmelder

      payload.payload
      payload.payload.encryption
      payload.payload.BTHome_version
      payload.payload.pid
      payload.payload.battery
      payload.payload.illuminance
      payload.payload.motion
      payload.payload.rssi
      payload.payload.address
      
      mickym D 2 Replies Last reply Reply Quote 0
      • mickym
        mickym Most Active @dos1973 last edited by

        @dos1973 Geh bitte mit der Maus an die markierte Stelle und

        cc31e5ee-ca0b-437e-9985-db7cd2ce7377-image.png

        drücke auf Wert kopieren und dann die Zwischenablage hier in CodeTags rein.

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

          Und nochmal hast Du an dem topic was geändert - an der Node????

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

            ok, der sender hat diese werte

            payload.payload.button
            

            anstelle des Bewgungsmelders

            payload.payload.illuminance
            payload.payload.motion
            
            mickym 1 Reply Last reply Reply Quote 0
            • D
              dos1973 @mickym last edited by

              @mickym

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

                @dos1973 So nützt das nichts - die Werte sind egal die werden automatisch aufgelöst.

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

                  @dos1973

                  @dos1973 sagte in Node Red DP erstellen:

                  @mickym

                  {"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"}}
                  

                  Sehr gut. Ist nur eine Kleinigkeit - ich sag Dir gleich was. Das liegt einfach daran - dass ich bei den Screenshots nicht immer so genau schaue. 😉

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

                    Du musst in der 1. Change Node (Ändere srcBle) nur auf die Objekteigenschaft verweisen:

                    8ea3addb-fab5-4230-b588-db16c3c1513c-image.png

                    Das rot unterstrichene bitte dort anfügen.

                    Und hinten NICHTS ändern - das topic in der Change Node bleibt so wie ich es erstellt habe.

                    be1b54d4-1785-466e-861a-586bc3cdca66-image.png

                    Nichts mit payload etc.

                    0be78600-53d8-42e3-88d9-efc270827637-image.png

                    Hier nochmal ein frischer Import:

                    [
                       {
                           "id": "97b845b5a6599224",
                           "type": "split",
                           "z": "517cd16e4d7e6ae4",
                           "name": "teile Objekt in Einzelnachrichten",
                           "splt": "\\n",
                           "spltType": "str",
                           "arraySplt": 1,
                           "arraySpltType": "len",
                           "stream": false,
                           "addname": "topic",
                           "x": 830,
                           "y": 660,
                           "wires": [
                               [
                                   "4ec1e6e4e84579e7"
                               ]
                           ]
                       },
                       {
                           "id": "042bf417501565f3",
                           "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": 280,
                           "y": 660,
                           "wires": [
                               [
                                   "adb8c34172c9605f"
                               ]
                           ]
                       },
                       {
                           "id": "adb8c34172c9605f",
                           "type": "change",
                           "z": "517cd16e4d7e6ae4",
                           "name": "Entferne payload-Eigenschaften",
                           "rules": [
                               {
                                   "t": "delete",
                                   "p": "payload.address",
                                   "pt": "msg"
                               }
                           ],
                           "action": "",
                           "property": "",
                           "from": "",
                           "to": "",
                           "reg": false,
                           "x": 530,
                           "y": 660,
                           "wires": [
                               [
                                   "97b845b5a6599224"
                               ]
                           ]
                       },
                       {
                           "id": "4ec1e6e4e84579e7",
                           "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": 1070,
                           "y": 660,
                           "wires": [
                               [
                                   "bd42f02cc76dacad"
                               ]
                           ]
                       },
                       {
                           "id": "bd42f02cc76dacad",
                           "type": "ioBroker out",
                           "z": "517cd16e4d7e6ae4",
                           "name": "schreibe Werte",
                           "topic": "",
                           "ack": "true",
                           "autoCreate": "true",
                           "stateName": "",
                           "role": "",
                           "payloadType": "",
                           "readonly": "false",
                           "stateUnit": "",
                           "stateMin": "",
                           "stateMax": "",
                           "x": 1260,
                           "y": 660,
                           "wires": []
                       }
                    ]
                    

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            891
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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