GithubHelp home page GithubHelp logo

fossytom / iobroker.goodwe Goto Github PK

View Code? Open in Web Editor NEW
12.0 7.0 4.0 224 KB

Communication with GoodWe Inverter ET/EH/BH/BT Series

License: MIT License

JavaScript 100.00%
iobroker bh bt eh et goodwe inverter

iobroker.goodwe's People

Contributors

fossytom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

iobroker.goodwe's Issues

Restart Loop with js-controller 5.0.19

log.txt
After updating js-controller to 5.0.19, the adapter does not work anymore, as it is running into a restart loop.

ioBroker running in Docker Container on Syno DS920+.

js-controller 5.0.19
NPM 10.5.2
node.js 18.20.2

Connection to GW20K-ET fails

Describe the bug
Connection fails: "unhandled promise rejection: undefined is not a valid state value"

To Reproduce
Steps to reproduce the behavior:

  1. Install Version 1.0.2 of adapter
  2. Add IP of GoodWe WLAN Communication Module
  3. Connection fails due to the following errors
  4. See error

Expected behavior
Connect and fill values

Logfiles

2024-04-19 12:01:52.205 - info: goodwe.0 (4637) starting. Version 1.0.2 in /opt/iobroker/node_modules/iobroker.goodwe, node: v18.17.1, js-controller: 5.0.17
2024-04-19 12:01:52.623 - info: goodwe.0 (4637) check user admin pw iobroker: true,system.user.admin
2024-04-19 12:01:52.629 - info: goodwe.0 (4637) check group user admin group admin: false
2024-04-19 12:01:57.348 - error: goodwe.0 (4637) 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().
2024-04-19 12:01:57.349 - error: goodwe.0 (4637) unhandled promise rejection: undefined is not a valid state value
2024-04-19 12:01:57.353 - error: goodwe.0 (4637) Error: undefined is not a valid state value
at Object.maybeCallbackWithError (/opt/iobroker/node_modules/@iobroker/js-controller-common/build/lib/common/maybeCallback.js:35:17)
at Goodwe._setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5448:49)
at Goodwe.setState (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5409:21)
at /opt/iobroker/node_modules/@iobroker/js-controller-common/build/lib/common/tools.js:2022:16
at new Promise ()
at Goodwe.setStateAsync (/opt/iobroker/node_modules/@iobroker/js-controller-common/build/lib/common/tools.js:2021:16)
at Goodwe.UpdateRunningData (/opt/iobroker/node_modules/iobroker.goodwe/main.js:563:8)
at Goodwe.myTimer (/opt/iobroker/node_modules/iobroker.goodwe/main.js:617:11)
at /opt/iobroker/node_modules/iobroker.goodwe/main.js:637:44
at Timeout._onTimeout (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:1675:13)
2024-04-19 12:01:57.354 - error: goodwe.0 (4637) undefined is not a valid state value

Versions:

  • Adapter version: 1.0.2
  • JS-Controller version: 5.0.17
  • Node version: v18.17.1
  • Operating system: Raspbian GNU/Linux 12

Additional context
n/a

Adapter Terminated

Der Adapter wir nach ca. einem Tag durch IoBroker mit der angehängten Meldung terminiert.
Davor werden die Werte immer mal wieder auf 0 zurückgesetzt und neungeholt.

DACDE397-164D-46F4-A245-552219893A6C

Missing Data?

Question i intalled your adapter in version 1.0.4 and have installed an goodwe 5048d-es installed. in The app i can see the discarge and the soc. but in your adapter there ist everything empty:
image
is there any possibility to get that data?

Support for new model GW2500SX-11 / auth error ?

I try to connect my goodwe single phase inverter to iobroker (in same way as hybrid inverter GW10KN-ET). The hybrid inverter is connected but the single phase inverter is logging something about auth "check user admin pw iobroker: false,system.user.admin". The iobroker json config contains only IP and poll cycle. Any other option to get connected to GW-XS inverter ..

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

goodwe.1
2024-06-17 13:18:16.835 info check group user admin group admin: false

goodwe.1
2024-06-17 13:18:16.831 info check user admin pw iobroker: false,system.user.admin

goodwe.1
2024-06-17 13:18:16.707 info starting. Version 1.0.4 (non-npm: FossyTom/ioBroker.goodwe#8d36899279986a1d9f645ba284ca0400c5937470) in /usr/local/iobroker/node_modules/iobroker.goodwe, node: v18.20.3, js-controller: 5.0.19

goodwe.1
2024-06-17 13:18:13.403 info terminating

goodwe.1
2024-06-17 13:18:12.902 info Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason

goodwe.1
2024-06-17 13:18:12.901 info terminating

goodwe.1
2024-06-17 13:18:12.900 info Got terminate signal TERMINATE_YOURSELF

Versions:

  • Adapter version:
  • JS-Controller version:
  • Node version:
  • Operating system:

Additional context
Add any other context about the problem here.


Update

The XS inverter is part of the DT family with different registers (https://github.com/MiG-41/Modbus-GoodWe-DT) , so it's obvious that this package will not work. Please ignore this post. There is a python package with XS support https://pypi.org/project/goodwe/ based on above register definitions. Maybe worth to consider for further versions or a big PR.

goodwe.0.RunningData.EnergyDayBuyis empty

great job !

but the object goodwe.0.RunningData.EnergyDayBuy is empty on my installation. should it be the imported kwh from grid on this day ?

i use the GW10 ET Plus inverter

List of Objects

Hello,

I just installed the adapter and wanted to ask if there is any list / documentation / manual for the various objects generated by the adapter. I have found a manual for modpus tcp values from goodwe, however I am not really a professional and I can hardly differentiate between the various "similar" sounding values. Especially the various "energy" and "power" values.

Best
aradhir

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.