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. Mehrfach Software Schalter!? in Node-Red für Heidelberg

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Mehrfach Software Schalter!? in Node-Red für Heidelberg

    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      csh-de last edited by csh-de

      Hallo,

      ich habe über das wbec wlan (d1 mini) zugriff auf meine Heidelberg Wallbox und kann die in Node Red errechneten Überschuss Ströme an die Wallbox weiterleiten, klappt perfekt.

      Jetzt zur Fragestellung: es gibt Situationen wo ich das Auto sofort viel laden möchten oder es gar nicht laden soll solange im Haus der Verbrauch der PV voll ausgelastet ist.
      Im Moment muss ich immer an den Laptop und die Werte ändern im Flow. Ich hätte gerne Schalter im Dashboard.

      (genau gesagt muss ich immer in die Ampere Anpassung die Werte ändern:
      0-16A für nur Sonnenüberschuss oder
      6-16A für lade Minimum mit 6A egal wie viel Sonne + was von der PV kommt oder
      16-16A für maximal Ladestrom egal ob Netz oder PV)

      gibt es einen Schalter mit dem ich so etwas realisieren könnte?

      Danke für die Hilfe.

      so schaut es aus:
      Screenshot 2023-08-05 174000.png

      heidelberg.json

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

        @csh-de Ehrlich gesagt verstehe ich glaub das Problem nicht. Im Moment hast Du 5 Buttons mit verschiedenen payloads.
        Kannst Du theoretisch auch mit einer DropDown Node machen oder einen Slider oder einer vInput Node zum Einstellen des Minimums machen, je nachdem ob du fixe Schritte oder alles variabel einstellen willst. Das speicherst Du im Flow und addierst das Minimum.

        6045551e-0e67-49e5-bb6d-667c65042496-image.png

        [
           {
               "id": "2de114b8a5bab99d",
               "type": "inject",
               "z": "0f6c6da0c2e7c7d5",
               "name": "",
               "props": [
                   {
                       "p": "payload"
                   },
                   {
                       "p": "topic",
                       "vt": "str"
                   }
               ],
               "repeat": "",
               "crontab": "",
               "once": false,
               "onceDelay": 0.1,
               "topic": "",
               "payload": "7",
               "payloadType": "num",
               "x": 190,
               "y": 540,
               "wires": [
                   [
                       "2a6284036825c84a"
                   ]
               ]
           },
           {
               "id": "3f7cf42b4b4f0126",
               "type": "inject",
               "z": "0f6c6da0c2e7c7d5",
               "name": "",
               "props": [
                   {
                       "p": "payload"
                   },
                   {
                       "p": "topic",
                       "vt": "str"
                   }
               ],
               "repeat": "",
               "crontab": "",
               "once": false,
               "onceDelay": 0.1,
               "topic": "",
               "payload": "5",
               "payloadType": "num",
               "x": 190,
               "y": 500,
               "wires": [
                   [
                       "2a6284036825c84a"
                   ]
               ]
           },
           {
               "id": "6987f8094e51bb42",
               "type": "inject",
               "z": "0f6c6da0c2e7c7d5",
               "name": "",
               "props": [
                   {
                       "p": "payload"
                   },
                   {
                       "p": "topic",
                       "vt": "str"
                   }
               ],
               "repeat": "",
               "crontab": "",
               "once": false,
               "onceDelay": 0.1,
               "topic": "",
               "payload": "10",
               "payloadType": "num",
               "x": 190,
               "y": 580,
               "wires": [
                   [
                       "2a6284036825c84a"
                   ]
               ]
           },
           {
               "id": "e5fb7dfb0a561157",
               "type": "inject",
               "z": "0f6c6da0c2e7c7d5",
               "name": "",
               "props": [
                   {
                       "p": "payload"
                   },
                   {
                       "p": "topic",
                       "vt": "str"
                   }
               ],
               "repeat": "",
               "crontab": "",
               "once": false,
               "onceDelay": 0.1,
               "topic": "",
               "payload": "-5",
               "payloadType": "num",
               "x": 190,
               "y": 460,
               "wires": [
                   [
                       "2a6284036825c84a"
                   ]
               ]
           },
           {
               "id": "fe349cde83c4a38f",
               "type": "range",
               "z": "0f6c6da0c2e7c7d5",
               "minin": "0",
               "maxin": "16",
               "minout": "0",
               "maxout": "16",
               "action": "clamp",
               "round": true,
               "property": "payload",
               "name": "Ampere Anpassung 0A-16A durch lassen",
               "x": 800,
               "y": 540,
               "wires": [
                   [
                       "032e04f534fea7c6"
                   ]
               ]
           },
           {
               "id": "032e04f534fea7c6",
               "type": "change",
               "z": "0f6c6da0c2e7c7d5",
               "name": "",
               "rules": [
                   {
                       "t": "set",
                       "p": "post",
                       "pt": "msg",
                       "to": "payload *10",
                       "tot": "jsonata"
                   }
               ],
               "action": "",
               "property": "",
               "from": "",
               "to": "",
               "reg": false,
               "x": 1080,
               "y": 540,
               "wires": [
                   [
                       "4ce9875280084eae",
                       "ed181533a83f5bb9"
                   ]
               ]
           },
           {
               "id": "4ce9875280084eae",
               "type": "http request",
               "z": "0f6c6da0c2e7c7d5",
               "d": true,
               "name": "Wert zur Wallbox senden",
               "method": "GET",
               "ret": "txt",
               "paytoqs": "ignore",
               "url": "http://wbec.local/json?currLim={{post}}",
               "tls": "",
               "persist": false,
               "proxy": "",
               "insecureHTTPParser": false,
               "authType": "",
               "senderr": false,
               "headers": [],
               "x": 1310,
               "y": 540,
               "wires": [
                   []
               ]
           },
           {
               "id": "bd1056748d9081ff",
               "type": "ui_button",
               "z": "0f6c6da0c2e7c7d5",
               "name": "",
               "group": "81b442cfd21bc903",
               "order": 0,
               "width": 0,
               "height": 0,
               "passthru": true,
               "label": "min (nur PV)",
               "tooltip": "",
               "color": "",
               "bgcolor": "",
               "className": "",
               "icon": "",
               "payload": "0",
               "payloadType": "num",
               "topic": "topic",
               "topicType": "msg",
               "x": 890,
               "y": 180,
               "wires": [
                   [
                       "48cd996d89b35ba7"
                   ]
               ]
           },
           {
               "id": "0bd6ca1e1b03e054",
               "type": "ui_button",
               "z": "0f6c6da0c2e7c7d5",
               "name": "",
               "group": "81b442cfd21bc903",
               "order": 0,
               "width": 0,
               "height": 0,
               "passthru": true,
               "label": "min  6A (+ PV)",
               "tooltip": "",
               "color": "",
               "bgcolor": "",
               "className": "",
               "icon": "",
               "payload": "6",
               "payloadType": "num",
               "topic": "payload",
               "topicType": "msg",
               "x": 900,
               "y": 220,
               "wires": [
                   [
                       "48cd996d89b35ba7"
                   ]
               ]
           },
           {
               "id": "33271dbdede3f329",
               "type": "ui_button",
               "z": "0f6c6da0c2e7c7d5",
               "name": "",
               "group": "81b442cfd21bc903",
               "order": 0,
               "width": 0,
               "height": 0,
               "passthru": false,
               "label": "min  8.5A (+ PV)",
               "tooltip": "",
               "color": "",
               "bgcolor": "",
               "className": "",
               "icon": "",
               "payload": "8.5",
               "payloadType": "num",
               "topic": "payload",
               "topicType": "msg",
               "x": 900,
               "y": 260,
               "wires": [
                   [
                       "48cd996d89b35ba7"
                   ]
               ]
           },
           {
               "id": "8df80d9e7ee7fe46",
               "type": "ui_button",
               "z": "0f6c6da0c2e7c7d5",
               "name": "",
               "group": "81b442cfd21bc903",
               "order": 0,
               "width": 0,
               "height": 0,
               "passthru": false,
               "label": "max",
               "tooltip": "",
               "color": "",
               "bgcolor": "",
               "className": "",
               "icon": "",
               "payload": "15.9",
               "payloadType": "num",
               "topic": "topic",
               "topicType": "msg",
               "x": 870,
               "y": 300,
               "wires": [
                   [
                       "48cd996d89b35ba7"
                   ]
               ]
           },
           {
               "id": "96958c38e7c0b537",
               "type": "ui_button",
               "z": "0f6c6da0c2e7c7d5",
               "name": "",
               "group": "81b442cfd21bc903",
               "order": 0,
               "width": 0,
               "height": 0,
               "passthru": false,
               "label": "erst Akku laden",
               "tooltip": "",
               "color": "",
               "bgcolor": "",
               "className": "",
               "icon": "",
               "payload": "-10",
               "payloadType": "num",
               "topic": "topic",
               "topicType": "msg",
               "x": 900,
               "y": 340,
               "wires": [
                   [
                       "48cd996d89b35ba7"
                   ]
               ]
           },
           {
               "id": "83f7e547e9b80e26",
               "type": "inject",
               "z": "0f6c6da0c2e7c7d5",
               "name": "",
               "props": [
                   {
                       "p": "payload"
                   },
                   {
                       "p": "topic",
                       "vt": "str"
                   }
               ],
               "repeat": "",
               "crontab": "",
               "once": false,
               "onceDelay": 0.1,
               "topic": "",
               "payload": "22",
               "payloadType": "num",
               "x": 190,
               "y": 620,
               "wires": [
                   [
                       "2a6284036825c84a"
                   ]
               ]
           },
           {
               "id": "7b5227f26f297d60",
               "type": "comment",
               "z": "0f6c6da0c2e7c7d5",
               "name": "Beispiel Zustände der PV (Ampere)",
               "info": "",
               "x": 300,
               "y": 400,
               "wires": []
           },
           {
               "id": "0268814d4516d18c",
               "type": "comment",
               "z": "0f6c6da0c2e7c7d5",
               "name": "Auto lädt nur wenn Sonne über 6A bringt. ",
               "info": "",
               "x": 620,
               "y": 400,
               "wires": []
           },
           {
               "id": "63b347ed40717091",
               "type": "comment",
               "z": "0f6c6da0c2e7c7d5",
               "name": "Solche oder änliche Schalter für das Deshboard!?",
               "info": "",
               "x": 620,
               "y": 180,
               "wires": []
           },
           {
               "id": "48cd996d89b35ba7",
               "type": "change",
               "z": "0f6c6da0c2e7c7d5",
               "name": "",
               "rules": [
                   {
                       "t": "set",
                       "p": "minimum",
                       "pt": "flow",
                       "to": "payload",
                       "tot": "msg"
                   }
               ],
               "action": "",
               "property": "",
               "from": "",
               "to": "",
               "reg": false,
               "x": 1150,
               "y": 260,
               "wires": [
                   []
               ]
           },
           {
               "id": "7b1c98132a6082fb",
               "type": "change",
               "z": "0f6c6da0c2e7c7d5",
               "name": "",
               "rules": [
                   {
                       "t": "set",
                       "p": "min",
                       "pt": "msg",
                       "to": "minimum",
                       "tot": "flow"
                   },
                   {
                       "t": "set",
                       "p": "payload",
                       "pt": "msg",
                       "to": "payload + min",
                       "tot": "jsonata"
                   }
               ],
               "action": "",
               "property": "",
               "from": "",
               "to": "",
               "reg": false,
               "x": 470,
               "y": 540,
               "wires": [
                   [
                       "fe349cde83c4a38f"
                   ]
               ]
           },
           {
               "id": "ed181533a83f5bb9",
               "type": "debug",
               "z": "0f6c6da0c2e7c7d5",
               "name": "msg.post",
               "active": true,
               "tosidebar": true,
               "console": false,
               "tostatus": false,
               "complete": "post",
               "targetType": "msg",
               "statusVal": "",
               "statusType": "auto",
               "x": 1280,
               "y": 480,
               "wires": []
           },
           {
               "id": "2a6284036825c84a",
               "type": "junction",
               "z": "0f6c6da0c2e7c7d5",
               "x": 320,
               "y": 540,
               "wires": [
                   [
                       "7b1c98132a6082fb"
                   ]
               ]
           },
           {
               "id": "81b442cfd21bc903",
               "type": "ui_group",
               "name": "Ladeeinstellung",
               "tab": "f39009d602e9336a",
               "order": 1,
               "disp": true,
               "width": "6",
               "collapse": false,
               "className": ""
           },
           {
               "id": "f39009d602e9336a",
               "type": "ui_tab",
               "name": "EPG",
               "icon": "dashboard",
               "order": 1,
               "disabled": false,
               "hidden": false
           }
        ]
        

        Wenn es arithmetisch nicht abbildbar ist, dann kannst Du noch zusätzlich mit switch nodes arbeiten.

        C 1 Reply Last reply Reply Quote 0
        • C
          csh-de @mickym last edited by

          @mickym Dankeschön, genau so ein Denkansatz hat mir gefehlt.

          neues Problem, wenn red node neustartet oder Stromausfall egal was lädt der gar nicht, erst auf Anweisung.
          Kann man da noch einen automatischen Start des ganzen auf sagen wir 6A minimum machen?

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

            @csh-de
            3 Möglichkeiten

            1. initialisiere die Kontextvariable mit einer Inject-Node.
            2. speichere den aktuellen Wert in einem Datenpunkt im iobroker
            3. speichere den Kontext im Dateisystem (wenn du NodeRed nicht innerhalb des iobrokers nutzt)

            Das mit der inject Node ist am einfachsten

            C 1 Reply Last reply Reply Quote 0
            • C
              csh-de @mickym last edited by

              @mickym Ganz lieben Dank!!!

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

              Support us

              ioBroker
              Community Adapters
              Donate

              1.0k
              Online

              31.7k
              Users

              79.7k
              Topics

              1.3m
              Posts

              2
              5
              370
              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