Siemens Module ab 1.9.251

Fragen zur Nutzung, Features, usw..
LutzB
Beiträge: 3781
Registriert: Di Feb 25, 2020 9:23 am
Has thanked: 4 times
Been thanked: 25 times

Re: Siemens Module ab 1.9.251

Beitrag von LutzB »

Bitte mal die aktuelle Nightly testen. Gerade ist ein Fix reingekommen, der parallele Abfragen der verschiedenen Module verhindern sollte.
Wenn es jetzt passt, haben wir zumindest die Ursache gefunden. Überarbeitet wird das Modul noch, damit nur einmal eine IP angegeben werden muss.
thesorrow101
Beiträge: 718
Registriert: Mo Okt 12, 2020 7:41 am

Re: Siemens Module ab 1.9.251

Beitrag von thesorrow101 »

Hallo Lutz,

Version 1.9.252 (2022-01-27 07:48:56 +0100 [fcb648de] ) ergibt folgenden Log:

Code: Alles auswählen

2022-01-27 09:56:04: **** Regulation loop needs 3 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-01-27 09:56:03: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1275 loadvars loadvars.sh
2022-01-27 09:56:03: plugstatlp1 0	plugstatlp2 0	plugstatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2022-01-27 09:56:03: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1273 loadvars loadvars.sh
2022-01-27 09:56:03: EVU 1:V/0A 2: V/0A 3: V/0A (LV1) at 1272 loadvars loadvars.sh
2022-01-27 09:56:03: lla3 0	llv3 228.2	llas13  llas23  soclp1 35 soclp2 (LV1) at 1271 loadvars loadvars.sh
2022-01-27 09:56:03: lla2 0	llv2 227.7	llas12  llas22  sofortll 16 hausverbrauch 538 wattbezug 7 uberschuss -7 (LV1) at 1270 loadvars loadvars.sh
2022-01-27 09:56:03: lla1 0	llv1 226.9	llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 5 lademodus 3 (LV1) at 1269 loadvars loadvars.sh
2022-01-27 09:56:03: pv1watt -541 pv2watt  pvwatt -541 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 10 maximalA 32 (LV1) at 1268 loadvars loadvars.sh
2022-01-27 09:56:03: speicherleistung -6 speichersoc 1 (LV1) at 1263 loadvars loadvars.sh
2022-01-27 09:56:03: EVU RET: 0 (LV2) at 21 main modules/bezug_siemens/main.sh
2022-01-27 09:56:03: PID: 2487: legacy run server: Completed running command in 0.03s: ["modules.siemens.device","counter","192.168.178.56"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(14, ModbusDataType.INT_32, unit=1)
File "/var/www/html/openWB/packages/modules/siemens/counter.py", line 37, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.56:502)]
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 107, in execute
return self.execute(request)
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/common.py", line 114, in read_holding_registers
address, number_of_addresses, **kwargs)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 79, in __read_registers
Traceback (most recent call last):
2022-01-27 09:56:03: PID: 2487: root: Siemens Zähler: FaultState FaultStateLevel.ERROR, FaultStr TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen., Traceback:
2022-01-27 09:56:03: PID: 2487: pymodbus.client.sync: Connection to (192.168.178.56, 502) failed: [Errno 111] Connection refused
2022-01-27 09:56:03: PID: 2487: root: Komponente Siemens Zähler auslesen.
2022-01-27 09:56:03: PID: 2487: root: Start device reading{'componentNone': <modules.siemens.counter.SiemensCounter object at 0x744a3f70>}
2022-01-27 09:56:03: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 09:56:03: PID: 2487: legacy run server: Received command ["modules.siemens.device","counter","192.168.178.56"]
2022-01-27 09:56:02: BAT RET: 0 (LV2) at 21 main modules/speicher_siemens/main.sh
2022-01-27 09:56:02: PID: 2487: legacy run server: Completed running command in 0.03s: ["modules.siemens.device","bat","192.168.178.56"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(6, ModbusDataType.INT_32, unit=1) * -1
File "/var/www/html/openWB/packages/modules/siemens/bat.py", line 36, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.56:502)]
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 107, in execute
return self.execute(request)
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/common.py", line 114, in read_holding_registers
address, number_of_addresses, **kwargs)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 79, in __read_registers
Traceback (most recent call last):
2022-01-27 09:56:02: PID: 2487: root: Siemens Speicher: FaultState FaultStateLevel.ERROR, FaultStr TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen., Traceback:
2022-01-27 09:56:02: PID: 2487: pymodbus.client.sync: Connection to (192.168.178.56, 502) failed: [Errno 111] Connection refused
2022-01-27 09:56:02: PID: 2487: root: Komponente Siemens Speicher auslesen.
2022-01-27 09:56:02: PID: 2487: root: Start device reading{'componentNone': <modules.siemens.bat.SiemensBat object at 0x744c2190>}
2022-01-27 09:56:02: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 09:56:02: PID: 2487: legacy run server: Received command ["modules.siemens.device","bat","192.168.178.56"]
2022-01-27 09:56:02: PID: 2487: legacy run server: Completed running command in 0.02s: ["modules.siemens.device","inverter","192.168.178.56","1"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(16, ModbusDataType.INT_32, unit=1) * -1
File "/var/www/html/openWB/packages/modules/siemens/inverter.py", line 37, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.56:502)]
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 107, in execute
return self.execute(request)
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/common.py", line 114, in read_holding_registers
address, number_of_addresses, **kwargs)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 79, in __read_registers
Traceback (most recent call last):
2022-01-27 09:56:02: PID: 2487: root: Siemens Wechselrichter: FaultState FaultStateLevel.ERROR, FaultStr TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen., Traceback:
2022-01-27 09:56:02: PID: 2487: pymodbus.client.sync: Connection to (192.168.178.56, 502) failed: [Errno 111] Connection refused
2022-01-27 09:56:02: PID: 2487: root: Komponente Siemens Wechselrichter auslesen.
2022-01-27 09:56:02: PID: 2487: root: Start device reading{'component1': <modules.siemens.inverter.SiemensInverter object at 0x744f32f0>}
2022-01-27 09:56:02: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 09:56:02: PID: 2487: legacy run server: Received command ["modules.siemens.device","inverter","192.168.178.56","1"]
2022-01-27 09:56:01: **** Regulation loop start **** (LV1) at 70 main /var/www/html/openWB/regel.sh
2022-01-27 09:55:58: **** Regulation loop needs 7 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-01-27 09:55:56: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1275 loadvars loadvars.sh
2022-01-27 09:55:56: plugstatlp1 0	plugstatlp2 0	plugstatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2022-01-27 09:55:56: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1273 loadvars loadvars.sh
2022-01-27 09:55:56: EVU 1:V/0A 2: V/0A 3: V/0A (LV1) at 1272 loadvars loadvars.sh
2022-01-27 09:55:56: lla3 0	llv3 228.6	llas13  llas23  soclp1 35 soclp2 (LV1) at 1271 loadvars loadvars.sh
2022-01-27 09:55:56: lla2 0	llv2 228.2	llas12  llas22  sofortll 16 hausverbrauch 538 wattbezug 7 uberschuss -7 (LV1) at 1270 loadvars loadvars.sh
2022-01-27 09:55:56: lla1 0	llv1 226.5	llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 5 lademodus 3 (LV1) at 1269 loadvars loadvars.sh
2022-01-27 09:55:56: pv1watt -541 pv2watt  pvwatt -541 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 10 maximalA 32 (LV1) at 1268 loadvars loadvars.sh
2022-01-27 09:55:56: speicherleistung -6 speichersoc 1 (LV1) at 1263 loadvars loadvars.sh
2022-01-27 09:55:56: EVU RET: 0 (LV2) at 21 main modules/bezug_siemens/main.sh
2022-01-27 09:55:56: PID: 2487: legacy run server: Completed running command in 3.03s: ["modules.siemens.device","counter","192.168.178.56"]

modules.common.fault_state.FaultState: ("modules.common.modbus <class 'modules.common.fault_state.FaultState'> ('modules.common.modbus Modbus Error: [Input/Output] Modbus Error: [Invalid Message] Incomplete message received, expected at least 8 bytes (0 received)', <FaultStateLevel.ERROR: 2>)", <FaultStateLevel.ERROR: 2>)
str(e)) from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 97, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(14, ModbusDataType.INT_32, unit=1)
File "/var/www/html/openWB/packages/modules/siemens/counter.py", line 37, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

modules.common.fault_state.FaultState: ('modules.common.modbus Modbus Error: [Input/Output] Modbus Error: [Invalid Message] Incomplete message received, expected at least 8 bytes (0 received)', <FaultStateLevel.ERROR: 2>)
raise FaultState.error(__name__+" "+str(response))
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 81, in __read_registers
Traceback (most recent call last):
2022-01-27 09:55:56: PID: 2487: root: Siemens Zähler: FaultState FaultStateLevel.ERROR, FaultStr modules.common.modbus <class 'modules.common.fault_state.FaultState'> ('modules.common.modbus Modbus Error: [Input/Output] Modbus Error: [Invalid Message] Incomplete message received, expected at least 8 bytes (0 received)', <FaultStateLevel.ERROR: 2>), Traceback:
2022-01-27 09:55:56: PID: 2487: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2022-01-27 09:55:56: PID: 2487: pymodbus.transaction: Getting transaction 1
2022-01-27 09:55:56: PID: 2487: pymodbus.framer.socket_framer: Processing:
2022-01-27 09:55:56: PID: 2487: pymodbus.transaction: Transaction failed. (Modbus Error: [Invalid Message] Incomplete message received, expected at least 8 bytes (0 received))
2022-01-27 09:55:53: PID: 2487: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2022-01-27 09:55:53: PID: 2487: pymodbus.client.sync: New Transaction state 'SENDING'
2022-01-27 09:55:53: PID: 2487: pymodbus.transaction: SEND: 0x0 0x1 0x0 0x0 0x0 0x6 0x1 0x3 0x0 0xe 0x0 0x2
2022-01-27 09:55:53: PID: 2487: pymodbus.transaction: Running transaction 1
2022-01-27 09:55:53: PID: 2487: pymodbus.transaction: Current transaction state - IDLE
2022-01-27 09:55:53: PID: 2487: root: Komponente Siemens Zähler auslesen.
2022-01-27 09:55:53: PID: 2487: root: Start device reading{'componentNone': <modules.siemens.counter.SiemensCounter object at 0x744d4d70>}
2022-01-27 09:55:53: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 09:55:53: PID: 2487: legacy run server: Received command ["modules.siemens.device","counter","192.168.178.56"]
2022-01-27 09:55:52: BAT RET: 0 (LV2) at 21 main modules/speicher_siemens/main.sh
2022-01-27 09:55:52: PID: 2487: legacy run server: Completed running command in 0.06s: ["modules.siemens.device","bat","192.168.178.56"]
2022-01-27 09:55:52: PID: 2487: ValueStore: Saving BatState(exported=37263391.758806914, imported=17407.187819190844, soc=1, power=-6)
2022-01-27 09:55:52: PID: 2487: root: simcount Zwischenergebnisse aktuelle Berechnung: Import: 62665876.14908704 Export: 134148210331.7049 Leistung: -6
2022-01-27 09:55:52: PID: 2487: root: simcount Ergebnis: Bezug[Wh]: 17407.187819190844, Einspeisung[Wh]: 37263391.758806914
2022-01-27 09:55:52: PID: 2487: root: simcount aufsummierte Energie: Bezug[Ws]: 62665876.14908704, Einspeisung[Ws]: 134148210331.7049
2022-01-27 09:55:52: PID: 2487: root: simcount exportierte Energie im Zeitintervall: -9.704897493124008
2022-01-27 09:55:52: PID: 2487: root: simcount Gesamtenergie im Zeitintervall: 14751.444189548492
2022-01-27 09:55:52: PID: 2487: root: simcount Berechnungsgrundlage: vergangene Zeit [s]129.39863324165344, vorherige Leistung[W]: 234, aktuelle Leistung[W]: -6
2022-01-27 09:55:52: PID: 2487: root: simcount Zwischenergebnisse letzte Berechnung: Import: 62651115 Export: 134148210322 Leistung: 234
2022-01-27 09:55:52: PID: 2487: pymodbus.payload: [b'\x00\x00', b'\x00\x01']
2022-01-27 09:55:52: PID: 2487: pymodbus.payload: [0, 1]
2022-01-27 09:55:52: PID: 2487: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2022-01-27 09:55:52: PID: 2487: pymodbus.transaction: Getting transaction 2
2022-01-27 09:55:52: PID: 2487: pymodbus.transaction: Adding transaction 2
2022-01-27 09:55:52: PID: 2487: pymodbus.factory: Factory Response[ReadHoldingRegistersResponse: 3]
2022-01-27 09:55:52: PID: 2487: pymodbus.framer.socket_framer: Processing: 0x0 0x2 0x0 0x0 0x0 0x7 0x1 0x3 0x4 0x0 0x0 0x0 0x1
2022-01-27 09:55:52: PID: 2487: pymodbus.transaction: RECV: 0x0 0x2 0x0 0x0 0x0 0x7 0x1 0x3 0x4 0x0 0x0 0x0 0x1
2022-01-27 09:55:52: PID: 2487: pymodbus.transaction: Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2022-01-27 09:55:52: PID: 2487: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2022-01-27 09:55:52: PID: 2487: pymodbus.client.sync: New Transaction state 'SENDING'
2022-01-27 09:55:52: PID: 2487: pymodbus.transaction: SEND: 0x0 0x2 0x0 0x0 0x0 0x6 0x1 0x3 0x0 0x8 0x0 0x2
2022-01-27 09:55:52: PID: 2487: pymodbus.transaction: Running transaction 2
2022-01-27 09:55:52: PID: 2487: pymodbus.transaction: Current transaction state - TRANSACTION_COMPLETE
2022-01-27 09:55:52: PID: 2487: pymodbus.payload: [b'\x00\x00', b'\x00\x06']
2022-01-27 09:55:52: PID: 2487: pymodbus.payload: [0, 6]
2022-01-27 09:55:52: PID: 2487: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2022-01-27 09:55:52: PID: 2487: pymodbus.transaction: Getting transaction 1
2022-01-27 09:55:52: PID: 2487: pymodbus.transaction: Adding transaction 1
2022-01-27 09:55:52: PID: 2487: pymodbus.factory: Factory Response[ReadHoldingRegistersResponse: 3]
2022-01-27 09:55:52: PID: 2487: pymodbus.framer.socket_framer: Processing: 0x0 0x1 0x0 0x0 0x0 0x7 0x1 0x3 0x4 0x0 0x0 0x0 0x6
2022-01-27 09:55:52: PID: 2487: pymodbus.transaction: RECV: 0x0 0x1 0x0 0x0 0x0 0x7 0x1 0x3 0x4 0x0 0x0 0x0 0x6
2022-01-27 09:55:52: PID: 2487: pymodbus.transaction: Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2022-01-27 09:55:52: PID: 2487: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2022-01-27 09:55:52: PID: 2487: pymodbus.client.sync: New Transaction state 'SENDING'
2022-01-27 09:55:52: PID: 2487: pymodbus.transaction: SEND: 0x0 0x1 0x0 0x0 0x0 0x6 0x1 0x3 0x0 0x6 0x0 0x2
2022-01-27 09:55:52: PID: 2487: pymodbus.transaction: Running transaction 1
2022-01-27 09:55:52: PID: 2487: pymodbus.transaction: Current transaction state - IDLE
2022-01-27 09:55:52: PID: 2487: root: Komponente Siemens Speicher auslesen.
2022-01-27 09:55:52: PID: 2487: root: Start device reading{'componentNone': <modules.siemens.bat.SiemensBat object at 0x746798d0>}
2022-01-27 09:55:52: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 09:55:52: PID: 2487: legacy run server: Received command ["modules.siemens.device","bat","192.168.178.56"]
2022-01-27 09:55:52: PID: 2487: legacy run server: Completed running command in 0.02s: ["modules.siemens.device","inverter","192.168.178.56","1"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(16, ModbusDataType.INT_32, unit=1) * -1
File "/var/www/html/openWB/packages/modules/siemens/inverter.py", line 37, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.56:502)]
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 107, in execute
return self.execute(request)
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/common.py", line 114, in read_holding_registers
address, number_of_addresses, **kwargs)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 79, in __read_registers
Traceback (most recent call last):
2022-01-27 09:55:52: PID: 2487: root: Siemens Wechselrichter: FaultState FaultStateLevel.ERROR, FaultStr TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen., Traceback:
2022-01-27 09:55:52: PID: 2487: pymodbus.client.sync: Connection to (192.168.178.56, 502) failed: [Errno 111] Connection refused
2022-01-27 09:55:52: PID: 2487: root: Komponente Siemens Wechselrichter auslesen.
2022-01-27 09:55:52: PID: 2487: root: Start device reading{'component1': <modules.siemens.inverter.SiemensInverter object at 0x7448ebf0>}
2022-01-27 09:55:52: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 09:55:52: PID: 2487: legacy run server: Received command ["modules.siemens.device","inverter","192.168.178.56","1"]
2022-01-27 09:55:51: **** Regulation loop start **** (LV1) at 70 main /var/www/html/openWB/regel.sh
2022-01-27 09:55:48: **** Regulation loop needs 7 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-01-27 09:55:46: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1275 loadvars loadvars.sh
2022-01-27 09:55:46: plugstatlp1 0	plugstatlp2 0	plugstatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2022-01-27 09:55:46: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1273 loadvars loadvars.sh
2022-01-27 09:55:46: EVU 1:V/0A 2: V/0A 3: V/0A (LV1) at 1272 loadvars loadvars.sh
2022-01-27 09:55:46: lla3 0	llv3 228.2	llas13  llas23  soclp1 35 soclp2 (LV1) at 1271 loadvars loadvars.sh
2022-01-27 09:55:46: lla2 0	llv2 227.7	llas12  llas22  sofortll 16 hausverbrauch 298 wattbezug 7 uberschuss 227 (LV1) at 1270 loadvars loadvars.sh
2022-01-27 09:55:46: lla1 0	llv1 227.0	llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 5 lademodus 3 (LV1) at 1269 loadvars loadvars.sh
2022-01-27 09:55:46: pv1watt -541 pv2watt  pvwatt -541 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 10 maximalA 32 (LV1) at 1268 loadvars loadvars.sh
2022-01-27 09:55:46: speicherleistung 234 speichersoc 1 (LV1) at 1263 loadvars loadvars.sh
2022-01-27 09:55:46: EVU RET: 0 (LV2) at 21 main modules/bezug_siemens/main.sh
2022-01-27 09:55:46: PID: 2487: legacy run server: Completed running command in 0.03s: ["modules.siemens.device","counter","192.168.178.56"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(14, ModbusDataType.INT_32, unit=1)
File "/var/www/html/openWB/packages/modules/siemens/counter.py", line 37, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.56:502)]
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 107, in execute
return self.execute(request)
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/common.py", line 114, in read_holding_registers
address, number_of_addresses, **kwargs)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 79, in __read_registers
Traceback (most recent call last):
2022-01-27 09:55:46: PID: 2487: root: Siemens Zähler: FaultState FaultStateLevel.ERROR, FaultStr TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen., Traceback:
2022-01-27 09:55:46: PID: 2487: pymodbus.client.sync: Connection to (192.168.178.56, 502) failed: [Errno 111] Connection refused
2022-01-27 09:55:46: PID: 2487: root: Komponente Siemens Zähler auslesen.
2022-01-27 09:55:46: PID: 2487: root: Start device reading{'componentNone': <modules.siemens.counter.SiemensCounter object at 0x744d4550>}
2022-01-27 09:55:46: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 09:55:46: PID: 2487: legacy run server: Received command ["modules.siemens.device","counter","192.168.178.56"]
2022-01-27 09:55:45: BAT RET: 0 (LV2) at 21 main modules/speicher_siemens/main.sh
2022-01-27 09:55:45: PID: 2487: legacy run server: Completed running command in 0.02s: ["modules.siemens.device","bat","192.168.178.56"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(6, ModbusDataType.INT_32, unit=1) * -1
File "/var/www/html/openWB/packages/modules/siemens/bat.py", line 36, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.56:502)]
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 107, in execute
return self.execute(request)
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/common.py", line 114, in read_holding_registers
address, number_of_addresses, **kwargs)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 79, in __read_registers
Traceback (most recent call last):
2022-01-27 09:55:45: PID: 2487: root: Siemens Speicher: FaultState FaultStateLevel.ERROR, FaultStr TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen., Traceback:
2022-01-27 09:55:45: PID: 2487: pymodbus.client.sync: Connection to (192.168.178.56, 502) failed: [Errno 111] Connection refused
2022-01-27 09:55:45: PID: 2487: root: Komponente Siemens Speicher auslesen.
2022-01-27 09:55:45: PID: 2487: root: Start device reading{'componentNone': <modules.siemens.bat.SiemensBat object at 0x744f3e90>}
2022-01-27 09:55:45: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 09:55:45: PID: 2487: legacy run server: Received command ["modules.siemens.device","bat","192.168.178.56"]
2022-01-27 09:55:45: PID: 2487: legacy run server: Completed running command in 3.05s: ["modules.siemens.device","inverter","192.168.178.56","1"]

modules.common.fault_state.FaultState: ("modules.common.modbus <class 'modules.common.fault_state.FaultState'> ('modules.common.modbus Modbus Error: [Input/Output] Modbus Error: [Invalid Message] Incomplete message received, expected at least 8 bytes (0 received)', <FaultStateLevel.ERROR: 2>)", <FaultStateLevel.ERROR: 2>)
str(e)) from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 97, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(16, ModbusDataType.INT_32, unit=1) * -1
File "/var/www/html/openWB/packages/modules/siemens/inverter.py", line 37, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

modules.common.fault_state.FaultState: ('modules.common.modbus Modbus Error: [Input/Output] Modbus Error: [Invalid Message] Incomplete message received, expected at least 8 bytes (0 received)', <FaultStateLevel.ERROR: 2>)
raise FaultState.error(__name__+" "+str(response))
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 81, in __read_registers
Traceback (most recent call last):
2022-01-27 09:55:45: PID: 2487: root: Siemens Wechselrichter: FaultState FaultStateLevel.ERROR, FaultStr modules.common.modbus <class 'modules.common.fault_state.FaultState'> ('modules.common.modbus Modbus Error: [Input/Output] Modbus Error: [Invalid Message] Incomplete message received, expected at least 8 bytes (0 received)', <FaultStateLevel.ERROR: 2>), Traceback:
2022-01-27 09:55:45: PID: 2487: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2022-01-27 09:55:45: PID: 2487: pymodbus.transaction: Getting transaction 1
2022-01-27 09:55:45: PID: 2487: pymodbus.framer.socket_framer: Processing:
2022-01-27 09:55:45: PID: 2487: pymodbus.transaction: Transaction failed. (Modbus Error: [Invalid Message] Incomplete message received, expected at least 8 bytes (0 received))
2022-01-27 09:55:42: PID: 2487: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2022-01-27 09:55:42: PID: 2487: pymodbus.client.sync: New Transaction state 'SENDING'
2022-01-27 09:55:42: PID: 2487: pymodbus.transaction: SEND: 0x0 0x1 0x0 0x0 0x0 0x6 0x1 0x3 0x0 0x10 0x0 0x2
2022-01-27 09:55:42: PID: 2487: pymodbus.transaction: Running transaction 1
2022-01-27 09:55:42: PID: 2487: pymodbus.transaction: Current transaction state - IDLE
2022-01-27 09:55:42: PID: 2487: root: Komponente Siemens Wechselrichter auslesen.
2022-01-27 09:55:42: PID: 2487: root: Start device reading{'component1': <modules.siemens.inverter.SiemensInverter object at 0x744e7f90>}
2022-01-27 09:55:42: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 09:55:42: PID: 2487: legacy run server: Received command ["modules.siemens.device","inverter","192.168.178.56","1"]
2022-01-27 09:55:41: **** Regulation loop start **** (LV1) at 70 main /var/www/html/openWB/regel.sh
2022-01-27 09:55:35: **** Regulation loop needs 4 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-01-27 09:55:33: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1275 loadvars loadvars.sh
2022-01-27 09:55:33: plugstatlp1 0	plugstatlp2 0	plugstatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2022-01-27 09:55:33: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1273 loadvars loadvars.sh
2022-01-27 09:55:33: EVU 1:V/0A 2: V/0A 3: V/0A (LV1) at 1272 loadvars loadvars.sh
2022-01-27 09:55:33: lla3 0	llv3 228.2	llas13  llas23  soclp1 35 soclp2 (LV1) at 1271 loadvars loadvars.sh
2022-01-27 09:55:33: lla2 0	llv2 227.9	llas12  llas22  sofortll 16 hausverbrauch 298 wattbezug 7 uberschuss 227 (LV1) at 1270 loadvars loadvars.sh
2022-01-27 09:55:33: lla1 0	llv1 227.2	llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 5 lademodus 3 (LV1) at 1269 loadvars loadvars.sh
2022-01-27 09:55:33: pv1watt -541 pv2watt  pvwatt -541 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 10 maximalA 32 (LV1) at 1268 loadvars loadvars.sh
2022-01-27 09:55:33: speicherleistung 234 speichersoc 1 (LV1) at 1263 loadvars loadvars.sh
2022-01-27 09:55:33: EVU RET: 0 (LV2) at 21 main modules/bezug_siemens/main.sh
2022-01-27 09:55:33: PID: 2487: legacy run server: Completed running command in 0.07s: ["modules.siemens.device","counter","192.168.178.56"]
2022-01-27 09:55:33: PID: 2487: ValueStore: Saving CounterState(powers=[0, 0, 0], exported=4288.0125, imported=83030.81950893448, power=7, frequency=50, voltages=[230, 230, 230], power_factors=[0, 0, 0], currents=[0.0, 0.0, 0.0])
2022-01-27 09:55:33: PID: 2487: root: Siemens Zähler Leistung[W]: 7
2022-01-27 09:55:33: PID: 2487: root: simcount Zwischenergebnisse aktuelle Berechnung: Import: 298910950.23216414 Export: 15436845 Leistung: 7
2022-01-27 09:55:33: PID: 2487: root: simcount Ergebnis: Bezug[Wh]: 83030.81950893448, Einspeisung[Wh]: 4288.0125
2022-01-27 09:55:33: PID: 2487: root: simcount aufsummierte Energie: Bezug[Ws]: 298910950.23216414, Einspeisung[Ws]: 15436845
2022-01-27 09:55:33: PID: 2487: root: simcount Gesamtenergie im Zeitintervall: 289.232164144516
2022-01-27 09:55:33: PID: 2487: root: simcount Berechnungsgrundlage: vergangene Zeit [s]19.94704580307007, vorherige Leistung[W]: 22, aktuelle Leistung[W]: 7
2022-01-27 09:55:33: PID: 2487: root: simcount Zwischenergebnisse letzte Berechnung: Import: 298910661 Export: 15436845 Leistung: 22
2022-01-27 09:55:33: PID: 2487: pymodbus.payload: [b'\x00\x00', b'\x00\x07']
2022-01-27 09:55:33: PID: 2487: pymodbus.payload: [0, 7]
2022-01-27 09:55:33: PID: 2487: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2022-01-27 09:55:33: PID: 2487: pymodbus.transaction: Getting transaction 1
2022-01-27 09:55:33: PID: 2487: pymodbus.transaction: Adding transaction 1
2022-01-27 09:55:33: PID: 2487: pymodbus.factory: Factory Response[ReadHoldingRegistersResponse: 3]
2022-01-27 09:55:33: PID: 2487: pymodbus.framer.socket_framer: Processing: 0x0 0x1 0x0 0x0 0x0 0x7 0x1 0x3 0x4 0x0 0x0 0x0 0x7
2022-01-27 09:55:33: PID: 2487: pymodbus.transaction: RECV: 0x0 0x1 0x0 0x0 0x0 0x7 0x1 0x3 0x4 0x0 0x0 0x0 0x7
2022-01-27 09:55:33: PID: 2487: pymodbus.transaction: Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2022-01-27 09:55:33: PID: 2487: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2022-01-27 09:55:33: PID: 2487: pymodbus.client.sync: New Transaction state 'SENDING'
2022-01-27 09:55:33: PID: 2487: pymodbus.transaction: SEND: 0x0 0x1 0x0 0x0 0x0 0x6 0x1 0x3 0x0 0xe 0x0 0x2
2022-01-27 09:55:33: PID: 2487: pymodbus.transaction: Running transaction 1
2022-01-27 09:55:33: PID: 2487: pymodbus.transaction: Current transaction state - IDLE
2022-01-27 09:55:33: PID: 2487: root: Komponente Siemens Zähler auslesen.
2022-01-27 09:55:33: PID: 2487: root: Start device reading{'componentNone': <modules.siemens.counter.SiemensCounter object at 0x744a3570>}
2022-01-27 09:55:33: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 09:55:33: PID: 2487: legacy run server: Received command ["modules.siemens.device","counter","192.168.178.56"]
2022-01-27 09:55:32: BAT RET: 0 (LV2) at 21 main modules/speicher_siemens/main.sh
2022-01-27 09:55:32: PID: 2487: legacy run server: Completed running command in 0.03s: ["modules.siemens.device","bat","192.168.178.56"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(6, ModbusDataType.INT_32, unit=1) * -1
File "/var/www/html/openWB/packages/modules/siemens/bat.py", line 36, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.56:502)]
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 107, in execute
return self.execute(request)
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/common.py", line 114, in read_holding_registers
address, number_of_addresses, **kwargs)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 79, in __read_registers
Traceback (most recent call last):
2022-01-27 09:55:32: PID: 2487: root: Siemens Speicher: FaultState FaultStateLevel.ERROR, FaultStr TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen., Traceback:
2022-01-27 09:55:32: PID: 2487: pymodbus.client.sync: Connection to (192.168.178.56, 502) failed: [Errno 111] Connection refused
2022-01-27 09:55:32: PID: 2487: root: Komponente Siemens Speicher auslesen.
2022-01-27 09:55:32: PID: 2487: root: Start device reading{'componentNone': <modules.siemens.bat.SiemensBat object at 0x744a35b0>}
2022-01-27 09:55:32: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 09:55:32: PID: 2487: legacy run server: Received command ["modules.siemens.device","bat","192.168.178.56"]
2022-01-27 09:55:32: PID: 2487: legacy run server: Completed running command in 0.02s: ["modules.siemens.device","inverter","192.168.178.56","1"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(16, ModbusDataType.INT_32, unit=1) * -1
File "/var/www/html/openWB/packages/modules/siemens/inverter.py", line 37, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.56:502)]
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 107, in execute
return self.execute(request)
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/common.py", line 114, in read_holding_registers
address, number_of_addresses, **kwargs)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 79, in __read_registers
Traceback (most recent call last):
2022-01-27 09:55:32: PID: 2487: root: Siemens Wechselrichter: FaultState FaultStateLevel.ERROR, FaultStr TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen., Traceback:
2022-01-27 09:55:32: PID: 2487: pymodbus.client.sync: Connection to (192.168.178.56, 502) failed: [Errno 111] Connection refused
2022-01-27 09:55:32: PID: 2487: root: Komponente Siemens Wechselrichter auslesen.
2022-01-27 09:55:32: PID: 2487: root: Start device reading{'component1': <modules.siemens.inverter.SiemensInverter object at 0x744a3c70>}
2022-01-27 09:55:32: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 09:55:32: PID: 2487: legacy run server: Received command ["modules.siemens.device","inverter","192.168.178.56","1"]
2022-01-27 09:55:31: **** Regulation loop start **** (LV1) at 70 main /var/www/html/openWB/regel.sh
2022-01-27 09:55:28: **** Regulation loop needs 7 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-01-27 09:55:26: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1275 loadvars loadvars.sh
2022-01-27 09:55:26: plugstatlp1 0	plugstatlp2 0	plugstatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2022-01-27 09:55:26: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1273 loadvars loadvars.sh
2022-01-27 09:55:26: EVU 1:V/0A 2: V/0A 3: V/0A (LV1) at 1272 loadvars loadvars.sh
2022-01-27 09:55:26: lla3 0	llv3 228.4	llas13  llas23  soclp1 35 soclp2 (LV1) at 1271 loadvars loadvars.sh
2022-01-27 09:55:26: lla2 0	llv2 228.0	llas12  llas22  sofortll 16 hausverbrauch 313 wattbezug 22 uberschuss 212 (LV1) at 1270 loadvars loadvars.sh
2022-01-27 09:55:26: lla1 0	llv1 227.3	llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 5 lademodus 3 (LV1) at 1269 loadvars loadvars.sh
2022-01-27 09:55:26: pv1watt -541 pv2watt  pvwatt -541 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 10 maximalA 32 (LV1) at 1268 loadvars loadvars.sh
2022-01-27 09:55:26: speicherleistung 234 speichersoc 1 (LV1) at 1263 loadvars loadvars.sh
2022-01-27 09:55:26: EVU RET: 0 (LV2) at 21 main modules/bezug_siemens/main.sh
2022-01-27 09:55:26: PID: 2487: legacy run server: Completed running command in 0.02s: ["modules.siemens.device","counter","192.168.178.56"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(14, ModbusDataType.INT_32, unit=1)
File "/var/www/html/openWB/packages/modules/siemens/counter.py", line 37, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.56:502)]
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 107, in execute
return self.execute(request)
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/common.py", line 114, in read_holding_registers
address, number_of_addresses, **kwargs)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 79, in __read_registers
Traceback (most recent call last):
2022-01-27 09:55:26: PID: 2487: root: Siemens Zähler: FaultState FaultStateLevel.ERROR, FaultStr TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen., Traceback:
2022-01-27 09:55:26: PID: 2487: pymodbus.client.sync: Connection to (192.168.178.56, 502) failed: [Errno 111] Connection refused
2022-01-27 09:55:26: PID: 2487: root: Komponente Siemens Zähler auslesen.
2022-01-27 09:55:26: PID: 2487: root: Start device reading{'componentNone': <modules.siemens.counter.SiemensCounter object at 0x744a3c10>}
2022-01-27 09:55:26: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 09:55:26: PID: 2487: legacy run server: Received command ["modules.siemens.device","counter","192.168.178.56"]
2022-01-27 09:55:25: BAT RET: 0 (LV2) at 21 main modules/speicher_siemens/main.sh
2022-01-27 09:55:25: PID: 2487: legacy run server: Completed running command in 0.02s: ["modules.siemens.device","bat","192.168.178.56"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(6, ModbusDataType.INT_32, unit=1) * -1
File "/var/www/html/openWB/packages/modules/siemens/bat.py", line 36, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.56:502)]
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 107, in execute
return self.execute(request)
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/common.py", line 114, in read_holding_registers
address, number_of_addresses, **kwargs)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 79, in __read_registers
Traceback (most recent call last):
2022-01-27 09:55:25: PID: 2487: root: Siemens Speicher: FaultState FaultStateLevel.ERROR, FaultStr TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen., Traceback:
2022-01-27 09:55:25: PID: 2487: pymodbus.client.sync: Connection to (192.168.178.56, 502) failed: [Errno 111] Connection refused
2022-01-27 09:55:25: PID: 2487: root: Komponente Siemens Speicher auslesen.
2022-01-27 09:55:25: PID: 2487: root: Start device reading{'componentNone': <modules.siemens.bat.SiemensBat object at 0x744e70f0>}
2022-01-27 09:55:25: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 09:55:25: PID: 2487: legacy run server: Received command ["modules.siemens.device","bat","192.168.178.56"]
2022-01-27 09:55:25: PID: 2487: legacy run server: Completed running command in 3.03s: ["modules.siemens.device","inverter","192.168.178.56","1"]

modules.common.fault_state.FaultState: ("modules.common.modbus <class 'modules.common.fault_state.FaultState'> ('modules.common.modbus Modbus Error: [Input/Output] Modbus Error: [Invalid Message] Incomplete message received, expected at least 8 bytes (0 received)', <FaultStateLevel.ERROR: 2>)", <FaultStateLevel.ERROR: 2>)
str(e)) from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 97, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(16, ModbusDataType.INT_32, unit=1) * -1
File "/var/www/html/openWB/packages/modules/siemens/inverter.py", line 37, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

modules.common.fault_state.FaultState: ('modules.common.modbus Modbus Error: [Input/Output] Modbus Error: [Invalid Message] Incomplete message received, expected at least 8 bytes (0 received)', <FaultStateLevel.ERROR: 2>)
raise FaultState.error(__name__+" "+str(response))
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 81, in __read_registers
Traceback (most recent call last):
2022-01-27 09:55:25: PID: 2487: root: Siemens Wechselrichter: FaultState FaultStateLevel.ERROR, FaultStr modules.common.modbus <class 'modules.common.fault_state.FaultState'> ('modules.common.modbus Modbus Error: [Input/Output] Modbus Error: [Invalid Message] Incomplete message received, expected at least 8 bytes (0 received)', <FaultStateLevel.ERROR: 2>), Traceback:
2022-01-27 09:55:25: PID: 2487: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2022-01-27 09:55:25: PID: 2487: pymodbus.transaction: Getting transaction 1
2022-01-27 09:55:25: PID: 2487: pymodbus.framer.socket_framer: Processing:
2022-01-27 09:55:25: PID: 2487: pymodbus.transaction: Transaction failed. (Modbus Error: [Invalid Message] Incomplete message received, expected at least 8 bytes (0 received))
2022-01-27 09:55:22: PID: 2487: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2022-01-27 09:55:22: PID: 2487: pymodbus.client.sync: New Transaction state 'SENDING'
2022-01-27 09:55:22: PID: 2487: pymodbus.transaction: SEND: 0x0 0x1 0x0 0x0 0x0 0x6 0x1 0x3 0x0 0x10 0x0 0x2
2022-01-27 09:55:22: PID: 2487: pymodbus.transaction: Running transaction 1
2022-01-27 09:55:22: PID: 2487: pymodbus.transaction: Current transaction state - IDLE
2022-01-27 09:55:22: PID: 2487: root: Komponente Siemens Wechselrichter auslesen.
2022-01-27 09:55:22: PID: 2487: root: Start device reading{'component1': <modules.siemens.inverter.SiemensInverter object at 0x744d4710>}
2022-01-27 09:55:22: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 09:55:22: PID: 2487: legacy run server: Received command ["modules.siemens.device","inverter","192.168.178.56","1"]
2022-01-27 09:55:21: **** Regulation loop start **** (LV1) at 70 main /var/www/html/openWB/regel.sh
2022-01-27 09:55:15: **** Regulation loop needs 4 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-01-27 09:55:13: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1275 loadvars loadvars.sh
2022-01-27 09:55:13: plugstatlp1 0	plugstatlp2 0	plugstatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2022-01-27 09:55:13: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1273 loadvars loadvars.sh
2022-01-27 09:55:13: EVU 1:V/0A 2: V/0A 3: V/0A (LV1) at 1272 loadvars loadvars.sh
2022-01-27 09:55:13: lla3 0	llv3 228.8	llas13  llas23  soclp1 35 soclp2 (LV1) at 1271 loadvars loadvars.sh
2022-01-27 09:55:13: lla2 0	llv2 228.5	llas12  llas22  sofortll 16 hausverbrauch 313 wattbezug 22 uberschuss 212 (LV1) at 1270 loadvars loadvars.sh
2022-01-27 09:55:13: lla1 0	llv1 227.7	llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 5 lademodus 3 (LV1) at 1269 loadvars loadvars.sh
2022-01-27 09:55:13: pv1watt -541 pv2watt  pvwatt -541 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 10 maximalA 32 (LV1) at 1268 loadvars loadvars.sh
2022-01-27 09:55:13: speicherleistung 234 speichersoc 1 (LV1) at 1263 loadvars loadvars.sh
2022-01-27 09:55:13: EVU RET: 0 (LV2) at 21 main modules/bezug_siemens/main.sh
2022-01-27 09:55:13: PID: 2487: legacy run server: Completed running command in 0.07s: ["modules.siemens.device","counter","192.168.178.56"]
2022-01-27 09:55:13: PID: 2487: ValueStore: Saving CounterState(powers=[0, 0, 0], exported=4288.012648989314, imported=83030.73938990866, power=22, frequency=50, voltages=[230, 230, 230], power_factors=[0, 0, 0], currents=[0.0, 0.0, 0.0])
2022-01-27 09:55:13: PID: 2487: root: Siemens Zähler Leistung[W]: 22
2022-01-27 09:55:13: PID: 2487: root: simcount Zwischenergebnisse aktuelle Berechnung: Import: 298910661.8036712 Export: 15436845.53636153 Leistung: 22
2022-01-27 09:55:13: PID: 2487: root: simcount Ergebnis: Bezug[Wh]: 83030.73938990866, Einspeisung[Wh]: 4288.012648989314
2022-01-27 09:55:13: PID: 2487: root: simcount aufsummierte Energie: Bezug[Ws]: 298910661.8036712, Einspeisung[Ws]: 15436845.53636153
2022-01-27 09:55:13: PID: 2487: root: simcount exportierte Energie im Zeitintervall: -3937.536361530356
2022-01-27 09:55:13: PID: 2487: root: simcount Gesamtenergie im Zeitintervall: -3926.73269033432
2022-01-27 09:55:13: PID: 2487: root: simcount Berechnungsgrundlage: vergangene Zeit [s]19.732325077056885, vorherige Leistung[W]: -420, aktuelle Leistung[W]: 22
2022-01-27 09:55:13: PID: 2487: root: simcount Zwischenergebnisse letzte Berechnung: Import: 298910651 Export: 15432908 Leistung: -420
2022-01-27 09:55:13: PID: 2487: pymodbus.payload: [b'\x00\x00', b'\x00\x16']
2022-01-27 09:55:13: PID: 2487: pymodbus.payload: [0, 22]
2022-01-27 09:55:13: PID: 2487: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2022-01-27 09:55:13: PID: 2487: pymodbus.transaction: Getting transaction 1
2022-01-27 09:55:13: PID: 2487: pymodbus.transaction: Adding transaction 1
2022-01-27 09:55:13: PID: 2487: pymodbus.factory: Factory Response[ReadHoldingRegistersResponse: 3]
2022-01-27 09:55:13: PID: 2487: pymodbus.framer.socket_framer: Processing: 0x0 0x1 0x0 0x0 0x0 0x7 0x1 0x3 0x4 0x0 0x0 0x0 0x16
2022-01-27 09:55:13: PID: 2487: pymodbus.transaction: RECV: 0x0 0x1 0x0 0x0 0x0 0x7 0x1 0x3 0x4 0x0 0x0 0x0 0x16
2022-01-27 09:55:13: PID: 2487: pymodbus.transaction: Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2022-01-27 09:55:13: PID: 2487: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2022-01-27 09:55:13: PID: 2487: pymodbus.client.sync: New Transaction state 'SENDING'
2022-01-27 09:55:13: PID: 2487: pymodbus.transaction: SEND: 0x0 0x1 0x0 0x0 0x0 0x6 0x1 0x3 0x0 0xe 0x0 0x2
2022-01-27 09:55:13: PID: 2487: pymodbus.transaction: Running transaction 1
2022-01-27 09:55:13: PID: 2487: pymodbus.transaction: Current transaction state - IDLE
2022-01-27 09:55:13: PID: 2487: root: Komponente Siemens Zähler auslesen.
2022-01-27 09:55:13: PID: 2487: root: Start device reading{'componentNone': <modules.siemens.counter.SiemensCounter object at 0x744d4eb0>}
2022-01-27 09:55:13: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 09:55:13: PID: 2487: legacy run server: Received command ["modules.siemens.device","counter","192.168.178.56"]
2022-01-27 09:55:12: BAT RET: 0 (LV2) at 21 main modules/speicher_siemens/main.sh
2022-01-27 09:55:12: PID: 2487: legacy run server: Completed running command in 0.03s: ["modules.siemens.device","bat","192.168.178.56"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(6, ModbusDataType.INT_32, unit=1) * -1
File "/var/www/html/openWB/packages/modules/siemens/bat.py", line 36, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.56:502)]
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 107, in execute
return self.execute(request)
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/common.py", line 114, in read_holding_registers
address, number_of_addresses, **kwargs)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 79, in __read_registers
Traceback (most recent call last):
2022-01-27 09:55:12: PID: 2487: root: Siemens Speicher: FaultState FaultStateLevel.ERROR, FaultStr TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen., Traceback:
2022-01-27 09:55:12: PID: 2487: pymodbus.client.sync: Connection to (192.168.178.56, 502) failed: [Errno 111] Connection refused
2022-01-27 09:55:12: PID: 2487: root: Komponente Siemens Speicher auslesen.
2022-01-27 09:55:12: PID: 2487: root: Start device reading{'componentNone': <modules.siemens.bat.SiemensBat object at 0x74679e90>}
2022-01-27 09:55:12: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 09:55:12: PID: 2487: legacy run server: Received command ["modules.siemens.device","bat","192.168.178.56"]
2022-01-27 09:55:12: PID: 2487: legacy run server: Completed running command in 0.02s: ["modules.siemens.device","inverter","192.168.178.56","1"]

Ich habe zusätzlich auch noch folgendes Versucht:

•Mal alle Module abgeschaltet bis auf eines
•PV stattdessen direkt über WR laufen lassen (der liefert ja ohne Fehler)
•Regelintervall auf langsam

Ich könnte vielleicht noch dem Support schreiben und ihn bitten mir eine neue SD-Karte mit der Stable zuzuschicken und die mal bei mir zu wechseln. Früher ging es ja, wenn der Fehler da also Auftritt ist es wohl wirklich meine Hardware, wenn nicht wissen wir dass es an der Nightly liegt?

EDIT: Ich habe es gerade als Workaround so versucht, dass ich mittels iobroker die Werte per Modbus hole, um sie dann ggf mittels MQTT zu schreiben. Die Werte kommen alle schön regelmäßig an, aber das heißt die Hardware ist wirklich safe.

Allerdings scheinen die Werte Signed 32 Bit zu sein, nachdem es ja auch Unsigned gibt, macht das einen Unterscheid bei euch?
yankee
Beiträge: 481
Registriert: Sa Mai 16, 2020 11:34 am

Re: Siemens Module ab 1.9.251

Beitrag von yankee »

thesorrow101 hat geschrieben: Do Jan 27, 2022 8:57 am Allerdings scheinen die Werte Signed 32 Bit zu sein, nachdem es ja auch Unsigned gibt, macht das einen Unterscheid bei euch?
Nein, das würde völlig andere Fehler bringen. Es wäre natürlich trotzdem gut das Ganze zu korrigieren wenn es falsch ist, hat hiermit aber ziemlich sicher nichts zu tun.

Könntest du versuchen die Module mal nur einzeln zu konfigurieren? Also mal NUR Batterie und mal NUR Zähler etc. einstellen und die anderen Siemensmodule deaktivieren. Es wäre denkbar, dass nur eins der Module spinnt, aber die anderen in Mitleidenschaft zieht, weil der Modbusserver aussteigt. Durch einzelnes ausprobieren könnten wir dahinter kommen, welches der Module schuld ist. Und wir könnten auch Wechselwirkungen wie zu schnelles schließen und öffnen von Modbusverbindungen etc. auf die Schliche kommen.
thesorrow101
Beiträge: 718
Registriert: Mo Okt 12, 2020 7:41 am

Re: Siemens Module ab 1.9.251

Beitrag von thesorrow101 »

Nur PV Modul (ist halt nur dunkel draußen ;) ):

Code: Alles auswählen

2022-01-27 19:59:15: **** Regulation loop needs 3 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-01-27 19:59:14: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1275 loadvars loadvars.sh
2022-01-27 19:59:14: plugstatlp1 0	plugstatlp2 0	plugstatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2022-01-27 19:59:14: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1273 loadvars loadvars.sh
2022-01-27 19:59:14: EVU 1:V/A 2: V/A 3: V/A (LV1) at 1272 loadvars loadvars.sh
2022-01-27 19:59:14: lla3 0	llv3 228.1	llas13  llas23  soclp1 15 soclp2 (LV1) at 1271 loadvars loadvars.sh
2022-01-27 19:59:14: lla2 0	llv2 227.0	llas12  llas22  sofortll 16 hausverbrauch 0 wattbezug 0 uberschuss 0 (LV1) at 1270 loadvars loadvars.sh
2022-01-27 19:59:14: lla1 0	llv1 226.0	llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 5 lademodus 3 (LV1) at 1269 loadvars loadvars.sh
2022-01-27 19:59:14: pv1watt 0 pv2watt  pvwatt 0 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 10 maximalA 32 (LV1) at 1268 loadvars loadvars.sh
2022-01-27 19:59:13: PID: 2487: legacy run server: Completed running command in 0.13s: ["modules.siemens.device","inverter","192.168.178.56","1"]
2022-01-27 19:59:13: PID: 2487: ValueStore: Saving InverterState(counter=74396.58888888889, power=0, currents=[0, 0, 0])
2022-01-27 19:59:13: PID: 2487: root: simcount Zwischenergebnisse aktuelle Berechnung: Import: 413.0 Export: 267827720 Leistung: 0
2022-01-27 19:59:13: PID: 2487: root: simcount Ergebnis: Bezug[Wh]: 0.11472222222222223, Einspeisung[Wh]: 74396.58888888889
2022-01-27 19:59:13: PID: 2487: root: simcount aufsummierte Energie: Bezug[Ws]: 413.0, Einspeisung[Ws]: 267827720
2022-01-27 19:59:13: PID: 2487: root: simcount Gesamtenergie im Zeitintervall: 0.0
2022-01-27 19:59:13: PID: 2487: root: simcount Berechnungsgrundlage: vergangene Zeit [s]60.765546798706055, vorherige Leistung[W]: 0, aktuelle Leistung[W]: 0
2022-01-27 19:59:13: PID: 2487: root: simcount Zwischenergebnisse letzte Berechnung: Import: 413 Export: 267827720 Leistung: 0
2022-01-27 19:59:13: PID: 2487: pymodbus.payload: [b'\x00\x00', b'\x00\x00']
2022-01-27 19:59:13: PID: 2487: pymodbus.payload: [0, 0]
2022-01-27 19:59:13: PID: 2487: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2022-01-27 19:59:13: PID: 2487: pymodbus.transaction: Getting transaction 1
2022-01-27 19:59:13: PID: 2487: pymodbus.transaction: Adding transaction 1
2022-01-27 19:59:13: PID: 2487: pymodbus.factory: Factory Response[ReadHoldingRegistersResponse: 3]
2022-01-27 19:59:13: PID: 2487: pymodbus.framer.socket_framer: Processing: 0x0 0x1 0x0 0x0 0x0 0x7 0x1 0x3 0x4 0x0 0x0 0x0 0x0
2022-01-27 19:59:13: PID: 2487: pymodbus.transaction: RECV: 0x0 0x1 0x0 0x0 0x0 0x7 0x1 0x3 0x4 0x0 0x0 0x0 0x0
2022-01-27 19:59:13: PID: 2487: pymodbus.transaction: Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2022-01-27 19:59:13: PID: 2487: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2022-01-27 19:59:13: PID: 2487: pymodbus.client.sync: New Transaction state 'SENDING'
2022-01-27 19:59:13: PID: 2487: pymodbus.transaction: SEND: 0x0 0x1 0x0 0x0 0x0 0x6 0x1 0x3 0x0 0x10 0x0 0x2
2022-01-27 19:59:13: PID: 2487: pymodbus.transaction: Running transaction 1
2022-01-27 19:59:13: PID: 2487: pymodbus.transaction: Current transaction state - IDLE
2022-01-27 19:59:13: PID: 2487: root: Komponente Siemens Wechselrichter auslesen.
2022-01-27 19:59:13: PID: 2487: root: Start device reading{'component1': <modules.siemens.inverter.SiemensInverter object at 0x7448e2f0>}
2022-01-27 19:59:13: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 19:59:13: PID: 2487: legacy run server: Received command ["modules.siemens.device","inverter","192.168.178.56","1"]
2022-01-27 19:59:12: **** Regulation loop start **** (LV1) at 70 main /var/www/html/openWB/regel.sh
2022-01-27 19:59:05: **** Regulation loop needs 4 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-01-27 19:59:04: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1275 loadvars loadvars.sh
2022-01-27 19:59:04: plugstatlp1 0	plugstatlp2 0	plugstatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2022-01-27 19:59:04: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1273 loadvars loadvars.sh
2022-01-27 19:59:04: EVU 1:V/A 2: V/A 3: V/A (LV1) at 1272 loadvars loadvars.sh
2022-01-27 19:59:04: lla3 0	llv3 228.1	llas13  llas23  soclp1 15 soclp2 (LV1) at 1271 loadvars loadvars.sh
2022-01-27 19:59:03: lla2 0	llv2 226.9	llas12  llas22  sofortll 16 hausverbrauch 0 wattbezug 0 uberschuss 0 (LV1) at 1270 loadvars loadvars.sh
2022-01-27 19:59:03: lla1 0	llv1 226.5	llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 5 lademodus 3 (LV1) at 1269 loadvars loadvars.sh
2022-01-27 19:59:03: pv1watt 0 pv2watt  pvwatt 0 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 10 maximalA 32 (LV1) at 1268 loadvars loadvars.sh
2022-01-27 19:59:03: PID: 2487: legacy run server: Completed running command in 0.04s: ["modules.siemens.device","inverter","192.168.178.56","1"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(16, ModbusDataType.INT_32, unit=1) * -1
File "/var/www/html/openWB/packages/modules/siemens/inverter.py", line 37, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.56:502)]
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 107, in execute
return self.execute(request)
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/common.py", line 114, in read_holding_registers
address, number_of_addresses, **kwargs)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 79, in __read_registers
Traceback (most recent call last):
2022-01-27 19:59:03: PID: 2487: root: Siemens Wechselrichter: FaultState FaultStateLevel.ERROR, FaultStr TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen., Traceback:
2022-01-27 19:59:03: PID: 2487: pymodbus.client.sync: Connection to (192.168.178.56, 502) failed: [Errno 111] Connection refused
2022-01-27 19:59:03: PID: 2487: root: Komponente Siemens Wechselrichter auslesen.
2022-01-27 19:59:03: PID: 2487: root: Start device reading{'component1': <modules.siemens.inverter.SiemensInverter object at 0x744e7fb0>}
2022-01-27 19:59:03: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 19:59:03: PID: 2487: legacy run server: Received command ["modules.siemens.device","inverter","192.168.178.56","1"]
2022-01-27 19:59:02: **** Regulation loop start **** (LV1) at 70 main /var/www/html/openWB/regel.sh
2022-01-27 19:58:54: **** Regulation loop needs 3 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-01-27 19:58:53: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1275 loadvars loadvars.sh
2022-01-27 19:58:53: plugstatlp1 0	plugstatlp2 0	plugstatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2022-01-27 19:58:53: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1273 loadvars loadvars.sh
2022-01-27 19:58:53: EVU 1:V/A 2: V/A 3: V/A (LV1) at 1272 loadvars loadvars.sh
2022-01-27 19:58:53: lla3 0	llv3 228.1	llas13  llas23  soclp1 15 soclp2 (LV1) at 1271 loadvars loadvars.sh
2022-01-27 19:58:53: lla2 0	llv2 227.1	llas12  llas22  sofortll 16 hausverbrauch 0 wattbezug 0 uberschuss 0 (LV1) at 1270 loadvars loadvars.sh
2022-01-27 19:58:53: lla1 0	llv1 226.0	llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 5 lademodus 3 (LV1) at 1269 loadvars loadvars.sh
2022-01-27 19:58:53: pv1watt 0 pv2watt  pvwatt 0 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 10 maximalA 32 (LV1) at 1268 loadvars loadvars.sh
2022-01-27 19:58:52: PID: 2487: legacy run server: Completed running command in 0.02s: ["modules.siemens.device","inverter","192.168.178.56","1"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(16, ModbusDataType.INT_32, unit=1) * -1
File "/var/www/html/openWB/packages/modules/siemens/inverter.py", line 37, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.56:502)]
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 107, in execute
return self.execute(request)
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/common.py", line 114, in read_holding_registers
address, number_of_addresses, **kwargs)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 79, in __read_registers
Traceback (most recent call last):
2022-01-27 19:58:52: PID: 2487: root: Siemens Wechselrichter: FaultState FaultStateLevel.ERROR, FaultStr TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen., Traceback:
2022-01-27 19:58:52: PID: 2487: pymodbus.client.sync: Connection to (192.168.178.56, 502) failed: [Errno 111] Connection refused
2022-01-27 19:58:52: PID: 2487: root: Komponente Siemens Wechselrichter auslesen.
2022-01-27 19:58:52: PID: 2487: root: Start device reading{'component1': <modules.siemens.inverter.SiemensInverter object at 0x7448e470>}
2022-01-27 19:58:52: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 19:58:52: PID: 2487: legacy run server: Received command ["modules.siemens.device","inverter","192.168.178.56","1"]
2022-01-27 19:58:51: **** Regulation loop start **** (LV1) at 70 main /var/www/html/openWB/regel.sh
2022-01-27 19:58:44: **** Regulation loop needs 3 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-01-27 19:58:43: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1275 loadvars loadvars.sh
2022-01-27 19:58:43: plugstatlp1 0	plugstatlp2 0	plugstatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2022-01-27 19:58:43: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1273 loadvars loadvars.sh
2022-01-27 19:58:43: EVU 1:V/A 2: V/A 3: V/A (LV1) at 1272 loadvars loadvars.sh
2022-01-27 19:58:43: lla3 0	llv3 227.9	llas13  llas23  soclp1 15 soclp2 (LV1) at 1271 loadvars loadvars.sh
2022-01-27 19:58:43: lla2 0	llv2 227.1	llas12  llas22  sofortll 16 hausverbrauch 0 wattbezug 0 uberschuss 0 (LV1) at 1270 loadvars loadvars.sh
2022-01-27 19:58:43: lla1 0	llv1 226.2	llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 5 lademodus 3 (LV1) at 1269 loadvars loadvars.sh
2022-01-27 19:58:43: pv1watt 0 pv2watt  pvwatt 0 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 10 maximalA 32 (LV1) at 1268 loadvars loadvars.sh
2022-01-27 19:58:42: PID: 2487: legacy run server: Completed running command in 0.03s: ["modules.siemens.device","inverter","192.168.178.56","1"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(16, ModbusDataType.INT_32, unit=1) * -1
File "/var/www/html/openWB/packages/modules/siemens/inverter.py", line 37, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.56:502)]
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 107, in execute
return self.execute(request)
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/common.py", line 114, in read_holding_registers
address, number_of_addresses, **kwargs)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 79, in __read_registers
Traceback (most recent call last):
2022-01-27 19:58:42: PID: 2487: root: Siemens Wechselrichter: FaultState FaultStateLevel.ERROR, FaultStr TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen., Traceback:
2022-01-27 19:58:42: PID: 2487: pymodbus.client.sync: Connection to (192.168.178.56, 502) failed: [Errno 111] Connection refused
2022-01-27 19:58:42: PID: 2487: root: Komponente Siemens Wechselrichter auslesen.
2022-01-27 19:58:42: PID: 2487: root: Start device reading{'component1': <modules.siemens.inverter.SiemensInverter object at 0x744d4c30>}
2022-01-27 19:58:42: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 19:58:42: PID: 2487: legacy run server: Received command ["modules.siemens.device","inverter","192.168.178.56","1"]
2022-01-27 19:58:41: **** Regulation loop start **** (LV1) at 70 main /var/www/html/openWB/regel.sh
2022-01-27 19:58:35: **** Regulation loop needs 4 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-01-27 19:58:33: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1275 loadvars loadvars.sh
2022-01-27 19:58:33: plugstatlp1 0	plugstatlp2 0	plugstatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2022-01-27 19:58:33: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1273 loadvars loadvars.sh
2022-01-27 19:58:33: EVU 1:V/A 2: V/A 3: V/A (LV1) at 1272 loadvars loadvars.sh
2022-01-27 19:58:33: lla3 0	llv3 228.0	llas13  llas23  soclp1 15 soclp2 (LV1) at 1271 loadvars loadvars.sh
2022-01-27 19:58:33: lla2 0	llv2 227.0	llas12  llas22  sofortll 16 hausverbrauch 0 wattbezug 0 uberschuss 0 (LV1) at 1270 loadvars loadvars.sh
2022-01-27 19:58:33: lla1 0	llv1 226.0	llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 5 lademodus 3 (LV1) at 1269 loadvars loadvars.sh
2022-01-27 19:58:33: pv1watt 0 pv2watt  pvwatt 0 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 10 maximalA 32 (LV1) at 1268 loadvars loadvars.sh
2022-01-27 19:58:32: PID: 2487: legacy run server: Completed running command in 0.06s: ["modules.siemens.device","inverter","192.168.178.56","1"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(16, ModbusDataType.INT_32, unit=1) * -1
File "/var/www/html/openWB/packages/modules/siemens/inverter.py", line 37, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):
Zuletzt geändert von thesorrow101 am Do Jan 27, 2022 7:05 pm, insgesamt 1-mal geändert.
thesorrow101
Beiträge: 718
Registriert: Mo Okt 12, 2020 7:41 am

Re: Siemens Module ab 1.9.251

Beitrag von thesorrow101 »

Nur EVU Modul:

Code: Alles auswählen

2022-01-27 20:01:41: **** Regulation loop start **** (LV1) at 70 main /var/www/html/openWB/regel.sh
2022-01-27 20:01:34: **** Regulation loop needs 3 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-01-27 20:01:33: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1275 loadvars loadvars.sh
2022-01-27 20:01:33: plugstatlp1 0	plugstatlp2 0	plugstatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2022-01-27 20:01:33: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1273 loadvars loadvars.sh
2022-01-27 20:01:33: EVU 1:V/0A 2: V/0A 3: V/0A (LV1) at 1272 loadvars loadvars.sh
2022-01-27 20:01:33: lla3 0	llv3 228.7	llas13  llas23  soclp1 15 soclp2 (LV1) at 1271 loadvars loadvars.sh
2022-01-27 20:01:33: lla2 0	llv2 227.3	llas12  llas22  sofortll 16 hausverbrauch 1018 wattbezug 1047 uberschuss -1047 (LV1) at 1270 loadvars loadvars.sh
2022-01-27 20:01:33: lla1 0	llv1 227.5	llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 5 lademodus 3 (LV1) at 1269 loadvars loadvars.sh
2022-01-27 20:01:33: pv1watt  pv2watt  pvwatt 0 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 10 maximalA 32 (LV1) at 1268 loadvars loadvars.sh
2022-01-27 20:01:33: EVU RET: 0 (LV2) at 21 main modules/bezug_siemens/main.sh
2022-01-27 20:01:33: PID: 2487: legacy run server: Completed running command in 0.02s: ["modules.siemens.device","counter","192.168.178.56"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(14, ModbusDataType.INT_32, unit=1)
File "/var/www/html/openWB/packages/modules/siemens/counter.py", line 37, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.56:502)]
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 107, in execute
return self.execute(request)
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/common.py", line 114, in read_holding_registers
address, number_of_addresses, **kwargs)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 79, in __read_registers
Traceback (most recent call last):
2022-01-27 20:01:33: PID: 2487: root: Siemens Zähler: FaultState FaultStateLevel.ERROR, FaultStr TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen., Traceback:
2022-01-27 20:01:33: PID: 2487: pymodbus.client.sync: Connection to (192.168.178.56, 502) failed: [Errno 111] Connection refused
2022-01-27 20:01:33: PID: 2487: root: Komponente Siemens Zähler auslesen.
2022-01-27 20:01:33: PID: 2487: root: Start device reading{'componentNone': <modules.siemens.counter.SiemensCounter object at 0x744aab70>}
2022-01-27 20:01:33: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 20:01:33: PID: 2487: legacy run server: Received command ["modules.siemens.device","counter","192.168.178.56"]
2022-01-27 20:01:31: **** Regulation loop start **** (LV1) at 70 main /var/www/html/openWB/regel.sh
2022-01-27 20:01:24: **** Regulation loop needs 3 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-01-27 20:01:23: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1275 loadvars loadvars.sh
2022-01-27 20:01:23: plugstatlp1 0	plugstatlp2 0	plugstatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2022-01-27 20:01:23: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1273 loadvars loadvars.sh
2022-01-27 20:01:23: EVU 1:V/0A 2: V/0A 3: V/0A (LV1) at 1272 loadvars loadvars.sh
2022-01-27 20:01:23: lla3 0	llv3 229.1	llas13  llas23  soclp1 15 soclp2 (LV1) at 1271 loadvars loadvars.sh
2022-01-27 20:01:23: lla2 0	llv2 227.7	llas12  llas22  sofortll 16 hausverbrauch 1012 wattbezug 1047 uberschuss -1047 (LV1) at 1270 loadvars loadvars.sh
2022-01-27 20:01:23: lla1 0	llv1 227.8	llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 5 lademodus 3 (LV1) at 1269 loadvars loadvars.sh
2022-01-27 20:01:23: pv1watt  pv2watt  pvwatt 0 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 10 maximalA 32 (LV1) at 1268 loadvars loadvars.sh
2022-01-27 20:01:23: EVU RET: 0 (LV2) at 21 main modules/bezug_siemens/main.sh
2022-01-27 20:01:23: PID: 2487: legacy run server: Completed running command in 0.02s: ["modules.siemens.device","counter","192.168.178.56"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(14, ModbusDataType.INT_32, unit=1)
File "/var/www/html/openWB/packages/modules/siemens/counter.py", line 37, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.56:502)]
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 107, in execute
return self.execute(request)
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/common.py", line 114, in read_holding_registers
address, number_of_addresses, **kwargs)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 79, in __read_registers
Traceback (most recent call last):
2022-01-27 20:01:23: PID: 2487: root: Siemens Zähler: FaultState FaultStateLevel.ERROR, FaultStr TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen., Traceback:
2022-01-27 20:01:23: PID: 2487: pymodbus.client.sync: Connection to (192.168.178.56, 502) failed: [Errno 111] Connection refused
2022-01-27 20:01:23: PID: 2487: root: Komponente Siemens Zähler auslesen.
2022-01-27 20:01:23: PID: 2487: root: Start device reading{'componentNone': <modules.siemens.counter.SiemensCounter object at 0x744e7a70>}
2022-01-27 20:01:23: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 20:01:23: PID: 2487: legacy run server: Received command ["modules.siemens.device","counter","192.168.178.56"]
2022-01-27 20:01:21: **** Regulation loop start **** (LV1) at 70 main /var/www/html/openWB/regel.sh
2022-01-27 20:01:14: **** Regulation loop needs 3 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-01-27 20:01:13: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1275 loadvars loadvars.sh
2022-01-27 20:01:13: plugstatlp1 0	plugstatlp2 0	plugstatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2022-01-27 20:01:13: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1273 loadvars loadvars.sh
2022-01-27 20:01:13: EVU 1:V/0A 2: V/0A 3: V/0A (LV1) at 1272 loadvars loadvars.sh
2022-01-27 20:01:13: lla3 0	llv3 229.2	llas13  llas23  soclp1 15 soclp2 (LV1) at 1271 loadvars loadvars.sh
2022-01-27 20:01:13: lla2 0	llv2 227.7	llas12  llas22  sofortll 16 hausverbrauch 1012 wattbezug 1047 uberschuss -1047 (LV1) at 1270 loadvars loadvars.sh
2022-01-27 20:01:13: lla1 0	llv1 227.6	llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 5 lademodus 3 (LV1) at 1269 loadvars loadvars.sh
2022-01-27 20:01:13: pv1watt  pv2watt  pvwatt 0 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 10 maximalA 32 (LV1) at 1268 loadvars loadvars.sh
2022-01-27 20:01:13: EVU RET: 0 (LV2) at 21 main modules/bezug_siemens/main.sh
2022-01-27 20:01:13: PID: 2487: legacy run server: Completed running command in 0.02s: ["modules.siemens.device","counter","192.168.178.56"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(14, ModbusDataType.INT_32, unit=1)
File "/var/www/html/openWB/packages/modules/siemens/counter.py", line 37, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.56:502)]
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 107, in execute
return self.execute(request)
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/common.py", line 114, in read_holding_registers
address, number_of_addresses, **kwargs)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 79, in __read_registers
Traceback (most recent call last):
2022-01-27 20:01:13: PID: 2487: root: Siemens Zähler: FaultState FaultStateLevel.ERROR, FaultStr TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen., Traceback:
2022-01-27 20:01:13: PID: 2487: pymodbus.client.sync: Connection to (192.168.178.56, 502) failed: [Errno 111] Connection refused
2022-01-27 20:01:13: PID: 2487: root: Komponente Siemens Zähler auslesen.
2022-01-27 20:01:13: PID: 2487: root: Start device reading{'componentNone': <modules.siemens.counter.SiemensCounter object at 0x744d4030>}
2022-01-27 20:01:13: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 20:01:13: PID: 2487: legacy run server: Received command ["modules.siemens.device","counter","192.168.178.56"]
2022-01-27 20:01:11: **** Regulation loop start **** (LV1) at 70 main /var/www/html/openWB/regel.sh
2022-01-27 20:01:04: **** Regulation loop needs 3 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-01-27 20:01:03: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1275 loadvars loadvars.sh
2022-01-27 20:01:03: plugstatlp1 0	plugstatlp2 0	plugstatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2022-01-27 20:01:03: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1273 loadvars loadvars.sh
2022-01-27 20:01:03: EVU 1:V/0A 2: V/0A 3: V/0A (LV1) at 1272 loadvars loadvars.sh
2022-01-27 20:01:03: lla3 0	llv3 229.2	llas13  llas23  soclp1 15 soclp2 (LV1) at 1271 loadvars loadvars.sh
2022-01-27 20:01:03: lla2 0	llv2 227.9	llas12  llas22  sofortll 16 hausverbrauch 1011 wattbezug 1047 uberschuss -1047 (LV1) at 1270 loadvars loadvars.sh
2022-01-27 20:01:03: lla1 0	llv1 227.7	llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 5 lademodus 3 (LV1) at 1269 loadvars loadvars.sh
2022-01-27 20:01:03: pv1watt  pv2watt  pvwatt 0 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 10 maximalA 32 (LV1) at 1268 loadvars loadvars.sh
2022-01-27 20:01:03: EVU RET: 0 (LV2) at 21 main modules/bezug_siemens/main.sh
2022-01-27 20:01:03: PID: 2487: legacy run server: Completed running command in 0.03s: ["modules.siemens.device","counter","192.168.178.56"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(14, ModbusDataType.INT_32, unit=1)
File "/var/www/html/openWB/packages/modules/siemens/counter.py", line 37, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.56:502)]
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 107, in execute
return self.execute(request)
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/common.py", line 114, in read_holding_registers
address, number_of_addresses, **kwargs)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 79, in __read_registers
Traceback (most recent call last):
2022-01-27 20:01:03: PID: 2487: root: Siemens Zähler: FaultState FaultStateLevel.ERROR, FaultStr TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen., Traceback:
2022-01-27 20:01:03: PID: 2487: pymodbus.client.sync: Connection to (192.168.178.56, 502) failed: [Errno 111] Connection refused
2022-01-27 20:01:03: PID: 2487: root: Komponente Siemens Zähler auslesen.
2022-01-27 20:01:03: PID: 2487: root: Start device reading{'componentNone': <modules.siemens.counter.SiemensCounter object at 0x7448e290>}
2022-01-27 20:01:03: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 20:01:03: PID: 2487: legacy run server: Received command ["modules.siemens.device","counter","192.168.178.56"]
2022-01-27 20:01:01: **** Regulation loop start **** (LV1) at 70 main /var/www/html/openWB/regel.sh
2022-01-27 20:00:58: **** Regulation loop needs 7 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-01-27 20:00:57: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1275 loadvars loadvars.sh
2022-01-27 20:00:57: plugstatlp1 0	plugstatlp2 0	plugstatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2022-01-27 20:00:57: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1273 loadvars loadvars.sh
2022-01-27 20:00:56: EVU 1:V/0A 2: V/0A 3: V/0A (LV1) at 1272 loadvars loadvars.sh
2022-01-27 20:00:56: lla3 0	llv3 228.7	llas13  llas23  soclp1 15 soclp2 (LV1) at 1271 loadvars loadvars.sh
2022-01-27 20:00:56: lla2 0	llv2 227.2	llas12  llas22  sofortll 16 hausverbrauch 1006 wattbezug 1047 uberschuss -1047 (LV1) at 1270 loadvars loadvars.sh
2022-01-27 20:00:56: lla1 0	llv1 227.3	llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 5 lademodus 3 (LV1) at 1269 loadvars loadvars.sh
2022-01-27 20:00:56: pv1watt  pv2watt  pvwatt 0 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 10 maximalA 32 (LV1) at 1268 loadvars loadvars.sh
2022-01-27 20:00:56: EVU RET: 0 (LV2) at 21 main modules/bezug_siemens/main.sh
2022-01-27 20:00:56: PID: 2487: legacy run server: Completed running command in 3.05s: ["modules.siemens.device","counter","192.168.178.56"]

modules.common.fault_state.FaultState: ("modules.common.modbus <class 'modules.common.fault_state.FaultState'> ('modules.common.modbus Modbus Error: [Input/Output] Modbus Error: [Invalid Message] Incomplete message received, expected at least 8 bytes (0 received)', <FaultStateLevel.ERROR: 2>)", <FaultStateLevel.ERROR: 2>)
str(e)) from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 97, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(14, ModbusDataType.INT_32, unit=1)
File "/var/www/html/openWB/packages/modules/siemens/counter.py", line 37, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:
thesorrow101
Beiträge: 718
Registriert: Mo Okt 12, 2020 7:41 am

Re: Siemens Module ab 1.9.251

Beitrag von thesorrow101 »

Nur Batterie:

Code: Alles auswählen

2022-01-27 20:04:24: **** Regulation loop needs 3 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-01-27 20:04:23: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1275 loadvars loadvars.sh
2022-01-27 20:04:23: plugstatlp1 0	plugstatlp2 0	plugstatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2022-01-27 20:04:23: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1273 loadvars loadvars.sh
2022-01-27 20:04:23: EVU 1:V/A 2: V/A 3: V/A (LV1) at 1272 loadvars loadvars.sh
2022-01-27 20:04:23: lla3 0	llv3 227.8	llas13  llas23  soclp1 15 soclp2 (LV1) at 1271 loadvars loadvars.sh
2022-01-27 20:04:23: lla2 0	llv2 226.9	llas12  llas22  sofortll 16 hausverbrauch 0 wattbezug 0 uberschuss 0 (LV1) at 1270 loadvars loadvars.sh
2022-01-27 20:04:23: lla1 0	llv1 228.1	llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 5 lademodus 3 (LV1) at 1269 loadvars loadvars.sh
2022-01-27 20:04:23: pv1watt  pv2watt  pvwatt 0 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 10 maximalA 32 (LV1) at 1268 loadvars loadvars.sh
2022-01-27 20:04:23: speicherleistung 4 speichersoc 0 (LV1) at 1263 loadvars loadvars.sh
2022-01-27 20:04:22: BAT RET: 0 (LV2) at 21 main modules/speicher_siemens/main.sh
2022-01-27 20:04:22: PID: 2487: legacy run server: Completed running command in 0.03s: ["modules.siemens.device","bat","192.168.178.56"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(6, ModbusDataType.INT_32, unit=1) * -1
File "/var/www/html/openWB/packages/modules/siemens/bat.py", line 36, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.56:502)]
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 107, in execute
return self.execute(request)
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/common.py", line 114, in read_holding_registers
address, number_of_addresses, **kwargs)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 79, in __read_registers
Traceback (most recent call last):
2022-01-27 20:04:22: PID: 2487: root: Siemens Speicher: FaultState FaultStateLevel.ERROR, FaultStr TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen., Traceback:
2022-01-27 20:04:22: PID: 2487: pymodbus.client.sync: Connection to (192.168.178.56, 502) failed: [Errno 111] Connection refused
2022-01-27 20:04:22: PID: 2487: root: Komponente Siemens Speicher auslesen.
2022-01-27 20:04:22: PID: 2487: root: Start device reading{'componentNone': <modules.siemens.bat.SiemensBat object at 0x744aa830>}
2022-01-27 20:04:22: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 20:04:22: PID: 2487: legacy run server: Received command ["modules.siemens.device","bat","192.168.178.56"]
2022-01-27 20:04:21: **** Regulation loop start **** (LV1) at 70 main /var/www/html/openWB/regel.sh
2022-01-27 20:04:14: **** Regulation loop needs 3 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-01-27 20:04:13: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1275 loadvars loadvars.sh
2022-01-27 20:04:13: plugstatlp1 0	plugstatlp2 0	plugstatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2022-01-27 20:04:13: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1273 loadvars loadvars.sh
2022-01-27 20:04:13: EVU 1:V/A 2: V/A 3: V/A (LV1) at 1272 loadvars loadvars.sh
2022-01-27 20:04:13: lla3 0	llv3 227.7	llas13  llas23  soclp1 15 soclp2 (LV1) at 1271 loadvars loadvars.sh
2022-01-27 20:04:13: lla2 0	llv2 226.7	llas12  llas22  sofortll 16 hausverbrauch 0 wattbezug 0 uberschuss 0 (LV1) at 1270 loadvars loadvars.sh
2022-01-27 20:04:13: lla1 0	llv1 228.1	llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 5 lademodus 3 (LV1) at 1269 loadvars loadvars.sh
2022-01-27 20:04:13: pv1watt  pv2watt  pvwatt 0 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 10 maximalA 32 (LV1) at 1268 loadvars loadvars.sh
2022-01-27 20:04:13: speicherleistung 4 speichersoc 0 (LV1) at 1263 loadvars loadvars.sh
2022-01-27 20:04:12: BAT RET: 0 (LV2) at 21 main modules/speicher_siemens/main.sh
2022-01-27 20:04:12: PID: 2487: legacy run server: Completed running command in 0.02s: ["modules.siemens.device","bat","192.168.178.56"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(6, ModbusDataType.INT_32, unit=1) * -1
File "/var/www/html/openWB/packages/modules/siemens/bat.py", line 36, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.56:502)]
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/sync.py", line 107, in execute
return self.execute(request)
File "/usr/local/lib/python3.5/dist-packages/pymodbus/client/common.py", line 114, in read_holding_registers
address, number_of_addresses, **kwargs)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 79, in __read_registers
Traceback (most recent call last):
2022-01-27 20:04:12: PID: 2487: root: Siemens Speicher: FaultState FaultStateLevel.ERROR, FaultStr TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen., Traceback:
2022-01-27 20:04:12: PID: 2487: pymodbus.client.sync: Connection to (192.168.178.56, 502) failed: [Errno 111] Connection refused
2022-01-27 20:04:12: PID: 2487: root: Komponente Siemens Speicher auslesen.
2022-01-27 20:04:12: PID: 2487: root: Start device reading{'componentNone': <modules.siemens.bat.SiemensBat object at 0x744f32f0>}
2022-01-27 20:04:12: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 20:04:12: PID: 2487: legacy run server: Received command ["modules.siemens.device","bat","192.168.178.56"]
2022-01-27 20:04:11: **** Regulation loop start **** (LV1) at 70 main /var/www/html/openWB/regel.sh
2022-01-27 20:04:08: **** Regulation loop needs 7 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-01-27 20:04:06: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1275 loadvars loadvars.sh
2022-01-27 20:04:06: plugstatlp1 0	plugstatlp2 0	plugstatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2022-01-27 20:04:06: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1273 loadvars loadvars.sh
2022-01-27 20:04:06: EVU 1:V/A 2: V/A 3: V/A (LV1) at 1272 loadvars loadvars.sh
2022-01-27 20:04:06: lla3 0	llv3 227.4	llas13  llas23  soclp1 15 soclp2 (LV1) at 1271 loadvars loadvars.sh
2022-01-27 20:04:06: lla2 0	llv2 227.2	llas12  llas22  sofortll 16 hausverbrauch 0 wattbezug 0 uberschuss 0 (LV1) at 1270 loadvars loadvars.sh
2022-01-27 20:04:06: lla1 0	llv1 227.9	llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 5 lademodus 3 (LV1) at 1269 loadvars loadvars.sh
2022-01-27 20:04:06: pv1watt  pv2watt  pvwatt 0 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 10 maximalA 32 (LV1) at 1268 loadvars loadvars.sh
2022-01-27 20:04:06: speicherleistung 4 speichersoc 0 (LV1) at 1263 loadvars loadvars.sh
2022-01-27 20:04:05: BAT RET: 0 (LV2) at 21 main modules/speicher_siemens/main.sh
2022-01-27 20:04:05: PID: 2487: legacy run server: Completed running command in 3.05s: ["modules.siemens.device","bat","192.168.178.56"]

modules.common.fault_state.FaultState: ("modules.common.modbus <class 'modules.common.fault_state.FaultState'> ('modules.common.modbus Modbus Error: [Input/Output] Modbus Error: [Invalid Message] Incomplete message received, expected at least 8 bytes (0 received)', <FaultStateLevel.ERROR: 2>)", <FaultStateLevel.ERROR: 2>)
str(e)) from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 97, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(6, ModbusDataType.INT_32, unit=1) * -1
File "/var/www/html/openWB/packages/modules/siemens/bat.py", line 36, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):

The above exception was the direct cause of the following exception:

modules.common.fault_state.FaultState: ('modules.common.modbus Modbus Error: [Input/Output] Modbus Error: [Invalid Message] Incomplete message received, expected at least 8 bytes (0 received)', <FaultStateLevel.ERROR: 2>)
raise FaultState.error(__name__+" "+str(response))
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 81, in __read_registers
Traceback (most recent call last):
2022-01-27 20:04:05: PID: 2487: root: Siemens Speicher: FaultState FaultStateLevel.ERROR, FaultStr modules.common.modbus <class 'modules.common.fault_state.FaultState'> ('modules.common.modbus Modbus Error: [Input/Output] Modbus Error: [Invalid Message] Incomplete message received, expected at least 8 bytes (0 received)', <FaultStateLevel.ERROR: 2>), Traceback:
2022-01-27 20:04:05: PID: 2487: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2022-01-27 20:04:05: PID: 2487: pymodbus.transaction: Getting transaction 1
2022-01-27 20:04:05: PID: 2487: pymodbus.framer.socket_framer: Processing:
2022-01-27 20:04:05: PID: 2487: pymodbus.transaction: Transaction failed. (Modbus Error: [Invalid Message] Incomplete message received, expected at least 8 bytes (0 received))
2022-01-27 20:04:02: PID: 2487: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2022-01-27 20:04:02: PID: 2487: pymodbus.client.sync: New Transaction state 'SENDING'
2022-01-27 20:04:02: PID: 2487: pymodbus.transaction: SEND: 0x0 0x1 0x0 0x0 0x0 0x6 0x1 0x3 0x0 0x6 0x0 0x2
2022-01-27 20:04:02: PID: 2487: pymodbus.transaction: Running transaction 1
2022-01-27 20:04:02: PID: 2487: pymodbus.transaction: Current transaction state - IDLE
2022-01-27 20:04:02: PID: 2487: root: Komponente Siemens Speicher auslesen.
2022-01-27 20:04:02: PID: 2487: root: Start device reading{'componentNone': <modules.siemens.bat.SiemensBat object at 0x7448e7b0>}
2022-01-27 20:04:02: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 20:04:02: PID: 2487: legacy run server: Received command ["modules.siemens.device","bat","192.168.178.56"]
2022-01-27 20:04:01: **** Regulation loop start **** (LV1) at 70 main /var/www/html/openWB/regel.sh
2022-01-27 20:03:54: **** Regulation loop needs 3 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-01-27 20:03:53: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1275 loadvars loadvars.sh
2022-01-27 20:03:53: plugstatlp1 0	plugstatlp2 0	plugstatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2022-01-27 20:03:53: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1273 loadvars loadvars.sh
2022-01-27 20:03:53: EVU 1:V/A 2: V/A 3: V/A (LV1) at 1272 loadvars loadvars.sh
2022-01-27 20:03:53: lla3 0	llv3 227.7	llas13  llas23  soclp1 15 soclp2 (LV1) at 1271 loadvars loadvars.sh
2022-01-27 20:03:53: lla2 0	llv2 227.4	llas12  llas22  sofortll 16 hausverbrauch 0 wattbezug 0 uberschuss 0 (LV1) at 1270 loadvars loadvars.sh
2022-01-27 20:03:53: lla1 0	llv1 227.8	llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 5 lademodus 3 (LV1) at 1269 loadvars loadvars.sh
2022-01-27 20:03:53: pv1watt  pv2watt  pvwatt 0 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 10 maximalA 32 (LV1) at 1268 loadvars loadvars.sh
2022-01-27 20:03:53: speicherleistung 4 speichersoc 0 (LV1) at 1263 loadvars loadvars.sh
2022-01-27 20:03:52: BAT RET: 0 (LV2) at 21 main modules/speicher_siemens/main.sh
2022-01-27 20:03:52: PID: 2487: legacy run server: Completed running command in 0.07s: ["modules.siemens.device","bat","192.168.178.56"]
2022-01-27 20:03:52: PID: 2487: ValueStore: Saving BatState(exported=37263400.98444445, imported=17447.48735168775, soc=0, power=4)
2022-01-27 20:03:52: PID: 2487: root: simcount Zwischenergebnisse aktuelle Berechnung: Import: 62810954.4660759 Export: 134148243544 Leistung: 4
2022-01-27 20:03:52: PID: 2487: root: simcount Ergebnis: Bezug[Wh]: 17447.48735168775, Einspeisung[Wh]: 37263400.98444445
2022-01-27 20:03:52: PID: 2487: root: simcount aufsummierte Energie: Bezug[Ws]: 62810954.4660759, Einspeisung[Ws]: 134148243544
2022-01-27 20:03:52: PID: 2487: root: simcount Gesamtenergie im Zeitintervall: 238.4660758972168
2022-01-27 20:03:52: PID: 2487: root: simcount Berechnungsgrundlage: vergangene Zeit [s]59.6165189743042, vorherige Leistung[W]: 4, aktuelle Leistung[W]: 4
2022-01-27 20:03:52: PID: 2487: root: simcount Zwischenergebnisse letzte Berechnung: Import: 62810716 Export: 134148243544 Leistung: 4
2022-01-27 20:03:52: PID: 2487: pymodbus.payload: [b'\x00\x00', b'\x00\x00']
2022-01-27 20:03:52: PID: 2487: pymodbus.payload: [0, 0]
2022-01-27 20:03:52: PID: 2487: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2022-01-27 20:03:52: PID: 2487: pymodbus.transaction: Getting transaction 2
2022-01-27 20:03:52: PID: 2487: pymodbus.transaction: Adding transaction 2
2022-01-27 20:03:52: PID: 2487: pymodbus.factory: Factory Response[ReadHoldingRegistersResponse: 3]
2022-01-27 20:03:52: PID: 2487: pymodbus.framer.socket_framer: Processing: 0x0 0x2 0x0 0x0 0x0 0x7 0x1 0x3 0x4 0x0 0x0 0x0 0x0
2022-01-27 20:03:52: PID: 2487: pymodbus.transaction: RECV: 0x0 0x2 0x0 0x0 0x0 0x7 0x1 0x3 0x4 0x0 0x0 0x0 0x0
2022-01-27 20:03:52: PID: 2487: pymodbus.transaction: Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2022-01-27 20:03:52: PID: 2487: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2022-01-27 20:03:52: PID: 2487: pymodbus.client.sync: New Transaction state 'SENDING'
2022-01-27 20:03:52: PID: 2487: pymodbus.transaction: SEND: 0x0 0x2 0x0 0x0 0x0 0x6 0x1 0x3 0x0 0x8 0x0 0x2
2022-01-27 20:03:52: PID: 2487: pymodbus.transaction: Running transaction 2
2022-01-27 20:03:52: PID: 2487: pymodbus.transaction: Current transaction state - TRANSACTION_COMPLETE
2022-01-27 20:03:52: PID: 2487: pymodbus.payload: [b'\xff\xff', b'\xff\xfc']
2022-01-27 20:03:52: PID: 2487: pymodbus.payload: [65535, 65532]
2022-01-27 20:03:52: PID: 2487: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2022-01-27 20:03:52: PID: 2487: pymodbus.transaction: Getting transaction 1
2022-01-27 20:03:52: PID: 2487: pymodbus.transaction: Adding transaction 1
2022-01-27 20:03:52: PID: 2487: pymodbus.factory: Factory Response[ReadHoldingRegistersResponse: 3]
2022-01-27 20:03:52: PID: 2487: pymodbus.framer.socket_framer: Processing: 0x0 0x1 0x0 0x0 0x0 0x7 0x1 0x3 0x4 0xff 0xff 0xff 0xfc
2022-01-27 20:03:52: PID: 2487: pymodbus.transaction: RECV: 0x0 0x1 0x0 0x0 0x0 0x7 0x1 0x3 0x4 0xff 0xff 0xff 0xfc
2022-01-27 20:03:52: PID: 2487: pymodbus.transaction: Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2022-01-27 20:03:52: PID: 2487: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2022-01-27 20:03:52: PID: 2487: pymodbus.client.sync: New Transaction state 'SENDING'
2022-01-27 20:03:52: PID: 2487: pymodbus.transaction: SEND: 0x0 0x1 0x0 0x0 0x0 0x6 0x1 0x3 0x0 0x6 0x0 0x2
2022-01-27 20:03:52: PID: 2487: pymodbus.transaction: Running transaction 1
2022-01-27 20:03:52: PID: 2487: pymodbus.transaction: Current transaction state - IDLE
2022-01-27 20:03:52: PID: 2487: root: Komponente Siemens Speicher auslesen.
2022-01-27 20:03:52: PID: 2487: root: Start device reading{'componentNone': <modules.siemens.bat.SiemensBat object at 0x7448efb0>}
2022-01-27 20:03:52: PID: 2487: root: Siemens IP-Adresse: 192.168.178.56
2022-01-27 20:03:52: PID: 2487: legacy run server: Received command ["modules.siemens.device","bat","192.168.178.56"]
2022-01-27 20:03:51: **** Regulation loop start **** (LV1) at 70 main /var/www/html/openWB/regel.sh
2022-01-27 20:03:44: **** Regulation loop needs 3 seconds (LV2) at 55 cleanup /var/www/html/openWB/regel.sh
2022-01-27 20:03:43: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1275 loadvars loadvars.sh
2022-01-27 20:03:43: plugstatlp1 0	plugstatlp2 0	plugstatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2022-01-27 20:03:43: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1273 loadvars loadvars.sh
2022-01-27 20:03:43: EVU 1:V/A 2: V/A 3: V/A (LV1) at 1272 loadvars loadvars.sh
2022-01-27 20:03:43: lla3 0	llv3 227.7	llas13  llas23  soclp1 15 soclp2 (LV1) at 1271 loadvars loadvars.sh
2022-01-27 20:03:43: lla2 0	llv2 227.1	llas12  llas22  sofortll 16 hausverbrauch 0 wattbezug 0 uberschuss 0 (LV1) at 1270 loadvars loadvars.sh
2022-01-27 20:03:43: lla1 0	llv1 227.9	llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 5 lademodus 3 (LV1) at 1269 loadvars loadvars.sh
2022-01-27 20:03:43: pv1watt  pv2watt  pvwatt 0 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 10 maximalA 32 (LV1) at 1268 loadvars loadvars.sh
2022-01-27 20:03:43: speicherleistung 4 speichersoc 0 (LV1) at 1263 loadvars loadvars.sh
2022-01-27 20:03:42: BAT RET: 0 (LV2) at 21 main modules/speicher_siemens/main.sh
2022-01-27 20:03:42: PID: 2487: legacy run server: Completed running command in 0.03s: ["modules.siemens.device","bat","192.168.178.56"]

modules.common.fault_state.FaultState: ('TCP-Client konnte keine Verbindung zu 192.168.178.56:502 aufbauen. Bitte Einstellungen (IP-Adresse, ..) und Hardware-Anschluss prüfen.', <FaultStateLevel.ERROR: 2>)
" aufbauen. Bitte Einstellungen (IP-Adresse, ..) und " + "Hardware-Anschluss prüfen.") from e
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 89, in __read_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 115, in read_holding_registers
power = self.__tcp_client.read_holding_registers(6, ModbusDataType.INT_32, unit=1) * -1
File "/var/www/html/openWB/packages/modules/siemens/bat.py", line 36, in update
self._components[component].update()
File "/var/www/html/openWB/packages/modules/siemens/device.py", line 55, in update
Traceback (most recent call last):
thesorrow101
Beiträge: 718
Registriert: Mo Okt 12, 2020 7:41 am

Re: Siemens Module ab 1.9.251

Beitrag von thesorrow101 »

Der Fehler kommt in allen Modulen.

Jetzt ist die Frage, ob die Fehlermeldung stimmt. Kann es sein, dass die Werte falsch dekodiert werden, Unfug bei rauskommt und er halt einfach nur die Fehlermeldung auswirft?

Mir wird ja ab und an das angezeigt:
Fehler2 OpenWB.JPG
LutzB
Beiträge: 3781
Registriert: Di Feb 25, 2020 9:23 am
Has thanked: 4 times
Been thanked: 25 times

Re: Siemens Module ab 1.9.251

Beitrag von LutzB »

"Failed to connect" ist definitiv weit vor der Verarbeitung der Daten.
Kannst Du mal mit einem anderen Modbus Tool den Speicher abfragen?
thesorrow101
Beiträge: 718
Registriert: Mo Okt 12, 2020 7:41 am

Re: Siemens Module ab 1.9.251

Beitrag von thesorrow101 »

LutzB hat geschrieben: Do Jan 27, 2022 7:19 pm "Failed to connect" ist definitiv weit vor der Verarbeitung der Daten.
Kannst Du mal mit einem anderen Modbus Tool den Speicher abfragen?
Hallo Lutz, habe ich schon. Ich hab als Workaround die Werte über den Iobroker modbus Adapter gezogen. Kamen alle super jede Sekunde an.

Und es lief immer nur eines von beiden, der iobroker kam erst als Lösung dazu, als es nativ über die Box nicht ging. Während der Tests ist der Adapter deaktiviert gewesen. Wie gesagt gerade nutze ich es nur so, dass ich die Daten so über den Broker Abfrage und per MQTT zurückspiele solange es anders nicht geht.

Also nur falls ihr vermutet, dass die parallel liefen
LutzB
Beiträge: 3781
Registriert: Di Feb 25, 2020 9:23 am
Has thanked: 4 times
Been thanked: 25 times

Re: Siemens Module ab 1.9.251

Beitrag von LutzB »

Kannst Du mir Deine Cloud Anmeldedaten per PN zusenden? Ohne weitere Tests auf Deinem System kommen wir hier nicht weiter.
Antworten