This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers.
For more details and for information how to disable the error reporting see Sentry-Plugin Documentation!
Sentry reporting is used starting with js-controller 3.0.
Read and write register data from Huawei SUN2000 inverter and LUNA2000 battery using Modbus TCP. Third-party devices can access via the modbus proxy. Even a Huawei SmartLogger or an Huawei Emma can be integrated.
Feel free to follow the discussions in the german iobroker forum
- Node.js 18.18.0 or higher
- ioBroker host (js-controller) 5.0.19 or higher
- ioBroker admin 5.1.13 or higher
See the documentation page or browse in the wiki
- HUAWEI Inverter SUN2000 Serie (M0,M1,M2 and higher)
- HUAWEI Smart Dongle-WLAN-FE / min. Softwareversion: V100R001C00SPC133 (SDongleA-05)
- HUAWEI Luna2000 Battery
- HUAWEI Smart Power Sensor DTSU666-H or DDSU666-H
- HUAWEI Smart Logger / min. Softwareversion: V300R023C10SPC311
- HUAWEI EMMA / min. Softwareversion: V100R024C00SPC101
- Maximum
5 inverters
(master/slave) can be processed, each with a battery module (max. 15kWh). Real-time
values such as input power, output power, charging/discharging power and the grid consumption are read out at a fixed interval.- States are only written for changed data from the inverter. This relieves the burden on the iobroker instance.
- The states “inputPower” or “activePower” in the “collected” path can be monitored with a “was updated” trigger element. Because these states are always written within the set interval.
Battery charge control
: The battery charging mode of Huawei LUNA2000 batteries can be controlled. Here you can activate and deactivate the battery charging mode to "charging from grid”. In addition, the charging capacity and charging power can be adjusted.Force charge discharge battery
: Forced charge/discharge is usually used to test the battery connected to an inverter. Normally it is not recommended to perform forced charging/discharging.Export Control
: The excess PV energy is fed into the power grid, but not all countries allow users to sell electricity. Some countries have introduced regulations to restrict the sale of electricity to the grid.modbus-proxy
: Third party device such as wallbox, energy manager etc. can receive data even if the modbus interface of inverter is already in use. In addition you can mirror the sun2000 data to another IoBroker instance.- Huawei
SmartLogger
integration: Monitors and manages the PV power system. The adapter saves the collected data in the same way as it does when read out the inverter directly. - Huawei
Emma
integration: The Modbus access, network connectivity (WiFi and Ethernet) and the DDSU/DTSU-666H smart meter functions are integrated in one unit - the use of the Sdongle becomes redundant. In addition Huawei EV chargers and load shedding/control (via selected Shelly devices) are supported and "intelligent" controlled.
- dependency and configuration updates
- modbus-proxy: the modbus ID 250 is mapped to ID 0
- during the device status "Standby: detecting irradiation" (0x0002) register data is now also read from the inverter
- The reading order of the battery data has been adjusted
- adjust for Responsive Design #134
- migrate to ESLint 9.x
- node >= v18.18.0
- modbus-proxy: enabled reading data via input register
- dependency and configuration updates
- read additional register data of Huawei Emma
- EMMA Device was not initialized
- SDongle data was not written as object states
- adjust the adapter settings
- dependency and configuration updates
- display a clearly legible table bar #121
- modbus-proxy write data also to the read cache #119
- adjust for Responsive Design #121
- lock on asynchronous modbus code
- writing data via the modbus-proxy #119
- read additional register data of Huawei Emma
- improve Modbus reconnection #116
- configuration update
- initial Integration of Huawei Emma (Huawei Energy Management Assistant) #63
- no warning from check the valid number during standby: "no irradiation"
- Requirements from ioBroker Check and Service Bot #104
- added battery packs #85
- added config panel
Further Register
- added a donation link in the adapter settings
- dependency updated
- dependency and configuration updates
- adjust roles in the control path
- Battery control: add backup power SOC #84
- fix: wrong state name
control.battery.targetSOC
with trailing space
- dependency and configuration updates
- modbus device remains active in standby on the inverter M2,M3
- Check numerical values for plausibility #75
- realization the "limit the power fed to grid" (Export control)
- realization the "forcible Charge or Discharge Power"
- If the error 'ECONNRESET' appear, the modbus proxy should not terminate
- inverter model name too many characters #73
- breaking changes
- Node.js 18.x or higher required
- ioBroker host (js-controller) 5.x or higher
- standby detection adjusted
- improvement of logs
- Battery control: After the second failed attempt, the control event is discarded
- Battery control: Adjust the battery maxCharge and Discharge to the actual values
- realization the "battery charge control" #61
- fix the standby detection #60
- config page restructured
- read only the required string data
- fix interval medium
- Integration of Huawei SmartLogger
- some meter states the unit was changed (for example sun2000.0.meter.activePowerL1) (#56)
- sun2000 serie M2 or higher can also be processed
- read PV string data slower (medium interval)
- detect standby mode of inverters (#34)
- devices in standby often give incorrect values. These are assigned "0" (#40)
- the modbus register and the length are stored in the description of the states
- implemented modbus-proxy (read-only cache)
- read register data from SDongleA
- additional loop interval medium (SDongle data)
- Integration of NRGkick Wallbox
- read string data faster (high interval)
- state
sun2000.0.collected.chargeDischargePowercharge
is not always refreshed #47
- add battery unit information for example temperature #40
- modbus timeout, connect delay and delay can be configured #34
- device status as plain text
sun2000.0.inverter.x.derived.deviceStatus
- Introduction of a driver model. A separate driver can be created for each device #41
- Requirements from Add sun2000 to latest
- Add sun2000 to latest
- improve error handling (#34)
- add simple optimizer info
- Riemann sum of input power with energy loss for new state
dailySolarYield
- try to recreate the
yield today
from the fusion portal
- display the data from PV strings (#27)
- optimize the timing of interval loop
- improved handling of read timeouts from more then 2 inverters
- fix: no Data if interval less 20 sec (#24)
- prepare collected values more precisely
- expand up to 5 inverters #18
- fix: problems with multiple inverters
- fix some collected values
- watchdog implemented #11
- state values are cached - only changed data should be stored
- derived and collected values for example
inputPowerEffective
orinputYield
- deploy more register
Dependency and configuration updates
initial release
MIT License
Copyright (c) 2024 bolliy [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.