snaptec / openWB

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

Nightly 1.9.304: pymodbus exception connecting to SolarEdge WR #2827

Open mwilck opened 3 months ago

mwilck commented 3 months ago

I tried to update to the 1.9.304 nightly today (2024-03-11 14:39:13 +0100 [5a6a1a6d]), because I wanted to have the latest EVCC binary included (#2826).

With this nightly build, the connection to my SolarEdge WR fails:

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.1.171:502)]
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 119, in __enter__
self.delegate.__enter__()
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 52, in __enter__
with dev.client:
File "/var/www/html/openWB/packages/modules/devices/solaredge/device.py", line 217, in read_legacy
Traceback (most recent call last):
2024-03-12 10:13:12: PID: 7619: modules.common.fault_state: SolarEdge Wechselrichter: FaultState FaultStateLevel.ERROR, FaultStr <class 'pymodbus.exceptions.ConnectionException'> Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.1.171:502)], Traceback:
2024-03-12 10:13:12: PID: 7619: pymodbus.client.sync: Connection to (192.168.1.171, 502) failed: [Errno 111] Connection refused
2024-03-12 10:13:04: PID: 7619: pymodbus.client.sync: Connection to (192.168.1.171, 502) failed: [Errno 111] Connection refused

This message is printed repeatedly. With the previously installed version (stable 1.9.303), this issue didn't occur.

For now, I'll restore the backup of the stable version.