fossytom / iobroker.goodwe Goto Github PK
View Code? Open in Web Editor NEWCommunication with GoodWe Inverter ET/EH/BH/BT Series
License: MIT License
Communication with GoodWe Inverter ET/EH/BH/BT Series
License: MIT License
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
Describe the bug
Connection fails: "unhandled promise rejection: undefined is not a valid state value"
To Reproduce
Steps to reproduce the behavior:
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:
Additional context
n/a
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:
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.
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.