Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. SMA Tripower - abfangen von unplausiblen Werten

    NEWS

    • [erledigt] 15. 05. Wartungsarbeiten am ioBroker Forum

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    SMA Tripower - abfangen von unplausiblen Werten

    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Andi19562 last edited by

      Hallo zusammen,
      ich nutze den iobroker erst seit kurzer Zeit und bin somit noch mit vielen Details nicht vertraut.

      Mein System:
      admin: v6.12.0
      modbus: v5.0.11
      Node.js: v18.18.2
      NPM: 9.8.1
      läuft unter Win10 64bit
      SMA Tripower

      Ich möchte mir ein kleine Visualisierung meiner PV Anlage (Komponenten von SMA) und meiner AVM DECT
      Komponenten mit Vis2 aufbauen und habe mit Hilfe des Forums geschafft, alle Abfragen zum Laufen bekommen.

      Ein Problem konnte ich bisher noch nicht lösen. Im ausgeschalteten Zustand (nachts) liefert der Modbus bei meinen
      abgefragten SMA-Registern sehr hohe Werte zurück wie z.B. das Register 30775 Wirkleistung.
      Bei der Modbus Instanz konnte ich eine Formel eintragen, die ich hier im Forum gefunden habe. Das hat bewirkt, das echart die unplausiblen Werte unterdrückt.
      modbus0-1.PNG

      Leider hat dies keine Auswirkungen auf die Darstellung in Vis2.
      Da greife ich ja auf über die Objekt ID auf dies zurück.

      modbus0-2.PNG
      modbus0-3.PNG

      Und hier müsste ich wahrscheinlich unter dem Punkt "Function" auch eine Begrenzung der Werte eingeben.
      Keine Ahnung, wie das gemacht wird. Direktes Eingeben in der Zeile "30775 - Wirkleistung" geht nicht.

      Wäre super, wenn mir jemand bei der Lösung helfen könnte.

      Gruß Andi

      T arteck 2 Replies Last reply Reply Quote 0
      • T
        Taddy81 @Andi19562 last edited by

        @andi19562

        Ich habe das gleiche Problem und habe das über einen Umweg gelöst.

        Bei mir läuft noch eine NodeRed Instanz, die Werte vom Wechselrichter habe ich als Eingangsnode gewählt und danach einen Switch der nur Werte zwischen 0 und 20000W durchlässt.

        Wenn du später auch noch in NodeRed Schaltungen bauen willst, dann ist das eine schnelle und "saubere" Lösung

        A 1 Reply Last reply Reply Quote 0
        • A
          Andi19562 @Taddy81 last edited by

          @taddy81

          Kannst du mir dazu mehr Infos geben. Ich bin wie gesagt noch absoluter Laie.
          Beispiel mit Bildern wäre sehr hilfreich.

          Danke dir

          T 1 Reply Last reply Reply Quote 0
          • T
            Taddy81 @Andi19562 last edited by

            @andi19562

            Reiche ich heute am späten Nachmittag nach.

            NodeRed ist super, am Handy aber eine reine Zumutung 🙂

            A 1 Reply Last reply Reply Quote 0
            • arteck
              arteck Developer Most Active @Andi19562 last edited by arteck

              @andi19562 nutze doch einfach den alias adapter dafür..nodered NUR für diese Kleinigkeit ist bissel oversize

              A 1 Reply Last reply Reply Quote 0
              • A
                Andi19562 @Taddy81 last edited by

                @taddy81

                super.
                Danke dir...

                1 Reply Last reply Reply Quote 0
                • A
                  Andi19562 @arteck last edited by

                  @arteck

                  wie gesagt, bin noch am Lernen.
                  Keine Ahnung wie das damit zu realisieren ist

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    Taddy81 @Andi19562 last edited by Taddy81

                    @andi19562

                    Hier ohne viele Worte 🙂

                    NodeRed.jpg

                    JSON Import

                    [
                       {
                           "id": "715b3130a0bf481d",
                           "type": "group",
                           "z": "55443e1f542dbc9d",
                           "style": {
                               "stroke": "#999999",
                               "stroke-opacity": "1",
                               "fill": "none",
                               "fill-opacity": "1",
                               "label": true,
                               "label-position": "nw",
                               "color": "#a4a4a4"
                           },
                           "nodes": [
                               "4947a02fcd4edf20",
                               "a013551e97844b4b",
                               "c8a37553435440ab",
                               "5587d829cf20127e",
                               "3ae1a73fe6e76be4",
                               "be91cf740bd9ca99",
                               "b35628de2426cdd4",
                               "b938572524a54c73",
                               "d24888498d06af0b",
                               "11bc60bba9910b6e",
                               "b4054c34bfe9a0a2",
                               "dc67aad7d2262c9e",
                               "efe6b1767d2b794f",
                               "2f2cc81b9101d0b3",
                               "8504b9048c548def",
                               "33708fbed1d61e6d"
                           ],
                           "x": 54,
                           "y": 999,
                           "w": 852,
                           "h": 322
                       },
                       {
                           "id": "4947a02fcd4edf20",
                           "type": "ioBroker out",
                           "z": "55443e1f542dbc9d",
                           "g": "715b3130a0bf481d",
                           "name": "ModBus.Voll_PV_Akt",
                           "topic": "node-red.0.ModBus.Voll_PV_Akt",
                           "ack": "true",
                           "autoCreate": "false",
                           "stateName": "",
                           "role": "",
                           "payloadType": "",
                           "readonly": "",
                           "stateUnit": "",
                           "stateMin": "",
                           "stateMax": "",
                           "x": 740,
                           "y": 1080,
                           "wires": []
                       },
                       {
                           "id": "a013551e97844b4b",
                           "type": "ioBroker out",
                           "z": "55443e1f542dbc9d",
                           "g": "715b3130a0bf481d",
                           "name": "ModBus.Eigen_PV_Akt",
                           "topic": "node-red.0.ModBus.Eigen_PV_Akt",
                           "ack": "true",
                           "autoCreate": "false",
                           "stateName": "",
                           "role": "",
                           "payloadType": "",
                           "readonly": "",
                           "stateUnit": "",
                           "stateMin": "",
                           "stateMax": "",
                           "x": 740,
                           "y": 1140,
                           "wires": []
                       },
                       {
                           "id": "c8a37553435440ab",
                           "type": "ioBroker out",
                           "z": "55443e1f542dbc9d",
                           "g": "715b3130a0bf481d",
                           "name": "ModBus.Voll_PV_Ges",
                           "topic": "node-red.0.ModBus.Voll_PV_Ges",
                           "ack": "false",
                           "autoCreate": "false",
                           "stateName": "",
                           "role": "",
                           "payloadType": "",
                           "readonly": "",
                           "stateUnit": "",
                           "stateMin": "",
                           "stateMax": "",
                           "x": 760,
                           "y": 1280,
                           "wires": []
                       },
                       {
                           "id": "5587d829cf20127e",
                           "type": "ioBroker out",
                           "z": "55443e1f542dbc9d",
                           "g": "715b3130a0bf481d",
                           "name": "ModBus.Eigen_PV_Ges",
                           "topic": "node-red.0.ModBus.Eigen_PV_Ges",
                           "ack": "false",
                           "autoCreate": "false",
                           "stateName": "",
                           "role": "",
                           "payloadType": "",
                           "readonly": "",
                           "stateUnit": "",
                           "stateMin": "",
                           "stateMax": "",
                           "x": 770,
                           "y": 1220,
                           "wires": []
                       },
                       {
                           "id": "3ae1a73fe6e76be4",
                           "type": "comment",
                           "z": "55443e1f542dbc9d",
                           "g": "715b3130a0bf481d",
                           "name": "ModBus auslesen",
                           "info": "",
                           "x": 210,
                           "y": 1040,
                           "wires": []
                       },
                       {
                           "id": "be91cf740bd9ca99",
                           "type": "cronplus",
                           "z": "55443e1f542dbc9d",
                           "g": "715b3130a0bf481d",
                           "name": "",
                           "outputField": "payload",
                           "timeZone": "",
                           "persistDynamic": false,
                           "commandResponseMsgOutput": "output1",
                           "outputs": 1,
                           "options": [
                               {
                                   "name": "schedule1",
                                   "topic": "topic1",
                                   "payloadType": "default",
                                   "payload": "",
                                   "expressionType": "cron",
                                   "expression": "*/1 * * * * * *",
                                   "location": "",
                                   "offset": "0",
                                   "solarType": "all",
                                   "solarEvents": "sunrise,sunset"
                               }
                           ],
                           "x": 200,
                           "y": 1100,
                           "wires": [
                               [
                                   "d24888498d06af0b",
                                   "11bc60bba9910b6e"
                               ]
                           ]
                       },
                       {
                           "id": "b35628de2426cdd4",
                           "type": "cronplus",
                           "z": "55443e1f542dbc9d",
                           "g": "715b3130a0bf481d",
                           "name": "",
                           "outputField": "payload",
                           "timeZone": "",
                           "persistDynamic": false,
                           "commandResponseMsgOutput": "output1",
                           "outputs": 1,
                           "options": [
                               {
                                   "name": "schedule1",
                                   "topic": "topic1",
                                   "payloadType": "default",
                                   "payload": "",
                                   "expressionType": "cron",
                                   "expression": "0 */1 * * * * *",
                                   "location": "",
                                   "offset": "0",
                                   "solarType": "all",
                                   "solarEvents": "sunrise,sunset"
                               }
                           ],
                           "x": 200,
                           "y": 1240,
                           "wires": [
                               [
                                   "dc67aad7d2262c9e",
                                   "b4054c34bfe9a0a2"
                               ]
                           ]
                       },
                       {
                           "id": "b938572524a54c73",
                           "type": "thingzi-timer",
                           "z": "55443e1f542dbc9d",
                           "g": "715b3130a0bf481d",
                           "name": "Sun",
                           "lat": "51.51",
                           "lon": "7.9528",
                           "timerType": "onoff",
                           "startupMessage": true,
                           "ontype": "sun",
                           "ontimesun": "dusk",
                           "ontimetod": "",
                           "onpropertytype": "msg",
                           "onproperty": "payload",
                           "onvaluetype": "str",
                           "onvalue": "ON",
                           "onoffset": "30",
                           "onrandomoffset": false,
                           "offtype": "sun",
                           "offtimesun": "dawn",
                           "offtimetod": "",
                           "offpropertytype": "msg",
                           "offproperty": "payload",
                           "offvaluetype": "str",
                           "offvalue": "OFF",
                           "offoffset": "-30",
                           "offrandomoffset": false,
                           "mon": true,
                           "tue": true,
                           "wed": true,
                           "thu": true,
                           "fri": true,
                           "sat": true,
                           "sun": true,
                           "x": 130,
                           "y": 1180,
                           "wires": [
                               [
                                   "be91cf740bd9ca99",
                                   "b35628de2426cdd4"
                               ]
                           ]
                       },
                       {
                           "id": "d24888498d06af0b",
                           "type": "ioBroker get",
                           "z": "55443e1f542dbc9d",
                           "g": "715b3130a0bf481d",
                           "name": "Eigen_Act",
                           "topic": "modbus.0.inputRegisters.3.30775",
                           "attrname": "payload",
                           "payloadType": "value",
                           "errOnInvalidState": "nothing",
                           "x": 410,
                           "y": 1140,
                           "wires": [
                               [
                                   "8504b9048c548def"
                               ]
                           ]
                       },
                       {
                           "id": "11bc60bba9910b6e",
                           "type": "ioBroker get",
                           "z": "55443e1f542dbc9d",
                           "g": "715b3130a0bf481d",
                           "name": "Voll_Act",
                           "topic": "modbus.1.inputRegisters.3.30775",
                           "attrname": "payload",
                           "payloadType": "value",
                           "errOnInvalidState": "nothing",
                           "x": 400,
                           "y": 1080,
                           "wires": [
                               [
                                   "33708fbed1d61e6d"
                               ]
                           ]
                       },
                       {
                           "id": "b4054c34bfe9a0a2",
                           "type": "ioBroker get",
                           "z": "55443e1f542dbc9d",
                           "g": "715b3130a0bf481d",
                           "name": "Voll_Ges",
                           "topic": "modbus.1.inputRegisters.3.30513_watt",
                           "attrname": "payload",
                           "payloadType": "value",
                           "errOnInvalidState": "nothing",
                           "x": 400,
                           "y": 1280,
                           "wires": [
                               [
                                   "2f2cc81b9101d0b3"
                               ]
                           ]
                       },
                       {
                           "id": "dc67aad7d2262c9e",
                           "type": "ioBroker get",
                           "z": "55443e1f542dbc9d",
                           "g": "715b3130a0bf481d",
                           "name": "Eigen_Ges",
                           "topic": "modbus.0.inputRegisters.3.30513",
                           "attrname": "payload",
                           "payloadType": "value",
                           "errOnInvalidState": "nothing",
                           "x": 410,
                           "y": 1220,
                           "wires": [
                               [
                                   "efe6b1767d2b794f"
                               ]
                           ]
                       },
                       {
                           "id": "efe6b1767d2b794f",
                           "type": "function",
                           "z": "55443e1f542dbc9d",
                           "g": "715b3130a0bf481d",
                           "name": "/1000",
                           "func": "var input = parseFloat(msg.payload);\nvar output = (input / 1000).toFixed(2);\n\nmsg.payload = parseFloat(output);\nreturn msg;\n",
                           "outputs": 1,
                           "noerr": 0,
                           "initialize": "",
                           "finalize": "",
                           "libs": [],
                           "x": 550,
                           "y": 1220,
                           "wires": [
                               [
                                   "5587d829cf20127e"
                               ]
                           ]
                       },
                       {
                           "id": "2f2cc81b9101d0b3",
                           "type": "function",
                           "z": "55443e1f542dbc9d",
                           "g": "715b3130a0bf481d",
                           "name": "/1000",
                           "func": "var input = parseFloat(msg.payload);\nvar output = (input / 1000).toFixed(2);\n\nmsg.payload = parseFloat(output);\nreturn msg;\n",
                           "outputs": 1,
                           "noerr": 0,
                           "initialize": "",
                           "finalize": "",
                           "libs": [],
                           "x": 550,
                           "y": 1280,
                           "wires": [
                               [
                                   "c8a37553435440ab"
                               ]
                           ]
                       },
                       {
                           "id": "8504b9048c548def",
                           "type": "switch",
                           "z": "55443e1f542dbc9d",
                           "g": "715b3130a0bf481d",
                           "name": "",
                           "property": "payload",
                           "propertyType": "msg",
                           "rules": [
                               {
                                   "t": "btwn",
                                   "v": "0",
                                   "vt": "num",
                                   "v2": "15000",
                                   "v2t": "num"
                               }
                           ],
                           "checkall": "true",
                           "repair": false,
                           "outputs": 1,
                           "x": 550,
                           "y": 1140,
                           "wires": [
                               [
                                   "a013551e97844b4b"
                               ]
                           ]
                       },
                       {
                           "id": "33708fbed1d61e6d",
                           "type": "switch",
                           "z": "55443e1f542dbc9d",
                           "g": "715b3130a0bf481d",
                           "name": "",
                           "property": "payload",
                           "propertyType": "msg",
                           "rules": [
                               {
                                   "t": "btwn",
                                   "v": "0",
                                   "vt": "num",
                                   "v2": "15000",
                                   "v2t": "num"
                               }
                           ],
                           "checkall": "true",
                           "repair": false,
                           "outputs": 1,
                           "x": 550,
                           "y": 1080,
                           "wires": [
                               [
                                   "4947a02fcd4edf20"
                               ]
                           ]
                       }
                    ]
                    

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      Andi19562 @Taddy81 last edited by

                      @taddy81

                      vielen Dank.
                      Werde ich mir in Ruhe anschauen.

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

                      Support us

                      ioBroker
                      Community Adapters
                      Donate
                      FAQ Cloud / IOT
                      HowTo: Node.js-Update
                      HowTo: Backup/Restore
                      Downloads
                      BLOG

                      574
                      Online

                      31.6k
                      Users

                      79.5k
                      Topics

                      1.3m
                      Posts

                      3
                      9
                      192
                      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