Probleme Modbus Verbindung zu SMA TP6000

Anfragen zum Erstellen von Modulen, Fragen zu Modulen
Antworten
rsiemens
Beiträge: 35
Registriert: Mi Sep 01, 2021 6:52 pm

Probleme Modbus Verbindung zu SMA TP6000

Beitrag von rsiemens »

hallo zusammen

habe immer wieder das problem dass meine OpenWB Standart 2+ Version: 1.9.303.0
die Verbindung zum SMA TP6000 über ModbusTCP verliert. Kommt irgendwann wieder

Ping 192.168.0.113 geht problemlos.

Über evcc funktioniert die Modbus TCP Verbindung zum WR relativ problemlos.

Hier der Auszug aus dem debug log:

2023-11-08 09:42:12: PID: 31961: **** Regulation loop start **** (LV1) at 77 main /var/www/html/openWB/regel.sh
2023-11-08 09:42:09: PID: 30576: **** WARNING **** Regulation loop needs 8 seconds (LV0) at 64 cleanup /var/www/html/openWB/regel.sh
2023-11-08 09:42:09: PID: 30576: Sofort ladung Ladepunkt 2 bei minimal A 6 Ladeleistung zu gering (LV1) at 364 sofortlademodus sofortlademodus.sh
2023-11-08 09:42:09: PID: 30576: Sofort ladung Ladepunkt 1 bei minimal A 6 Ladeleistung zu gering (LV1) at 280 sofortlademodus sofortlademodus.sh
2023-11-08 09:42:08: PID: 30576: Timing Umschaltung: 180 / 780 (LV1) at 17 u1p3pswitch u1p3p.sh
2023-11-08 09:42:08: PID: 30576: automatische Umschaltung aktiv (LV1) at 16 u1p3pswitch u1p3p.sh
2023-11-08 09:42:08: PID: 30576: Zeit zum abfragen aller Werte 6 Sekunden (LV1) at 186 main /var/www/html/openWB/regel.sh
2023-11-08 09:42:07: PID: 30576: chargestatlp1 0 chargestatlp2 0 chargestatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2023-11-08 09:42:07: PID: 30576: plugstatlp1 0 plugstatlp2 1 plugstatlp3 0 (LV1) at 1273 loadvars loadvars.sh
2023-11-08 09:42:07: PID: 30576: lp1enabled 1 lp2enabled 1 lp3enabled 1 (LV1) at 1272 loadvars loadvars.sh
2023-11-08 09:42:07: PID: 30576: EVU 1:V/A 2: V/A 3: V/A (LV1) at 1271 loadvars loadvars.sh
2023-11-08 09:42:07: PID: 30576: lla3 0 llv3 236.4 llas13 0 llas23 soclp1 0 soclp2 0 (LV1) at 1270 loadvars loadvars.sh
2023-11-08 09:42:07: PID: 30576: lla2 0 llv2 235.1 llas12 0 llas22 sofortll 6 hausverbrauch 0 wattbezug 0 uberschuss 0 (LV1) at 1269 loadvars loadvars.sh
2023-11-08 09:42:07: PID: 30576: lla1 0 llv1 235.8 llas11 0 llas21 mindestuberschuss 1400 abschaltuberschuss -1200 lademodus 0 (LV1) at 1268 loadvars loadvars.sh
2023-11-08 09:42:07: PID: 30576: pv1watt 0 pv2watt pvwatt 0 ladeleistung 0 llalt 6 nachtladen 0 nachtladen 0 minimalA 6 maximalA 32 (LV1) at 1267 loadvars loadvars.sh
2023-11-08 09:42:07: PID: 30576: Calling SoC-Module: modules/soc_tronity/main.sh for chargepoint 2 (LV2) at 23 run_soc_module loadvars.sh
2023-11-08 09:42:07: PID: 30576: Request to run SoC-Module: soc_tronitylp2 (LV2) at 4 run_soc_module loadvars.sh
2023-11-08 09:42:06: PID: 30794: RET: 0 (LV2) at 12 main modules/wr_tripower9000/main.sh
2023-11-08 09:42:06: PID: 2465: legacy run server: Completed running command in 3.04s: ["modules.devices.sma_sunny_boy.device","inverter","192.168.0.113","0","none","none","none","0","0",

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.0.113: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 inverter1.tcp_client:
File "/var/www/html/openWB/packages/modules/devices/sma_sunny_boy/device.py", line 160, in read_inverter
Traceback (most recent call last):
2023-11-08 09:42:06: PID: 2465: modules.common.fault_state: Sma Sunny Boy/Tripower Wechselrichter: FaultState FaultStateLevel.ERROR, FaultStr <class 'pymodbus.exceptions.ConnectionException'> Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.0.113:502)], Traceback:
2023-11-08 09:42:06: PID: 2465: pymodbus.client.sync: Connection to (192.168.0.113, 502) failed: timed out
2023-11-08 09:42:03: PID: 2465: soc.modules.common.component_context: Update Komponente ['Sma Sunny Boy/Tripower Wechselrichter']
2023-11-08 09:42:03: PID: 2465: modules.devices.sma_sunny_boy.device: SMA Modbus Hybrid: 0
2023-11-08 09:42:03: PID: 2465: modules.devices.sma_sunny_boy.device: SMA Modbus Version: 0
2023-11-08 09:42:03: PID: 2465: modules.devices.sma_sunny_boy.device: SMA Modbus weitere IPs: none, none, none
2023-11-08 09:42:03: PID: 2465: modules.devices.sma_sunny_boy.device: SMA Modbus Webbox: 0
2023-11-08 09:42:03: PID: 2465: modules.devices.sma_sunny_boy.device: SMA Modbus Ip-Adresse: 192.168.0.113
2023-11-08 09:42:03: PID: 2465: legacy run server: Received command ["modules.devices.sma_sunny_boy.device","inverter","192.168.0.113","0","none","none","none","0","0",
2023-11-08 09:42:02: PID: 30576: **** Regulation loop start **** (LV1) at 77 main /var/www/html/openWB/regel.sh
2023-11-08 09:41:58: PID: 29245: **** Regulation loop needs 7 seconds (LV2) at 62 cleanup /var/www/html/openWB/regel.sh
2023-11-08 09:41:58: PID: 29245: Sofort ladung Ladepunkt 2 bei minimal A 6 Ladeleistung zu gering (LV1) at 364 sofortlademodus sofortlademodus.sh
2023-11-08 09:41:58: PID: 29245: Sofort ladung Ladepunkt 1 bei minimal A 6 Ladeleistung zu gering (LV1) at 280 sofortlademodus sofortlademodus.sh
2023-11-08 09:41:58: PID: 29245: Timing Umschaltung: 180 / 780 (LV1) at 17 u1p3pswitch u1p3p.sh
2023-11-08 09:41:58: PID: 29245: automatische Umschaltung aktiv (LV1) at 16 u1p3pswitch u1p3p.sh
2023-11-08 09:41:58: PID: 29245: Zeit zum abfragen aller Werte 7 Sekunden (LV1) at 186 main /var/www/html/openWB/regel.sh
2023-11-08 09:41:57: PID: 29245: chargestatlp1 0 chargestatlp2 0 chargestatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2023-11-08 09:41:57: PID: 29245: plugstatlp1 0 plugstatlp2 1 plugstatlp3 0 (LV1) at 1273 loadvars loadvars.sh
2023-11-08 09:41:57: PID: 29245: lp1enabled 1 lp2enabled 1 lp3enabled 1 (LV1) at 1272 loadvars loadvars.sh
2023-11-08 09:41:57: PID: 29245: EVU 1:V/A 2: V/A 3: V/A (LV1) at 1271 loadvars loadvars.sh
2023-11-08 09:41:57: PID: 29245: lla3 0 llv3 236.4 llas13 0 llas23 soclp1 0 soclp2 0 (LV1) at 1270 loadvars loadvars.sh
2023-11-08 09:41:57: PID: 29245: lla2 0 llv2 235.3 llas12 0 llas22 sofortll 6 hausverbrauch 0 wattbezug 0 uberschuss 0 (LV1) at 1269 loadvars loadvars.sh
2023-11-08 09:41:57: PID: 29245: lla1 0 llv1 235.7 llas11 0 llas21 mindestuberschuss 1400 abschaltuberschuss -1200 lademodus 0 (LV1) at 1268 loadvars loadvars.sh
2023-11-08 09:41:57: PID: 29245: pv1watt 0 pv2watt pvwatt 0 ladeleistung 0 llalt 6 nachtladen 0 nachtladen 0 minimalA 6 maximalA 32 (LV1) at 1267 loadvars loadvars.sh
2023-11-08 09:41:56: PID: 29245: Calling SoC-Module: modules/soc_tronity/main.sh for chargepoint 2 (LV2) at 23 run_soc_module loadvars.sh
2023-11-08 09:41:56: PID: 29245: Request to run SoC-Module: soc_tronitylp2 (LV2) at 4 run_soc_module loadvars.sh
2023-11-08 09:41:55: PID: 29441: RET: 0 (LV2) at 12 main modules/wr_tripower9000/main.sh
2023-11-08 09:41:55: PID: 2465: legacy run server: Completed running command in 3.04s: ["modules.devices.sma_sunny_boy.device","inverter","192.168.0.113","0","none","none","none","0","0",

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.0.113: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 inverter1.tcp_client:
File "/var/www/html/openWB/packages/modules/devices/sma_sunny_boy/device.py", line 160, in read_inverter
Traceback (most recent call last):
2023-11-08 09:41:55: PID: 2465: modules.common.fault_state: Sma Sunny Boy/Tripower Wechselrichter: FaultState FaultStateLevel.ERROR, FaultStr <class 'pymodbus.exceptions.ConnectionException'> Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.0.113:502)], Traceback:
2023-11-08 09:41:55: PID: 2465: pymodbus.client.sync: Connection to (192.168.0.113, 502) failed: timed out
2023-11-08 09:41:52: PID: 2465: soc.modules.common.component_context: Update Komponente ['Sma Sunny Boy/Tripower Wechselrichter']
2023-11-08 09:41:52: PID: 2465: modules.devices.sma_sunny_boy.device: SMA Modbus Hybrid: 0
2023-11-08 09:41:52: PID: 2465: modules.devices.sma_sunny_boy.device: SMA Modbus Version: 0
2023-11-08 09:41:52: PID: 2465: modules.devices.sma_sunny_boy.device: SMA Modbus weitere IPs: none, none, none
2023-11-08 09:41:52: PID: 2465: modules.devices.sma_sunny_boy.device: SMA Modbus Webbox: 0
2023-11-08 09:41:52: PID: 2465: modules.devices.sma_sunny_boy.device: SMA Modbus Ip-Adresse: 192.168.0.113
2023-11-08 09:41:52: PID: 2465: legacy run server: Received command ["modules.devices.sma_sunny_boy.device","inverter","192.168.0.113","0","none","none","none","0","0",
2023-11-08 09:41:51: PID: 29245: **** Regulation loop start **** (LV1) at 77 main /var/www/html/openWB/regel.sh
2023-11-08 09:41:48: PID: 27932: **** Regulation loop needs 7 seconds (LV2) at 62 cleanup /var/www/html/openWB/regel.sh
2023-11-08 09:41:48: PID: 27932: Sofort ladung Ladepunkt 2 bei minimal A 6 Ladeleistung zu gering (LV1) at 364 sofortlademodus sofortlademodus.sh
2023-11-08 09:41:48: PID: 27932: Sofort ladung Ladepunkt 1 bei minimal A 6 Ladeleistung zu gering (LV1) at 280 sofortlademodus sofortlademodus.sh
2023-11-08 09:41:48: PID: 27932: Timing Umschaltung: 180 / 780 (LV1) at 17 u1p3pswitch u1p3p.sh
2023-11-08 09:41:48: PID: 27932: automatische Umschaltung aktiv (LV1) at 16 u1p3pswitch u1p3p.sh
2023-11-08 09:41:48: PID: 27932: Zeit zum abfragen aller Werte 7 Sekunden (LV1) at 186 main /var/www/html/openWB/regel.sh
2023-11-08 09:41:47: PID: 27932: chargestatlp1 0 chargestatlp2 0 chargestatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2023-11-08 09:41:47: PID: 27932: plugstatlp1 0 plugstatlp2 1 plugstatlp3 0 (LV1) at 1273 loadvars loadvars.sh
2023-11-08 09:41:47: PID: 27932: lp1enabled 1 lp2enabled 1 lp3enabled 1 (LV1) at 1272 loadvars loadvars.sh
2023-11-08 09:41:47: PID: 27932: EVU 1:V/A 2: V/A 3: V/A (LV1) at 1271 loadvars loadvars.sh
2023-11-08 09:41:47: PID: 27932: lla3 0 llv3 235.8 llas13 0 llas23 soclp1 0 soclp2 0 (LV1) at 1270 loadvars loadvars.sh
2023-11-08 09:41:47: PID: 27932: lla2 0 llv2 235.2 llas12 0 llas22 sofortll 6 hausverbrauch 0 wattbezug 0 uberschuss 0 (LV1) at 1269 loadvars loadvars.sh
2023-11-08 09:41:47: PID: 27932: lla1 0 llv1 235.6 llas11 0 llas21 mindestuberschuss 1400 abschaltuberschuss -1200 lademodus 0 (LV1) at 1268 loadvars loadvars.sh
2023-11-08 09:41:47: PID: 27932: pv1watt 0 pv2watt pvwatt 0 ladeleistung 0 llalt 6 nachtladen 0 nachtladen 0 minimalA 6 maximalA 32 (LV1) at 1267 loadvars loadvars.sh
2023-11-08 09:41:46: PID: 27932: Calling SoC-Module: modules/soc_tronity/main.sh for chargepoint 2 (LV2) at 23 run_soc_module loadvars.sh
2023-11-08 09:41:46: PID: 27932: Request to run SoC-Module: soc_tronitylp2 (LV2) at 4 run_soc_module loadvars.sh
2023-11-08 09:41:45: PID: 28130: RET: 0 (LV2) at 12 main modules/wr_tripower9000/main.sh
2023-11-08 09:41:45: PID: 2465: legacy run server: Completed running command in 3.04s: ["modules.devices.sma_sunny_boy.device","inverter","192.168.0.113","0",

Woran könnte es liegen?
Antworten