Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter sun2000 v0.1.x - Huawei Wechselrichter

    NEWS

    • Amazon Alexa - ioBroker Skill läuft aus ?

    • Monatsrückblick – September 2025

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    Test Adapter sun2000 v0.1.x - Huawei Wechselrichter

    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cksoft @bolliy last edited by

      @bolliy : Danke, top. Ansonsten funktioniert der Adapter auch mit der Emma einwandfrei.

      IMHO = in my humble opinion = meiner bescheidenen Meinung nach 🙂

      1 Reply Last reply Reply Quote 0
      • C
        cksoft @bolliy last edited by

        @bolliy vielleicht hilft das.. Bildschirmfoto 2025-10-17 um 10.43.48.png

        1 Reply Last reply Reply Quote 1
        • B
          bolliy Developer last edited by

          Neue Testversion sun2000 Adapter Version v2.3.0 released.

          Die Installation erfolgt über npm oder morgen über das Beta Repository.

          Diesmal gibt es etliche Änderungen. Die reichen vom Starten und Stoppen des Wechselrichters bis zur der Möglichkeit die Batterie(n) über die Emma aus dem Netz zu laden.

          Viele neue Funktionen sind noch nicht im Wiki dokumentiert. Bitte folgt den Diskussionen aus den Issue- und Diskussions-/Links auf gitHub, die im Changlog zu finden sind.

          Changelog

          2.3.0 (2025-10-21)

          • inverter control: add same state for startup and shutdown an inverter #199
          • fix: Device status name has been corrected #202
          • add undocumented device status Shutdown: End of the ESS discharge process
          • emma control: new state emma.control.battery.ESSControlMode. You can now configure EMMA with TOU-mode (Time of Use) to charge the battery from grid. #200
          • if an Emma is installed, some control states of the inverter are deactivated (read only). Mainly for the grid settings.
          • deprecated control states have been removed.
          • a workaround for issue #582 of node-modbus-serial has been implemented.

          Have fun testing 😉

          bahnuhr 3 Replies Last reply Reply Quote 1
          • bahnuhr
            bahnuhr Forum Testing Most Active @bolliy last edited by

            @bolliy

            in log kommt:

            host.iobroker
            2025-10-21 18:35:21.414	info	Restart adapter system.adapter.sun2000.0 because enabled
            
            host.iobroker
            2025-10-21 18:35:21.414	error	instance system.adapter.sun2000.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
            
            host.iobroker
            2025-10-21 18:35:21.414	error	Caught by controller[1]: at Sun2000.dataPolling (/opt/iobroker/node_modules/iobroker.sun2000/main.js:515:33)
            
            host.iobroker
            2025-10-21 18:35:21.414	error	Caught by controller[1]: at Emma.updateStates (/opt/iobroker/node_modules/iobroker.sun2000/lib/drivers/driver_base.js:309:4)
            
            host.iobroker
            2025-10-21 18:35:21.414	error	Caught by controller[1]: at ServiceQueueMap.process (/opt/iobroker/node_modules/iobroker.sun2000/lib/controls/emma_service_queue.js:257:4)
            
            host.iobroker
            2025-10-21 18:35:21.414	error	Caught by controller[1]: at processTicksAndRejections (node:internal/process/task_queues:95:5)
            
            host.iobroker
            2025-10-21 18:35:21.414	error	Caught by controller[1]: at ServiceQueueMap._init (/opt/iobroker/node_modules/iobroker.sun2000/lib/controls/emma_service_queue.js:140:34)
            
            host.iobroker
            2025-10-21 18:35:21.414	error	Caught by controller[1]: at Emma.addHoldingRegisters (/opt/iobroker/node_modules/iobroker.sun2000/lib/drivers/driver_base.js:64:16)
            
            host.iobroker
            2025-10-21 18:35:21.414	error	Caught by controller[1]: at RegisterMap.set (/opt/iobroker/node_modules/iobroker.sun2000/lib/tools.js:152:30)
            
            host.iobroker
            2025-10-21 18:35:21.414	error	Caught by controller[1]: TypeError: Cannot read properties of undefined (reading 'length')
            
            host.iobroker
            2025-10-21 18:35:21.413	error	Caught by controller[0]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
            
            sun2000.0
            2025-10-21 18:35:20.811	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason
            
            sun2000.0
            2025-10-21 18:35:20.811	info	terminating
            
            sun2000.0
            2025-10-21 18:35:20.810	info	cleaned everything up...
            
            sun2000.0
            2025-10-21 18:35:20.799	error	Cannot read properties of undefined (reading 'length')
            
            sun2000.0
            2025-10-21 18:35:20.799	error	TypeError: Cannot read properties of undefined (reading 'length') at RegisterMap.set (/opt/iobroker/node_modules/iobroker.sun2000/lib/tools.js:152:30) at Emma.addHoldingRegisters (/opt/iobroker/node_modules/iobroker.sun2000/lib/drivers/driver_base.js:64:16) at ServiceQueueMap._init (/opt/iobroker/node_modules/iobroker.sun2000/lib/controls/emma_service_queue.js:140:34) at processTicksAndRejections (node:internal/process/task_queues:95:5) at ServiceQueueMap.process (/opt/iobroker/node_modules/iobroker.sun2000/lib/controls/emma_service_queue.js:257:4) at Emma.updateStates (/opt/iobroker/node_modules/iobroker.sun2000/lib/drivers/driver_base.js:309:4) at Sun2000.dataPolling (/opt/iobroker/node_modules/iobroker.sun2000/main.js:515:33)
            
            sun2000.0
            2025-10-21 18:35:20.796	error	unhandled promise rejection: Cannot read properties of undefined (reading 'length')
            
            sun2000.0
            2025-10-21 18:35:20.796	error	Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
            
            sun2000.0
            2025-10-21 18:35:20.716	info	inverter control: Service queue initialized
            
            sun2000.0
            2025-10-21 18:35:20.633	info	inverter control: Service queue initialized
            
            sun2000.0
            2025-10-21 18:35:20.632	info	inverter control: The default TOU setting are transferred to the inverter.
            
            1 Reply Last reply Reply Quote 0
            • bahnuhr
              bahnuhr Forum Testing Most Active @bolliy last edited by

              @bolliy

              Nachtrag:
              Instanz wird nicht mehr grün !
              Adapter startet ständig neu.

              Gehe wieder auf 2.2.0

              1 Reply Last reply Reply Quote 0
              • bahnuhr
                bahnuhr Forum Testing Most Active @bolliy last edited by

                @bolliy
                so, downgrade auf 2.2.1
                -> geht auch nicht, gleicher Fehler wie oben

                dann downgrade auf 2.2.0
                -> das läuft wieder, Instanz wird grün

                1 Reply Last reply Reply Quote 0
                • bahnuhr
                  bahnuhr Forum Testing Most Active last edited by

                  @bolliy

                  noch was aufgefallen:
                  im log kommt:
                  6dce88db-3897-4986-8640-8b6506075976-image.png

                  und später dann:
                  b436096b-3f39-4371-b09e-71fd0dc4c833-image.png

                  lt. diesen logs ist der inv10 = id 3 und dies wurde dann inv2 zugeordnet !
                  Bei den DP ist aber der inv10 zugeordnet 0
                  a0750050-67f8-48cd-b356-d4c76ef3e0c7-image.png
                  Warum stimmt das log nicht ??

                  B 1 Reply Last reply Reply Quote 0
                  • B
                    bolliy Developer last edited by

                    Neue Testversion sun2000 Adapter Version v2.3.1 released.

                    Die Installation erfolgt über npm oder morgen über das Beta Repository.

                    2.3.1 (2025-10-21)

                    • fix: handle potential null values in set method of RegisterMap

                    Stephan

                    bahnuhr 1 Reply Last reply Reply Quote 1
                    • bahnuhr
                      bahnuhr Forum Testing Most Active @bolliy last edited by

                      @bolliy

                      yes, 2.3.1 wird grün.
                      Alles ok.

                      1 Reply Last reply Reply Quote 0
                      • B
                        bolliy Developer @bahnuhr last edited by bolliy

                        @bahnuhr was steht im Modbus-Wechselrichter-IDs in deiner Konfiguration?

                        bahnuhr 1 Reply Last reply Reply Quote 0
                        • bahnuhr
                          bahnuhr Forum Testing Most Active @bolliy last edited by

                          @bolliy sagte in Test Adapter sun2000 v0.1.x - Huawei Wechselrichter:

                          @bahnuhr was steht im Modbus-Wechselrichter-IDs in deiner Konfiguration?

                          meinst du in FS?

                          Dort steht:
                          WR 10 = id 3
                          WR 8 = id 5
                          WR 6 = id 6

                          B 1 Reply Last reply Reply Quote 0
                          • B
                            bolliy Developer @bahnuhr last edited by

                            @bahnuhr ich meine hier:
                            62633243-7972-46ef-9ab9-0bb055e223a7-grafik.png

                            bahnuhr 1 Reply Last reply Reply Quote 0
                            • bahnuhr
                              bahnuhr Forum Testing Most Active @bolliy last edited by

                              @bolliy

                              e69a7560-eb13-4ca4-b9ce-c7bcbd9da8ff-image.png

                              B 1 Reply Last reply Reply Quote 0
                              • B
                                bolliy Developer @bahnuhr last edited by

                                @bahnuhr das ist interessant.
                                Was dort später kommt ist aus der Emma gelesen. Dort sind die WR anders zugeordnet.
                                Ist aber ok und völlig unkritisch.

                                Stephan

                                1 Reply Last reply Reply Quote 0
                                • V
                                  vusolo2 last edited by

                                  @bolliy
                                  Hallo ist es möglich die Spannung und den Strom direkt aus dem Batteriepack auzulesen mit reg 38235 und 38236 für [Energystorage unit1][Batterypack1], müsste dann noch erweitert werden auf alle 3 Blöcke. Aktuell wird nur die BusVoltage ausgelesen womit ich nicht viel anfangen kann.

                                  bahnuhr B 3 Replies Last reply Reply Quote 0
                                  • bahnuhr
                                    bahnuhr Forum Testing Most Active @vusolo2 last edited by

                                    @vusolo2 sagte in Test Adapter sun2000 v0.1.x - Huawei Wechselrichter:

                                    Spannung und den Strom

                                    Und was macht man dann damit?
                                    Nur mal für mich, rein interesse halber.

                                    W wird ja ausgelesen.

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      bolliy Developer @vusolo2 last edited by

                                      @vusolo2 mach mal auf github ein issue mit der genauen Beschreibung/Anforderung auf.

                                      Stephan

                                      1 Reply Last reply Reply Quote 0
                                      • B
                                        bolliy Developer @vusolo2 last edited by bolliy

                                        @vusolo2 sagte in Test Adapter sun2000 v0.1.x - Huawei Wechselrichter:

                                        Reg 38235 wird bereits ausgelesen, sofern du es in der Config einstellst:

                                        2e8faecc-2ea6-42fc-b77f-bf4ac23f4625-grafik.png

                                        Dein issue bezieht sich dann nur auf Reg 38236 - oder?

                                        bahnuhr 1 Reply Last reply Reply Quote 0
                                        • bahnuhr
                                          bahnuhr Forum Testing Most Active @bolliy last edited by

                                          @bolliy sagte in Test Adapter sun2000 v0.1.x - Huawei Wechselrichter:

                                          Dein issue bezieht sich dann nur auf Reg 38236 - oder?

                                          Aber warum ?
                                          Ausgelesen wird V und W.
                                          Und daraus kann er doch A errechnen.

                                          Für mich stellt sich immer noch die Frage, warum ?

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

                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          1.1k
                                          Online

                                          32.3k
                                          Users

                                          81.0k
                                          Topics

                                          1.3m
                                          Posts

                                          adapter emma huawei inverter luna2000 modbus tcp modbus-proxy sdongle smartlogger sun2000
                                          88
                                          1077
                                          296860
                                          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