snaptec / openWB

openWB - die modulare Wallbox
https://openwb.de
GNU General Public License v3.0
340 stars 204 forks source link

GoodWe implementation not working with the GoodWe-Wifi-Dongle #2751

Open scroom opened 1 year ago

scroom commented 1 year ago

Hi,

Yesterday we connected our PV system and our OpenWB wallbox. Unfortunately, the OpenWB does not seem to recognise the GoodWe inverter GW10K-ET with connected BYD electricity storage (BYD-Box Premium HVS 5.1).

Under the Status tab, I get the following error message for EVU: "<class 'pymodbus.exceptions.ConnectionException'> Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.188.49:502)]".

The IP address is correct. Both devices are connected to a network (FritzBox) via WLAN.

scroom commented 1 year ago

As I gathered from the following forum entry, the connection via the WIFI adapter probably does not work via Modbus:

https://forum.iobroker.net/topic/59207/how-to-goodwe-wechselrichter-und-modbus-tcp/49

But there is a well-functioning plug-in for the iobroker:

https://github.com/FossyTom/ioBroker.goodwe

It would be great if the OpenWB could also query the data when the inverter is connected via WLAN.

hhoefling commented 1 year ago

What about the 502 . Port correct?

Hi,

Yesterday we connected our PV system and our OpenWB wallbox. Unfortunately, the OpenWB does not seem to recognise the GoodWe inverter GW10K-ET with connected BYD electricity storage (BYD-Box Premium HVS 5.1).

Under the Status tab, I get the following error message for EVU: "<class 'pymodbus.exceptions.ConnectionException'> Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.188.49:502)]".

The IP address is correct. Both devices are connected to a network (FritzBox) via WLAN.

-- Reply to this email directly or view it on GitHub: https://github.com/snaptec/openWB/issues/2751 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

scroom commented 1 year ago

According to the following GoodWe document, yes, but apparently the LAN adapter or the LAN/Wifi adapter is required for Modbus, as already described:

https://community.goodwe.com/resources/goodwe/2021-12-14558424.pdf

However, the IOBroker implementation also works with the Wifi adapter.

scroom commented 1 year ago

It is also described here in the forum that you can probably retrieve the data via Modbus UDP:

https://openwb.de/forum/viewtopic.php?t=6990

hhoefling commented 1 year ago

openwb use tcp/ip not tcp/udp

scroom commented 1 year ago

It would be great if UDP were also supported, as otherwise, for example, the GoodWe inverter cannot be used with the Wifi dongle. The Pymodbus used at least also supports transport via UDP:

https://pymodbus.readthedocs.io/en/v3.0.1/source/library/pymodbus.client.html