npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

iobroker.sun2000

v0.17.1

Published

sun2000

Downloads

1,003

Readme

Logo

ioBroker.sun2000

NPM version Downloads Number of Installations Current version in stable repository Documentation Wiki Donate

NPM

Tests: Test and Release

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.

sun2000 adapter for ioBroker

Read and write register data from Huawei SUN2000 inverter and LUNA2000 battery using Modbus TCP. Third-party devices can be integrated via the modbus proxy. Even a Huawei SmartLogger can be integrated.

Huawei product information

Feel free to follow the discussions in the german iobroker forum

Dependencies

  • Node.js 18.18.0 or higher
  • ioBroker host (js-controller) 5.0.19 or higher
  • ioBroker admin 5.1.13 or higher

Documentation

See the documentation page or browse in the wiki

Supported hardware

  • 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

Feature list

  • 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.

Changelog

0.17.1 (2024-11-21)

  • 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

0.17.0 (2024-11-05)

  • adjust for Responsive Design #134
  • migrate to ESLint 9.x
  • node >= v18.18.0
  • modbus-proxy: enabled reading data via input register

0.16.0 (2024-11-01)

  • dependency and configuration updates
  • read additional register data of Huawei Emma

0.15.2 (2024-10-30)

  • EMMA Device was not initialized

0.15.1 (2024-10-28)

  • SDongle data was not written as object states
  • adjust the adapter settings

0.15.0 (2024-10-24)

  • dependency and configuration updates
  • display a clearly legible table bar #121
  • modbus-proxy write data also to the read cache #119

0.14.0 (2024-10-20)

  • adjust for Responsive Design #121
  • lock on asynchronous modbus code
  • writing data ​​via the modbus-proxy #119
  • read additional register data of Huawei Emma

0.13.0 (2024-10-11)

  • improve Modbus reconnection #116
  • configuration update
  • initial Integration of Huawei Emma (Huawei Energy Management Assistant) #63

0.12.1 (2024-09-29)

  • no warning from check the valid number during standby: "no irradiation"

0.12.0 (2024-09-23)

  • Requirements from ioBroker Check and Service Bot #104
  • added battery packs #85
  • added config panel Further Register

0.11.0 (2024-06-27)

  • added a donation link in the adapter settings
  • dependency updated

0.10.0 (2024-06-14)

  • 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

0.9.0 (2024-05-09)

  • dependency and configuration updates
  • modbus device remains active in standby on the inverter M2,M3

0.8.0 (2024-04-19)

  • 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

0.7.1 (2024-04-09)

  • inverter model name too many characters #73

0.7.0 (2024-04-03)

  • breaking changes
    • Node.js 18.x or higher required
    • ioBroker host (js-controller) 5.x or higher

0.6.2 (2024-03-31)

  • standby detection adjusted
  • improvement of logs

0.6.1 (2024-03-23)

  • Battery control: After the second failed attempt, the control event is discarded
  • Battery control: Adjust the battery maxCharge and Discharge to the actual values

0.6.0 (2024-03-21)

  • realization the "battery charge control" #61
  • fix the standby detection #60

0.5.1 (2024-03-11)

  • config page restructured
  • read only the required string data
  • fix interval medium

0.5.0 (2024-03-07)

  • 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

0.4.1 (2024-03-03)

  • read PV string data slower (medium interval)

0.4.0 (2024-03-01)

  • 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)

0.3.1 (2024-02-12)

  • state sun2000.0.collected.chargeDischargePowercharge is not always refreshed #47

0.3.0 (2024-02-10)

  • 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

0.2.1 (2024-02-02)

0.2.0 (2024-01-24)

  • 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

0.1.3 (2024-01-17)

  • display the data from PV strings (#27)
  • optimize the timing of interval loop
  • improved handling of read timeouts from more then 2 inverters

0.1.2 (2024-01-12)

  • 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

0.1.1 (2024-01-07)

  • fix some collected values

0.1.0 (2024-01-06)

  • watchdog implemented #11
  • state values are cached - only changed data should be stored
  • derived and collected values for example inputPowerEffective or inputYield
  • deploy more register

0.0.2 (2023-12-19)

Dependency and configuration updates

0.0.1

initial release

License

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.