Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. Huawei Sun2000 & ioBroker via JS script funktioniert

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    2.1k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    931

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.2k

Huawei Sun2000 & ioBroker via JS script funktioniert

Scheduled Pinned Locked Moved ioBroker Allgemein
481 Posts 62 Posters 129.7k Views 63 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P pasges

    Hallo Leute,
    ich habe den KTL10 ohne Batterie.
    Ich hab das aktuelle Script verwendet und die IP von meinem WR eingetragen und Batterie auf [0] gesetzt. Eigentlich sollte es doch dann laufen?

    Die Werte werden leider nicht aktualisiert und ich bekomme folgende Meldungen:

    javascript.0
    2023-10-08 20:41:36.865 warn at processTimers (node:internal/timers:512:7)

    javascript.0
    2023-10-08 20:41:36.865 warn at listOnTimeout (node:internal/timers:569:17)

    javascript.0
    2023-10-08 20:41:36.865 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:2743:34)

    javascript.0
    2023-10-08 20:41:36.865 warn at Object.<anonymous> (script.js.Huawei.Solar:511:13)

    javascript.0
    2023-10-08 20:41:36.864 warn at ProcessData (script.js.Huawei.Solar:472:13)

    javascript.0
    2023-10-08 20:41:36.863 warn getState "javascript.0.Solarpower.Huawei.Inverter.1.Batterystack.1.WorkingMode" not found (3)

    javascript.0
    2023-10-08 20:41:36.863 warn at processTimers (node:internal/timers:512:7)

    javascript.0
    2023-10-08 20:41:36.863 warn at listOnTimeout (node:internal/timers:569:17)

    javascript.0
    2023-10-08 20:41:36.862 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:2743:34)

    javascript.0
    2023-10-08 20:41:36.862 warn at Object.<anonymous> (script.js.Huawei.Solar:511:13)

    javascript.0
    2023-10-08 20:41:36.862 warn at ProcessData (script.js.Huawei.Solar:452:64)

    javascript.0
    2023-10-08 20:41:36.861 warn getState "javascript.0.Solarpower.Huawei.Inverter.1.Batterystack.1.ChargeAndDischargePower" not found (3)

    javascript.0
    2023-10-08 20:41:36.861 warn at processTimers (node:internal/timers:512:7)

    javascript.0
    2023-10-08 20:41:36.861 warn at listOnTimeout (node:internal/timers:569:17)

    javascript.0
    2023-10-08 20:41:36.861 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:2743:34)

    javascript.0
    2023-10-08 20:41:36.860 warn at Object.<anonymous> (script.js.Huawei.Solar:511:13)

    javascript.0
    2023-10-08 20:41:36.860 warn at ProcessData (script.js.Huawei.Solar:449:9)

    javascript.0
    2023-10-08 20:41:36.859 warn getState "javascript.0.Solarpower.Huawei.Inverter.1.Batterystack.1.CurrentDayDischargeCapacity" not found (3)

    javascript.0
    2023-10-08 20:41:36.859 warn at processTimers (node:internal/timers:512:7)

    javascript.0
    2023-10-08 20:41:36.859 warn at listOnTimeout (node:internal/timers:569:17)

    javascript.0
    2023-10-08 20:41:36.859 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:2743:34)

    javascript.0
    2023-10-08 20:41:36.858 warn at Object.<anonymous> (script.js.Huawei.Solar:511:13)

    javascript.0
    2023-10-08 20:41:36.858 warn at ProcessData (script.js.Huawei.Solar:448:9)

    javascript.0
    2023-10-08 20:41:36.857 warn getState "javascript.0.Solarpower.Huawei.Inverter.1.Batterystack.1.CurrentDayChargeCapacity" not found (3)

    M Offline
    M Offline
    meloneA
    wrote on last edited by
    #416

    @pasges ping auf den WR vom ioBroker Host funktioniert? Modbus TCP ist sicher aktiviert?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bishop
      wrote on last edited by
      #417

      ist diese Angabe

      // Enter your battery stack setup. 2 dimensional array, e.g. [[3, 2], [3, 0]] means:
      // First inverter has two battery stacks with 3 + 2 battery modules
      // while second inverter has only one battery stack with 3 battery modules
      const BatteryUnits = [[1, 0]];
      

      korrekt wenn ich nur ein Speicher mit 5kw habe?

      R 1 Reply Last reply
      0
      • B bishop

        ist diese Angabe

        // Enter your battery stack setup. 2 dimensional array, e.g. [[3, 2], [3, 0]] means:
        // First inverter has two battery stacks with 3 + 2 battery modules
        // while second inverter has only one battery stack with 3 battery modules
        const BatteryUnits = [[1, 0]];
        

        korrekt wenn ich nur ein Speicher mit 5kw habe?

        R Offline
        R Offline
        R4
        wrote on last edited by
        #418

        @bishop
        Hab ich auch so :heavy_check_mark:

        1 Reply Last reply
        1
        • B Offline
          B Offline
          bishop
          wrote on last edited by
          #419

          Hab da mal noch eine Doofe frage!
          Was ist jetzt sinnvoller, dieses Script zu verwenden oder

          https://github.com/daolis/ioBroker.sun2000-modbus
          

          den Adapter?

          bahnuhrB R 2 Replies Last reply
          0
          • B Offline
            B Offline
            bishop
            wrote on last edited by bishop
            #420

            Doppelpost sorry

            1 Reply Last reply
            0
            • B bishop

              Hab da mal noch eine Doofe frage!
              Was ist jetzt sinnvoller, dieses Script zu verwenden oder

              https://github.com/daolis/ioBroker.sun2000-modbus
              

              den Adapter?

              bahnuhrB Online
              bahnuhrB Online
              bahnuhr
              Forum Testing Most Active
              wrote on last edited by
              #421

              @bishop sagte in Huawei Sun2000 & ioBroker via JS script funktioniert:

              https://github.com/daolis/ioBroker.sun2000-modbus

              Mit 2 Wechselrichtern klappt der neue Adapter nicht.

              habe 2 Instanzen angelegt und verschiedene ID eingegeben.
              Instanzen wurde grün; aber die 1 Instanz hat nicht aktualisiert.


              Wenn ich helfen konnte, dann Daumen hoch (Pfeil nach oben)!
              Danke.
              gute Forenbeiträge: https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge
              ScreenToGif :https://www.screentogif.com/downloads.html

              1 Reply Last reply
              0
              • B bishop

                Hab da mal noch eine Doofe frage!
                Was ist jetzt sinnvoller, dieses Script zu verwenden oder

                https://github.com/daolis/ioBroker.sun2000-modbus
                

                den Adapter?

                R Offline
                R Offline
                R4
                wrote on last edited by R4
                #422

                @bishop
                Probier's aus.
                Als ich angefangen hab gab es das noch nicht. Das Script habe ich inzwischen um ein paar Sachen erweitert, die nichts mit PV zu tun haben, und ist bei mir nun die "zentrale" HA-Lösung (mache nicht viel, das bisschen Programmieren ist für mich leicht).

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  bishop
                  wrote on last edited by
                  #423

                  besten Dank euch beiden :)

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    dragst3r
                    wrote on last edited by dragst3r
                    #424

                    Hier stand Mist. Sorry!

                    bahnuhrB 1 Reply Last reply
                    0
                    • D dragst3r

                      Hier stand Mist. Sorry!

                      bahnuhrB Online
                      bahnuhrB Online
                      bahnuhr
                      Forum Testing Most Active
                      wrote on last edited by
                      #425

                      @dragst3r

                      was ist frigate ?
                      war ist camx ?

                      Bist du im richtigen thread ?


                      Wenn ich helfen konnte, dann Daumen hoch (Pfeil nach oben)!
                      Danke.
                      gute Forenbeiträge: https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge
                      ScreenToGif :https://www.screentogif.com/downloads.html

                      D 1 Reply Last reply
                      0
                      • bahnuhrB bahnuhr

                        @dragst3r

                        was ist frigate ?
                        war ist camx ?

                        Bist du im richtigen thread ?

                        D Offline
                        D Offline
                        dragst3r
                        wrote on last edited by
                        #426

                        @bahnuhr
                        OMG, sorry. Ich hatte nach dem Login ein 503 fehler und bin daher zum falschen Thread gekommen. Beitrag bitte löschen wenn es geht.

                        bahnuhrB 1 Reply Last reply
                        0
                        • D dragst3r

                          @bahnuhr
                          OMG, sorry. Ich hatte nach dem Login ein 503 fehler und bin daher zum falschen Thread gekommen. Beitrag bitte löschen wenn es geht.

                          bahnuhrB Online
                          bahnuhrB Online
                          bahnuhr
                          Forum Testing Most Active
                          wrote on last edited by
                          #427

                          @dragst3r sagte in Huawei Sun2000 & ioBroker via JS script funktioniert:

                          Beitrag bitte löschen

                          geht nicht.


                          Wenn ich helfen konnte, dann Daumen hoch (Pfeil nach oben)!
                          Danke.
                          gute Forenbeiträge: https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge
                          ScreenToGif :https://www.screentogif.com/downloads.html

                          1 Reply Last reply
                          0
                          • B Offline
                            B Offline
                            bishop
                            wrote on last edited by bishop
                            #428

                            ich bin kein Script Experte aber ich benötige manche DP als bestätigt also
                            ack = true

                            habe das nun so gelöst

                            // perform createState() only if variable does not yet exist, and perform the check via existsState() only once for each processing round
                            {   if (testCreateState == 0)
                                {   if (!existsState(JavaInst + objectname)) { createState(objectname, value, options); }
                                    else                                            { setState(objectname, value, true); }
                                } else
                                {   setState(objectname, value, true);
                                }
                            }  
                            

                            also nach dem value "wert" mache ich noch ein true.
                            Ist das so korrekt, kann man das so machen oder ist das falsch? Jetzt sind die ganzen Datenpunkte auch nicht mehr rot :)

                            bahnuhrB 1 Reply Last reply
                            0
                            • B bishop

                              ich bin kein Script Experte aber ich benötige manche DP als bestätigt also
                              ack = true

                              habe das nun so gelöst

                              // perform createState() only if variable does not yet exist, and perform the check via existsState() only once for each processing round
                              {   if (testCreateState == 0)
                                  {   if (!existsState(JavaInst + objectname)) { createState(objectname, value, options); }
                                      else                                            { setState(objectname, value, true); }
                                  } else
                                  {   setState(objectname, value, true);
                                  }
                              }  
                              

                              also nach dem value "wert" mache ich noch ein true.
                              Ist das so korrekt, kann man das so machen oder ist das falsch? Jetzt sind die ganzen Datenpunkte auch nicht mehr rot :)

                              bahnuhrB Online
                              bahnuhrB Online
                              bahnuhr
                              Forum Testing Most Active
                              wrote on last edited by
                              #429

                              @bishop sagte in Huawei Sun2000 & ioBroker via JS script funktioniert:

                              benötige manche DP als bestätigt also
                              ack = true

                              Bitte mal Rückinfo warum man dies braucht ?


                              Wenn ich helfen konnte, dann Daumen hoch (Pfeil nach oben)!
                              Danke.
                              gute Forenbeiträge: https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge
                              ScreenToGif :https://www.screentogif.com/downloads.html

                              B 2 Replies Last reply
                              0
                              • bahnuhrB bahnuhr

                                @bishop sagte in Huawei Sun2000 & ioBroker via JS script funktioniert:

                                benötige manche DP als bestätigt also
                                ack = true

                                Bitte mal Rückinfo warum man dies braucht ?

                                B Offline
                                B Offline
                                bishop
                                wrote on last edited by bishop
                                #430

                                @bahnuhr

                                z.b. bei dem awtrix-light Adapter werden die Werte an der Uhr nicht aktualisiert wenn sie nicht bestätigt sind.
                                Und die rote Farbe mag ich nicht :)

                                bahnuhrB 1 Reply Last reply
                                0
                                • B bishop

                                  @bahnuhr

                                  z.b. bei dem awtrix-light Adapter werden die Werte an der Uhr nicht aktualisiert wenn sie nicht bestätigt sind.
                                  Und die rote Farbe mag ich nicht :)

                                  bahnuhrB Online
                                  bahnuhrB Online
                                  bahnuhr
                                  Forum Testing Most Active
                                  wrote on last edited by
                                  #431

                                  @bishop sagte in Huawei Sun2000 & ioBroker via JS script funktioniert:

                                  awtrix-light Adapter

                                  kenn ich nicht.

                                  @bishop sagte in Huawei Sun2000 & ioBroker via JS script funktioniert:

                                  Und die Rote Farbe mag ich nicht

                                  Hat mich noch nie gestört.
                                  Und hat bisher auch alles mit "roter Farbe" geklappt.

                                  Aber ja, bei Aktoren z.B. Homematic ist es schon wichtig dass der Wert auch bestätigt wird.
                                  Aber bei Daten vom Huawei Wechselrichter ?!


                                  Wenn ich helfen konnte, dann Daumen hoch (Pfeil nach oben)!
                                  Danke.
                                  gute Forenbeiträge: https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge
                                  ScreenToGif :https://www.screentogif.com/downloads.html

                                  B 1 Reply Last reply
                                  0
                                  • bahnuhrB bahnuhr

                                    @bishop sagte in Huawei Sun2000 & ioBroker via JS script funktioniert:

                                    awtrix-light Adapter

                                    kenn ich nicht.

                                    @bishop sagte in Huawei Sun2000 & ioBroker via JS script funktioniert:

                                    Und die Rote Farbe mag ich nicht

                                    Hat mich noch nie gestört.
                                    Und hat bisher auch alles mit "roter Farbe" geklappt.

                                    Aber ja, bei Aktoren z.B. Homematic ist es schon wichtig dass der Wert auch bestätigt wird.
                                    Aber bei Daten vom Huawei Wechselrichter ?!

                                    B Offline
                                    B Offline
                                    bishop
                                    wrote on last edited by
                                    #432

                                    @bahnuhr
                                    muss ja nicht geändert werden. Finde es halt somit abgeschlossen.

                                    1 Reply Last reply
                                    0
                                    • B Offline
                                      B Offline
                                      bishop
                                      wrote on last edited by
                                      #433

                                      @Chris_B
                                      ist es evtl. möglich das Script um ein paar Infos zu erweitern?
                                      Ich habe die Datenpunkte bei z.b.

                                      {
                                        "common": {
                                          "name": "Solarpower.Huawei.Inverter.1.Battery.RunningStatus",
                                          "unit": "",
                                          "role": "state",
                                          "type": "mixed",
                                          "states": {
                                            "0": "offline",
                                            "1": "stand by",
                                            "2": "running",
                                            "3": "fault",
                                            "4": "sleep mode"
                                          }
                                        },
                                      

                                      oder

                                      {
                                        "common": {
                                          "name": "Solarpower.Huawei.Meter.Status",
                                          "unit": "",
                                          "role": "state",
                                          "type": "mixed",
                                          "states": {
                                            "0": "offline",
                                            "1": "normal"
                                          }
                                        },
                                      

                                      erweitert da ich nur mit der Zahl nichts anfangen kann.
                                      Ist es möglich das in deinem Script zu integrieren?

                                      C 1 Reply Last reply
                                      0
                                      • bahnuhrB bahnuhr

                                        @bishop sagte in Huawei Sun2000 & ioBroker via JS script funktioniert:

                                        benötige manche DP als bestätigt also
                                        ack = true

                                        Bitte mal Rückinfo warum man dies braucht ?

                                        B Offline
                                        B Offline
                                        bishop
                                        wrote on last edited by
                                        #434

                                        @bahnuhr
                                        hier z.b.

                                        
                                        awtrix-light.0
                                        2023-10-31 19:25:50.383	info	[initCustomApps] State value of custom app "verbrauch" (javascript.0.Solarpower.Derived.HouseConsumption) is not acknowledged (ack: false) - waiting for new value
                                        

                                        brauch ich den Wert als bestätigt!

                                        bahnuhrB 1 Reply Last reply
                                        0
                                        • B bishop

                                          @bahnuhr
                                          hier z.b.

                                          
                                          awtrix-light.0
                                          2023-10-31 19:25:50.383	info	[initCustomApps] State value of custom app "verbrauch" (javascript.0.Solarpower.Derived.HouseConsumption) is not acknowledged (ack: false) - waiting for new value
                                          

                                          brauch ich den Wert als bestätigt!

                                          bahnuhrB Online
                                          bahnuhrB Online
                                          bahnuhr
                                          Forum Testing Most Active
                                          wrote on last edited by
                                          #435

                                          @bishop
                                          Is ja nen Ding.
                                          Hab ich noch nicht gesehen sowas.

                                          Klappt dein kleines Script wie gewollt ?


                                          Wenn ich helfen konnte, dann Daumen hoch (Pfeil nach oben)!
                                          Danke.
                                          gute Forenbeiträge: https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge
                                          ScreenToGif :https://www.screentogif.com/downloads.html

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

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

                                          753

                                          Online

                                          32.6k

                                          Users

                                          82.2k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe