openWB Variante? Serie2
Welches PV Modul / Welcher Wechselrichter? Solaredge
Welches EVU Modul? Solaredge
Welches Speichermodul? Solaredge
Welches Auto wird geladen? Kia eNiro 2022
Die Anlage wurde von einem "Fachbetrieb" installiert und normalerweise funktioniert alles. Speicher-SoC, PV-Leistung, EVU-Leistung werden korrekt angezeigt, PV-Überschussladen funktioniert.
Morgens zeigt die OpenWB dann irgendwelche alten Werte vom Vortag an und macht natürlich nur "Quatsch". Ich hätte ein detailliertes Logfile, in dem man genau sieht, wie die OpenWB dauerhaft die alten Werte vom Abend benutzt, weil sie beim Abrufen der neuen Werte ein "Connection Refused" vom WR bekommt.
Erster Gedanke: Modbus-TCP geht nicht über WLAN. ABER: Angeblich ist alles per LAN angeschlossen, und es funktioniert nach einem reboot der OpenWB wieder wunderbar!
Hinweis: das WLAN wird nachts abgeschaltet, aber es kommen trotzdem die "Connection Refused"-Meldungen. Daher kann eigentlich kein WLAN benutzt werden (sonst müsste ja Network Timeout oder sowas kommen. Bei Interesse kann ich mehr aus dem Logfile posten.
Anfang des Logfiles gegen Mitternacht:
Code: Alles auswählen
2022-04-27 23:58:32: PID: 18913: SolarEdge: Beginning update
2022-04-27 23:58:32: PID: 18913: pymodbus.client.sync: Connection to (192.168.178.21, 502) failed: [Errno 111] Connection refused
2022-04-27 23:58:32: PID: 18913: legacy run server: Unhandled exception
Traceback (most recent call last):
File "/var/www/html/openWB/packages/legacy_run_server.py", line 48, in redirect_stdout_stderr_exceptions_to_log
yield
File "/var/www/html/openWB/packages/legacy_run_server.py", line 87, in handle_connection
self.__callback(read_all_bytes(connection))
File "/var/www/html/openWB/packages/legacy_run_server.py", line 109, in handle_message
importlib.import_module(parsed[0]).main(parsed[1:])
File "/var/www/html/openWB/modules/wr_solaredge/solaredgeall.py", line 111, in main
run_using_positional_cli_args(update, argv)
File "/var/www/html/openWB/packages/helpermodules/cli/_run_using_positional_cli_args.py", line 34, in run_using_positional_cli_args
args.RUN(args)
File "/var/www/html/openWB/packages/helpermodules/cli/_run_using_positional_cli_args.py", line 19, in <lambda>
parser.set_defaults(RUN=lambda args: function(*[getattr(args, argument_name) for argument_name in arg_spec.args]))
File "/var/www/html/openWB/modules/wr_solaredge/solaredgeall.py", line 98, in update
with ModbusClient(ipaddress) as client:
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 54, in __enter__
self.delegate.__enter__()
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 119, in __enter__
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.21:502)]
2022-04-27 23:58:32: PID: 3671: BAT RET: (LV2) at 25 main modules/speicher_solaredge/main.sh
2022-04-27 23:58:32: PID: 18913: legacy run server: Received command ["bezug_solaredge.solaredge","192.168.178.21","502","1"]
2022-04-27 23:58:32: PID: 18913: SolarEdge EVU: Beginning update
2022-04-27 23:58:32: PID: 18913: pymodbus.client.sync: Connection to (192.168.178.21, 502) failed: [Errno 111] Connection refused
2022-04-27 23:58:32: PID: 18913: legacy run server: Unhandled exception
Traceback (most recent call last):
File "/var/www/html/openWB/packages/legacy_run_server.py", line 48, in redirect_stdout_stderr_exceptions_to_log
yield
File "/var/www/html/openWB/packages/legacy_run_server.py", line 87, in handle_connection
self.__callback(read_all_bytes(connection))
File "/var/www/html/openWB/packages/legacy_run_server.py", line 109, in handle_message
importlib.import_module(parsed[0]).main(parsed[1:])
File "/var/www/html/openWB/modules/bezug_solaredge/solaredge.py", line 69, in main
run_using_positional_cli_args(update, argv)
File "/var/www/html/openWB/packages/helpermodules/cli/_run_using_positional_cli_args.py", line 34, in run_using_positional_cli_args
args.RUN(args)
File "/var/www/html/openWB/packages/helpermodules/cli/_run_using_positional_cli_args.py", line 19, in <lambda>
parser.set_defaults(RUN=lambda args: function(*[getattr(args, argument_name) for argument_name in arg_spec.args]))
File "/var/www/html/openWB/modules/bezug_solaredge/solaredge.py", line 27, in update
with ModbusClient(ipaddress, port=modbusport) as client:
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 54, in __enter__
self.delegate.__enter__()
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 119, in __enter__
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.21:502)]
2022-04-27 23:58:32: PID: 3710: EVU RET: 0 (LV2) at 21 main modules/bezug_solaredge/main.sh
2022-04-27 23:58:32: PID: 3533: speicherleistung -911 speichersoc 86 (LV1) at 1290 loadvars loadvars.sh
2022-04-27 23:58:32: PID: 3533: pv1watt 0 pv2watt pvwatt 0 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 6 maximalA 16 (LV1) at 1295 loadvars loadvars.sh
2022-04-27 23:58:32: PID: 3533: lla1 0 llv1 236.5 llas11 llas21 mindestuberschuss 500 abschaltuberschuss 5 lademodus 3 (LV1) at 1296 loadvars loadvars.sh
2022-04-27 23:58:32: PID: 3533: lla2 0 llv2 236.8 llas12 llas22 sofortll 16 hausverbrauch 928 wattbezug 17 uberschuss -17 (LV1) at 1297 loadvars loadvars.sh
2022-04-27 23:58:32: PID: 3533: lla3 0 llv3 235.7 llas13 llas23 soclp1 0 soclp2 (LV1) at 1298 loadvars loadvars.sh
2022-04-27 23:58:32: PID: 3533: EVU 1:V/0A 2: V/2A 3: V/1A (LV1) at 1299 loadvars loadvars.sh
2022-04-27 23:58:32: PID: 3533: lp1enabled 1 lp2enabled 1 lp3enabled 1 (LV1) at 1300 loadvars loadvars.sh
2022-04-27 23:58:32: PID: 3533: plugstatlp1 0 plugstatlp2 0 plugstatlp3 0 (LV1) at 1301 loadvars loadvars.sh
2022-04-27 23:58:33: PID: 3533: chargestatlp1 0 chargestatlp2 0 chargestatlp3 0 (LV1) at 1302 loadvars loadvars.sh
2022-04-27 23:58:34: PID: 3533: Zeit zum abfragen aller Werte 3 Sekunden (LV1) at 176 main /var/www/html/openWB/regel.sh
2022-04-27 23:58:34: PID: 3533: automatische Umschaltung aktiv (LV1) at 14 u1p3pswitch u1p3p.sh
2022-04-27 23:58:34: PID: 3533: Timing Umschaltung: 300 / 660 (LV1) at 15 u1p3pswitch u1p3p.sh
2022-04-27 23:58:34: PID: 3533: **** Regulation loop needs 3 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-04-27 23:58:41: PID: 4843: **** Regulation loop start **** (LV1) at 70 main /var/www/html/openWB/regel.sh
2022-04-27 23:58:42: PID: 18913: legacy run server: Received command ["wr_solaredge.solaredgeall","192.168.178.21","1","none","none","none","1","1","0","0"]
Code: Alles auswählen
2022-04-28 09:01:12: PID: 18913: SolarEdge: Beginning update
2022-04-28 09:01:12: PID: 18913: pymodbus.client.sync: Connection to (192.168.178.21, 502) failed: [Errno 111] Connection refused
2022-04-28 09:01:12: PID: 18913: legacy run server: Unhandled exception
Traceback (most recent call last):
File "/var/www/html/openWB/packages/legacy_run_server.py", line 48, in redirect_stdout_stderr_exceptions_to_log
yield
File "/var/www/html/openWB/packages/legacy_run_server.py", line 87, in handle_connection
self.__callback(read_all_bytes(connection))
File "/var/www/html/openWB/packages/legacy_run_server.py", line 109, in handle_message
importlib.import_module(parsed[0]).main(parsed[1:])
File "/var/www/html/openWB/modules/wr_solaredge/solaredgeall.py", line 111, in main
run_using_positional_cli_args(update, argv)
File "/var/www/html/openWB/packages/helpermodules/cli/_run_using_positional_cli_args.py", line 34, in run_using_positional_cli_args
args.RUN(args)
File "/var/www/html/openWB/packages/helpermodules/cli/_run_using_positional_cli_args.py", line 19, in <lambda>
parser.set_defaults(RUN=lambda args: function(*[getattr(args, argument_name) for argument_name in arg_spec.args]))
File "/var/www/html/openWB/modules/wr_solaredge/solaredgeall.py", line 98, in update
with ModbusClient(ipaddress) as client:
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 54, in __enter__
self.delegate.__enter__()
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 119, in __enter__
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.21:502)]
2022-04-28 09:01:12: PID: 12330: BAT RET: (LV2) at 25 main modules/speicher_solaredge/main.sh
2022-04-28 09:01:12: PID: 18913: legacy run server: Received command ["bezug_solaredge.solaredge","192.168.178.21","502","1"]
2022-04-28 09:01:12: PID: 18913: SolarEdge EVU: Beginning update
2022-04-28 09:01:12: PID: 18913: pymodbus.client.sync: Connection to (192.168.178.21, 502) failed: [Errno 111] Connection refused
2022-04-28 09:01:12: PID: 18913: legacy run server: Unhandled exception
Traceback (most recent call last):
File "/var/www/html/openWB/packages/legacy_run_server.py", line 48, in redirect_stdout_stderr_exceptions_to_log
yield
File "/var/www/html/openWB/packages/legacy_run_server.py", line 87, in handle_connection
self.__callback(read_all_bytes(connection))
File "/var/www/html/openWB/packages/legacy_run_server.py", line 109, in handle_message
importlib.import_module(parsed[0]).main(parsed[1:])
File "/var/www/html/openWB/modules/bezug_solaredge/solaredge.py", line 69, in main
run_using_positional_cli_args(update, argv)
File "/var/www/html/openWB/packages/helpermodules/cli/_run_using_positional_cli_args.py", line 34, in run_using_positional_cli_args
args.RUN(args)
File "/var/www/html/openWB/packages/helpermodules/cli/_run_using_positional_cli_args.py", line 19, in <lambda>
parser.set_defaults(RUN=lambda args: function(*[getattr(args, argument_name) for argument_name in arg_spec.args]))
File "/var/www/html/openWB/modules/bezug_solaredge/solaredge.py", line 27, in update
with ModbusClient(ipaddress, port=modbusport) as client:
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 54, in __enter__
self.delegate.__enter__()
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 119, in __enter__
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.21:502)]
2022-04-28 09:01:12: PID: 12369: EVU RET: 0 (LV2) at 21 main modules/bezug_solaredge/main.sh
2022-04-28 09:01:12: PID: 12194: speicherleistung -911 speichersoc 86 (LV1) at 1290 loadvars loadvars.sh
2022-04-28 09:01:12: PID: 12194: pv1watt 0 pv2watt pvwatt 0 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 6 maximalA 16 (LV1) at 1295 loadvars loadvars.sh
2022-04-28 09:01:12: PID: 12194: lla1 0 llv1 234.6 llas11 llas21 mindestuberschuss 500 abschaltuberschuss 5 lademodus 3 (LV1) at 1296 loadvars loadvars.sh
2022-04-28 09:01:12: PID: 12194: lla2 0 llv2 235.0 llas12 llas22 sofortll 16 hausverbrauch 928 wattbezug 17 uberschuss -17 (LV1) at 1297 loadvars loadvars.sh
2022-04-28 09:01:12: PID: 12194: lla3 0 llv3 234.7 llas13 llas23 soclp1 0 soclp2 (LV1) at 1298 loadvars loadvars.sh
2022-04-28 09:01:12: PID: 12194: EVU 1:V/0A 2: V/2A 3: V/1A (LV1) at 1299 loadvars loadvars.sh
2022-04-28 09:01:12: PID: 12194: lp1enabled 1 lp2enabled 1 lp3enabled 1 (LV1) at 1300 loadvars loadvars.sh
2022-04-28 09:01:12: PID: 12194: plugstatlp1 0 plugstatlp2 0 plugstatlp3 0 (LV1) at 1301 loadvars loadvars.sh
2022-04-28 09:01:12: PID: 12194: chargestatlp1 0 chargestatlp2 0 chargestatlp3 0 (LV1) at 1302 loadvars loadvars.sh
2022-04-28 09:01:13: PID: 12194: Zeit zum abfragen aller Werte 2 Sekunden (LV1) at 176 main /var/www/html/openWB/regel.sh
2022-04-28 09:01:13: PID: 12194: automatische Umschaltung aktiv (LV1) at 14 u1p3pswitch u1p3p.sh
2022-04-28 09:01:13: PID: 12194: Timing Umschaltung: 300 / 660 (LV1) at 15 u1p3pswitch u1p3p.sh
2022-04-28 09:01:14: PID: 12194: **** Regulation loop needs 3 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-04-28 09:01:21: PID: 13500: **** Regulation loop start **** (LV1) at 70 main /var/www/html/openWB/regel.sh
2022-04-28 09:01:22: PID: 18913: legacy run server: Received command ["wr_solaredge.solaredgeall","192.168.178.21","1","none","none","none","1","1","0","0"]
Danke schonmal im Voraus!