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. Victron

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Victron

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

      @mickym 21e4cf4e-d520-4f4e-9a5a-91cb4a151500-grafik.png

      71726219-e50b-4f8d-8c33-a17ed1156021-grafik.png

      7b021af5-1406-42a4-8d9a-bacb3d09018f-grafik.png

      Das ist jetzt der eine Flow den ich brauche.

      mickym 2 Replies Last reply Reply Quote 0
      • mickym
        mickym Most Active @Dirk 4 last edited by mickym

        @dirk-4 So wie gesagt - wir lassen Dein System jetzt komplett in Ruhe - so dass da nichts kaputt geht. Du installierst einfach mal NOde-Red in Deinem iobroker dann diese NOdes und dann schaust Du ob Du da was auswählen kannst, Wenn nicht - wars das und Du löscht einfach die NodeRed Instanz auf Deinem iobroker wieder.

        Wenn das nicht klappt - dann haben wir immer noch die Möglichkeit die Daten aus Deiner Node-Red Instanz auf Deiner Anlage zu der Node-Red Instanz auf dem iobroker zu schicken.

        Sag Bescheid - wenn Du die Node-Red Instanz auf Deinem iobroker installiert hast.

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

          @dirk-4 Hast Du Node-Red unter iobroker installiert?

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

            @mickym Auf dem iobroker hab ich die victron Flows schon mal installiert da kann ich aber nichts eingeben die Felder lassen sich nicht bearbeiten. Hab ich dann auch wieder gelöscht.
            Wenn das nicht geht ist das auch nicht so schlimm.

            mickym 2 Replies Last reply Reply Quote 0
            • mickym
              mickym Most Active @Dirk 4 last edited by

              @dirk-4 Wir haben schon noch eine Möglichkeit ich habe mir sowas schon gedacht. 😉

              Wir nehmen jetzt einfach den Flow - auf Deinem Venus OS und versuchen mal ein paar Daten zu schicken ok?

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

                @mickym Mach mal Deine iobroker NodeRed Instanz auf. 😉

                Dort machen wir einen kleinen Webserver auf und an den schicken wir die daten aus dem Venus OS. OK?

                204ebd88-aba2-40ca-89de-ef8bf137973a-image.png

                [
                   {
                       "id": "538dea2ec68a916b",
                       "type": "comment",
                       "z": "7e6af0015415146d",
                       "name": "Webserver",
                       "info": "",
                       "x": 140,
                       "y": 80,
                       "wires": []
                   },
                   {
                       "id": "5ad1968a8316fc4f",
                       "type": "http in",
                       "z": "7e6af0015415146d",
                       "name": "",
                       "url": "/venus",
                       "method": "post",
                       "upload": false,
                       "swaggerDoc": "",
                       "x": 290,
                       "y": 160,
                       "wires": [
                           [
                               "3b93146c70e848f4",
                               "bf787b018da02270"
                           ]
                       ]
                   },
                   {
                       "id": "bf787b018da02270",
                       "type": "http response",
                       "z": "7e6af0015415146d",
                       "name": "",
                       "statusCode": "",
                       "headers": {},
                       "x": 550,
                       "y": 160,
                       "wires": []
                   },
                   {
                       "id": "3b93146c70e848f4",
                       "type": "debug",
                       "z": "7e6af0015415146d",
                       "name": "Daten aus VenusOS",
                       "active": true,
                       "tosidebar": true,
                       "console": false,
                       "tostatus": false,
                       "complete": "payload",
                       "targetType": "msg",
                       "statusVal": "",
                       "statusType": "auto",
                       "x": 520,
                       "y": 220,
                       "wires": []
                   }
                ]
                

                Diesen Flow importierst Du nun in deine iobroker Node-Red Instanz.
                Ist wie Export nur Import und hier aus der Zwischenablage kopieren.

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

                  @dirk-4 Wenn Du soweit bist, sag Bescheid.

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

                    @mickym OK Hab ich

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

                      @dirk-4 Gut das werden wir dann noch anwenderfreundlicher machen.

                      In Deinem NodeRed auf der Venus Seite hängst Du nun an die blaue Node noch eine http Request Node dran. Wenn Du das hast, sag Bescheid.

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

                        @mickym e331489e-6366-4945-b289-475f94c4eb08-grafik.png

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

                          @dirk-4 Sehr gut. 🙂

                          Nun öffnest Du die http Request Node:

                          Trägst das als Methode POST ein und die IP Adresse Deines iobrokers mit port 1880 und dann /venus.

                          f981429c-f8c2-4a2d-8e34-e14e0f2cd96e-image.png

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

                            @mickym sagte in Victron:

                            /venus

                            ok hab ich

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

                              @dirk-4 Ok hoffentlich auch mit port und ip Adresse des iobrokers - da willst Du die Daten ja hinschicken. Nun schau mal in die debug Node auf Deinem iobroker ob die Daten dort ankommen?

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

                                @mickym muss auf dem iobroker in dem auch was eingetragen werden

                                D mickym 2 Replies Last reply Reply Quote 0
                                • D
                                  Dirk 4 @Dirk 4 last edited by

                                  @dirk-4 kommt auf dem iobroker an

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

                                    @dirk-4 Nein - das kommt direkt aus dieser Node raus - wenn Du die IP Adresse richtig eingetragen hast:

                                    628b1348-607b-4834-a2eb-56d510b954fd-image.png

                                    Es muss jetzt das gleiche rauskommen, wie in der debug Node auf deinem venus os. also debug1

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

                                      @dirk-4 sagte in Victron:

                                      @dirk-4 kommt auf dem iobroker an

                                      Sehr gut - dann haben wir schon mal eine Systemgrenze überwunden.

                                      Nun willst Du das ja als eigene Datenpunkte haben, was Du dahinschickst. Deswegen schau erstmal in Deinen Adapterkonfiguration dass Du das Erstellen von Fremdobjekten zugelassen hast.

                                      5e720986-0763-4dcf-95ce-99477e05a426-image.png

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

                                        @mickym ja hab ich

                                        Der Datenpunkt 0_userdata.0.Victron.Victron__min_Batterie

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

                                          @dirk-4 sagte in Victron:

                                          @mickym ja hab ich

                                          Der Datenpunkt 0_userdata.0.Victron.Victron__min_Batterie

                                          Ja wir machen jetzt dass alles unter userdata geschrieben wird.

                                          Dazu nimmst Du nun meinen Flow und hängst die Nodes dran:

                                          2e745fe8-d586-4d1f-af9d-2e91494a473f-image.png

                                          Es passiert noch nichts da ich die iobroker OUT Node noch deaktiviert habe.

                                          [
                                             {
                                                 "id": "6e802f1553b18149",
                                                 "type": "subflow",
                                                 "name": "JSON or Obj to IOBroker",
                                                 "info": "# Creates an IOBroker tree\n\nThis node creates an IOBroker tree out of an Java-Object or JSON String.\n\nThe object tree will be created under 0_userdata.0\nIn addition to the JSON-String or Java Object as `msg.payload` it is necessary to specify a `msg.top` properity in addition to the msg-Object.\n\nThe object tree will be created under 0_userdata.0\n\nExisting `msg.topic` entries will be deleted.\nAn iobroker-out node has to be appended to this subflow node. It is not part of the subflow itself. No topic should be specified in the iobroker out node.\n\nIs `msg.top` property isn't defined, the `top` property of the subflow-node is used. \n\nIn the properties of the subflow node a new property `keepTopic` has been added. Default is _false_ to keep the current behaviour. If set to _true_ then the originial topic will be placed between the `top` property of the subflow node and the property of the analyzed JSON object.\n\n**Attention:**\nIf msg.top and top is empty, all msg.topics (msg.topic) will be directly prefixed with 0_userdata.0. . \n\n**Update 13.09.2022:**\nSpaces in topics of objects are no longer replaced with underscores in objects. No differences between all data types.\n\n# Erstellt einen Objektbaum im ioBroker\n\nDiese Node erstellt einen Objektbaum im ioBroker aus einem JAVA Objekt bzw. einem JSON String. \n\nDer Baum wird in jedem Fall unter 0_userdata.0 erstellt und zwar unter dem Topic der in` msg.top` mitgegeben wurde. In der `msg.payload` befindet sich dann der JSON String oder das entsprechende Objekt.\n\nExistierende `msg.topic `Einträge werden gelöscht.\nEin entsprechende iobroker-out Node muss an den Flow angehängt werden. Sie ist nicht Bestandteil des Subflows. In dieser iobroker-out Node darf kein Topic angegeben werden. \n\nFalls msg.top nicht definiert wurde, wird der `top`-Wert der Subflow-Node verwendet.\n\nIn den Eigenschaften der Subflow-Node wurde ein neuer Parameter `keepTopic` hinzugefügt. Standardwert ist _false_, um das bisherige Verhalten beizubehalten. Setzt man die Eigenschaft auf _true_, dann wird das originale Topic zwischen der `top` Eigenschaft der Subflow-Node und Eigenschaft des analysierten JSON Objektes eingefügt.\n\n**Achtung:**\nWenn top und msg.top leer ist, werden alle msg.topics (msg.topic) direkt unter dem Präfix 0_userdata.0., angelegt bzw. ausgegeben. \n\n**Update 13.09.2022:**\nLeerzeichen werden in Topics von Objekten nicht mehr durch Unterstriche ersetzt. Es gibt keine Unterschiede mehr zwischen den Datentypen.",
                                                 "category": "",
                                                 "in": [
                                                     {
                                                         "x": 60,
                                                         "y": 160,
                                                         "wires": [
                                                             {
                                                                 "id": "554b8c663bcb46c2"
                                                             }
                                                         ]
                                                     }
                                                 ],
                                                 "out": [
                                                     {
                                                         "x": 2620,
                                                         "y": 280,
                                                         "wires": [
                                                             {
                                                                 "id": "0962842ebd23e0d7",
                                                                 "port": 0
                                                             }
                                                         ]
                                                     }
                                                 ],
                                                 "env": [
                                                     {
                                                         "name": "top",
                                                         "type": "str",
                                                         "value": "objRoot"
                                                     },
                                                     {
                                                         "name": "keepTopic",
                                                         "type": "bool",
                                                         "value": "false"
                                                     }
                                                 ],
                                                 "meta": {},
                                                 "color": "#E2D96E",
                                                 "icon": "node-red/batch.svg"
                                             },
                                             {
                                                 "id": "3e11e8338f694832",
                                                 "type": "split",
                                                 "z": "6e802f1553b18149",
                                                 "name": "split object",
                                                 "splt": "\\n",
                                                 "spltType": "str",
                                                 "arraySplt": 1,
                                                 "arraySpltType": "len",
                                                 "stream": false,
                                                 "addname": "key",
                                                 "x": 1370,
                                                 "y": 160,
                                                 "wires": [
                                                     [
                                                         "0562a4249c8b856b"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "0562a4249c8b856b",
                                                 "type": "change",
                                                 "z": "6e802f1553b18149",
                                                 "name": "add key to topic",
                                                 "rules": [
                                                     {
                                                         "t": "set",
                                                         "p": "stateName",
                                                         "pt": "msg",
                                                         "to": "key",
                                                         "tot": "msg"
                                                     },
                                                     {
                                                         "t": "set",
                                                         "p": "topic",
                                                         "pt": "msg",
                                                         "to": "topic  & '.' & key",
                                                         "tot": "jsonata"
                                                     }
                                                 ],
                                                 "action": "",
                                                 "property": "",
                                                 "from": "",
                                                 "to": "",
                                                 "reg": false,
                                                 "x": 1560,
                                                 "y": 160,
                                                 "wires": [
                                                     [
                                                         "ddc90985bef0fafa"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "ddc90985bef0fafa",
                                                 "type": "switch",
                                                 "z": "6e802f1553b18149",
                                                 "name": "is type?",
                                                 "property": "payload",
                                                 "propertyType": "msg",
                                                 "rules": [
                                                     {
                                                         "t": "istype",
                                                         "v": "array",
                                                         "vt": "array"
                                                     },
                                                     {
                                                         "t": "istype",
                                                         "v": "object",
                                                         "vt": "object"
                                                     },
                                                     {
                                                         "t": "else"
                                                     }
                                                 ],
                                                 "checkall": "true",
                                                 "repair": false,
                                                 "outputs": 3,
                                                 "x": 1740,
                                                 "y": 160,
                                                 "wires": [
                                                     [
                                                         "bfce19b206660fbe"
                                                     ],
                                                     [
                                                         "3e11e8338f694832"
                                                     ],
                                                     [
                                                         "1a8c03d866b85b12"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "bfce19b206660fbe",
                                                 "type": "split",
                                                 "z": "6e802f1553b18149",
                                                 "name": "split array",
                                                 "splt": "\\n",
                                                 "spltType": "str",
                                                 "arraySplt": 1,
                                                 "arraySpltType": "len",
                                                 "stream": false,
                                                 "addname": "",
                                                 "x": 780,
                                                 "y": 280,
                                                 "wires": [
                                                     [
                                                         "e89927810c6d75ec"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "e89927810c6d75ec",
                                                 "type": "change",
                                                 "z": "6e802f1553b18149",
                                                 "name": "add index to topic",
                                                 "rules": [
                                                     {
                                                         "t": "set",
                                                         "p": "topic",
                                                         "pt": "msg",
                                                         "to": "topic  & '.' & parts.index",
                                                         "tot": "jsonata"
                                                     }
                                                 ],
                                                 "action": "",
                                                 "property": "",
                                                 "from": "",
                                                 "to": "",
                                                 "reg": false,
                                                 "x": 970,
                                                 "y": 280,
                                                 "wires": [
                                                     [
                                                         "a4d1a5d04564dc77"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "f5d52c6a57d08904",
                                                 "type": "change",
                                                 "z": "6e802f1553b18149",
                                                 "name": "finalize msg.topic",
                                                 "rules": [
                                                     {
                                                         "t": "set",
                                                         "p": "top",
                                                         "pt": "msg",
                                                         "to": "'0_userdata.0.' & top",
                                                         "tot": "jsonata"
                                                     },
                                                     {
                                                         "t": "set",
                                                         "p": "topic",
                                                         "pt": "msg",
                                                         "to": "top & '.' & topic",
                                                         "tot": "jsonata"
                                                     }
                                                 ],
                                                 "action": "",
                                                 "property": "",
                                                 "from": "",
                                                 "to": "",
                                                 "reg": false,
                                                 "x": 2170,
                                                 "y": 240,
                                                 "wires": [
                                                     [
                                                         "0962842ebd23e0d7"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "1a8c03d866b85b12",
                                                 "type": "switch",
                                                 "z": "6e802f1553b18149",
                                                 "name": "is msg.top != null",
                                                 "property": "top",
                                                 "propertyType": "msg",
                                                 "rules": [
                                                     {
                                                         "t": "nnull"
                                                     },
                                                     {
                                                         "t": "null"
                                                     }
                                                 ],
                                                 "checkall": "true",
                                                 "repair": false,
                                                 "outputs": 2,
                                                 "x": 1950,
                                                 "y": 280,
                                                 "wires": [
                                                     [
                                                         "f5d52c6a57d08904"
                                                     ],
                                                     [
                                                         "74c895ce724750de"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "e023fe88445ce43e",
                                                 "type": "change",
                                                 "z": "6e802f1553b18149",
                                                 "name": "",
                                                 "rules": [
                                                     {
                                                         "t": "delete",
                                                         "p": "topic",
                                                         "pt": "msg"
                                                     }
                                                 ],
                                                 "action": "",
                                                 "property": "",
                                                 "from": "",
                                                 "to": "",
                                                 "reg": false,
                                                 "x": 350,
                                                 "y": 200,
                                                 "wires": [
                                                     [
                                                         "3649300b4c233b10"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "3649300b4c233b10",
                                                 "type": "switch",
                                                 "z": "6e802f1553b18149",
                                                 "name": "is type?",
                                                 "property": "payload",
                                                 "propertyType": "msg",
                                                 "rules": [
                                                     {
                                                         "t": "istype",
                                                         "v": "json",
                                                         "vt": "json"
                                                     },
                                                     {
                                                         "t": "istype",
                                                         "v": "array",
                                                         "vt": "array"
                                                     },
                                                     {
                                                         "t": "istype",
                                                         "v": "object",
                                                         "vt": "object"
                                                     },
                                                     {
                                                         "t": "else"
                                                     }
                                                 ],
                                                 "checkall": "true",
                                                 "repair": false,
                                                 "outputs": 4,
                                                 "x": 600,
                                                 "y": 160,
                                                 "wires": [
                                                     [
                                                         "fc7913a8524badb7"
                                                     ],
                                                     [
                                                         "bfce19b206660fbe"
                                                     ],
                                                     [
                                                         "3e11e8338f694832"
                                                     ],
                                                     [
                                                         "9ac3cc3681e8b6c6"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "1b8480cd2df7ba3f",
                                                 "type": "comment",
                                                 "z": "6e802f1553b18149",
                                                 "name": "Array",
                                                 "info": "",
                                                 "x": 600,
                                                 "y": 280,
                                                 "wires": []
                                             },
                                             {
                                                 "id": "b3541807672be040",
                                                 "type": "comment",
                                                 "z": "6e802f1553b18149",
                                                 "name": "object",
                                                 "info": "",
                                                 "x": 1340,
                                                 "y": 100,
                                                 "wires": []
                                             },
                                             {
                                                 "id": "a4d1a5d04564dc77",
                                                 "type": "switch",
                                                 "z": "6e802f1553b18149",
                                                 "name": "is type?",
                                                 "property": "payload",
                                                 "propertyType": "msg",
                                                 "rules": [
                                                     {
                                                         "t": "istype",
                                                         "v": "object",
                                                         "vt": "object"
                                                     },
                                                     {
                                                         "t": "istype",
                                                         "v": "array",
                                                         "vt": "array"
                                                     },
                                                     {
                                                         "t": "else"
                                                     }
                                                 ],
                                                 "checkall": "true",
                                                 "repair": false,
                                                 "outputs": 3,
                                                 "x": 1160,
                                                 "y": 280,
                                                 "wires": [
                                                     [
                                                         "3e11e8338f694832"
                                                     ],
                                                     [
                                                         "bfce19b206660fbe"
                                                     ],
                                                     [
                                                         "a096a93bb82b7a93"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "74c895ce724750de",
                                                 "type": "change",
                                                 "z": "6e802f1553b18149",
                                                 "name": "finalize msg.topic",
                                                 "rules": [
                                                     {
                                                         "t": "set",
                                                         "p": "top",
                                                         "pt": "msg",
                                                         "to": "top",
                                                         "tot": "env"
                                                     },
                                                     {
                                                         "t": "set",
                                                         "p": "top",
                                                         "pt": "msg",
                                                         "to": "'0_userdata.0.' & top",
                                                         "tot": "jsonata"
                                                     },
                                                     {
                                                         "t": "set",
                                                         "p": "topic",
                                                         "pt": "msg",
                                                         "to": "top & '.' & topic",
                                                         "tot": "jsonata"
                                                     }
                                                 ],
                                                 "action": "",
                                                 "property": "",
                                                 "from": "",
                                                 "to": "",
                                                 "reg": false,
                                                 "x": 2170,
                                                 "y": 320,
                                                 "wires": [
                                                     [
                                                         "0962842ebd23e0d7"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "554b8c663bcb46c2",
                                                 "type": "switch",
                                                 "z": "6e802f1553b18149",
                                                 "name": "",
                                                 "property": "keepTopic",
                                                 "propertyType": "env",
                                                 "rules": [
                                                     {
                                                         "t": "true"
                                                     },
                                                     {
                                                         "t": "false"
                                                     }
                                                 ],
                                                 "checkall": "true",
                                                 "repair": false,
                                                 "outputs": 2,
                                                 "x": 170,
                                                 "y": 160,
                                                 "wires": [
                                                     [
                                                         "e30ba9f0483285e4"
                                                     ],
                                                     [
                                                         "e023fe88445ce43e"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "e30ba9f0483285e4",
                                                 "type": "change",
                                                 "z": "6e802f1553b18149",
                                                 "name": "",
                                                 "rules": [
                                                     {
                                                         "t": "change",
                                                         "p": "topic",
                                                         "pt": "msg",
                                                         "from": "/",
                                                         "fromt": "str",
                                                         "to": ".",
                                                         "tot": "str"
                                                     }
                                                 ],
                                                 "action": "",
                                                 "property": "",
                                                 "from": "",
                                                 "to": "",
                                                 "reg": false,
                                                 "x": 350,
                                                 "y": 120,
                                                 "wires": [
                                                     [
                                                         "3649300b4c233b10"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "0962842ebd23e0d7",
                                                 "type": "change",
                                                 "z": "6e802f1553b18149",
                                                 "name": "translate invalid chars in topic",
                                                 "rules": [
                                                     {
                                                         "t": "change",
                                                         "p": "topic",
                                                         "pt": "msg",
                                                         "from": "..",
                                                         "fromt": "str",
                                                         "to": ".",
                                                         "tot": "str"
                                                     },
                                                     {
                                                         "t": "change",
                                                         "p": "topic",
                                                         "pt": "msg",
                                                         "from": "€",
                                                         "fromt": "str",
                                                         "to": "EUR",
                                                         "tot": "str"
                                                     }
                                                 ],
                                                 "action": "",
                                                 "property": "",
                                                 "from": "",
                                                 "to": "",
                                                 "reg": false,
                                                 "x": 2430,
                                                 "y": 280,
                                                 "wires": [
                                                     []
                                                 ]
                                             },
                                             {
                                                 "id": "9ac3cc3681e8b6c6",
                                                 "type": "change",
                                                 "z": "6e802f1553b18149",
                                                 "name": "set topic, if empty",
                                                 "rules": [
                                                     {
                                                         "t": "set",
                                                         "p": "topic",
                                                         "pt": "msg",
                                                         "to": "topic ? topic : $type(payload)\t",
                                                         "tot": "jsonata"
                                                     }
                                                 ],
                                                 "action": "",
                                                 "property": "",
                                                 "from": "",
                                                 "to": "",
                                                 "reg": false,
                                                 "x": 950,
                                                 "y": 200,
                                                 "wires": [
                                                     [
                                                         "a096a93bb82b7a93"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "fc7913a8524badb7",
                                                 "type": "json",
                                                 "z": "6e802f1553b18149",
                                                 "name": "",
                                                 "property": "payload",
                                                 "action": "obj",
                                                 "pretty": false,
                                                 "x": 750,
                                                 "y": 100,
                                                 "wires": [
                                                     [
                                                         "d9e7bdd4c48a8aa1"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "d9e7bdd4c48a8aa1",
                                                 "type": "switch",
                                                 "z": "6e802f1553b18149",
                                                 "name": "is type?",
                                                 "property": "payload",
                                                 "propertyType": "msg",
                                                 "rules": [
                                                     {
                                                         "t": "istype",
                                                         "v": "array",
                                                         "vt": "array"
                                                     },
                                                     {
                                                         "t": "istype",
                                                         "v": "object",
                                                         "vt": "object"
                                                     },
                                                     {
                                                         "t": "else"
                                                     }
                                                 ],
                                                 "checkall": "true",
                                                 "repair": false,
                                                 "outputs": 3,
                                                 "x": 900,
                                                 "y": 100,
                                                 "wires": [
                                                     [
                                                         "1520be42bcc2145e"
                                                     ],
                                                     [
                                                         "1520be42bcc2145e"
                                                     ],
                                                     [
                                                         "9ac3cc3681e8b6c6"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "a096a93bb82b7a93",
                                                 "type": "junction",
                                                 "z": "6e802f1553b18149",
                                                 "x": 1380,
                                                 "y": 280,
                                                 "wires": [
                                                     [
                                                         "1a8c03d866b85b12"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "1520be42bcc2145e",
                                                 "type": "junction",
                                                 "z": "6e802f1553b18149",
                                                 "x": 480,
                                                 "y": 20,
                                                 "wires": [
                                                     [
                                                         "3649300b4c233b10"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "cc71f2a3c31e469f",
                                                 "type": "subflow:6e802f1553b18149",
                                                 "z": "7e6af0015415146d",
                                                 "name": "",
                                                 "env": [
                                                     {
                                                         "name": "top",
                                                         "value": "CerboGX",
                                                         "type": "str"
                                                     }
                                                 ],
                                                 "x": 590,
                                                 "y": 240,
                                                 "wires": [
                                                     [
                                                         "39cec3f78c2741c5"
                                                     ]
                                                 ]
                                             },
                                             {
                                                 "id": "39cec3f78c2741c5",
                                                 "type": "ioBroker out",
                                                 "z": "7e6af0015415146d",
                                                 "d": true,
                                                 "name": "",
                                                 "topic": "",
                                                 "ack": "true",
                                                 "autoCreate": "true",
                                                 "stateName": "",
                                                 "role": "",
                                                 "payloadType": "",
                                                 "readonly": "",
                                                 "stateUnit": "",
                                                 "stateMin": "",
                                                 "stateMax": "",
                                                 "x": 820,
                                                 "y": 240,
                                                 "wires": []
                                             }
                                          ]
                                          

                                          In der Subflow Node habe ich den Datenpunkt unter dem alles geschrieben wird:

                                          50957d97-bfc5-4b33-84f4-ffbe28738ef9-image.png

                                          CerboGX genannt - kannst das aber auch Victron nennen. Wenn Du den Subflow dann aktivierst - sollte alles was an Daten kommt in einzelne Datenpunkte geschrieben werden.

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

                                            @mickym ok erledigt

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            907
                                            Online

                                            31.6k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            135
                                            9520
                                            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