ich habe gestern nochmal getestet. Der Fehler ist noch da. Ich habe wieder auf die funktionierende Version zurückgeschwenkt.
Wenn weitere Tests, anderes log-level etc hilfreich sein sollten, lasst es mich wissen.
Code: Alles auswählen
2022-08-08 12:45:01: PID: 22377: ##### cron5min.sh started ##### (LV0)
2022-08-08 12:45:02: PID: 22377: push buttons disabled (LV0)
2022-08-08 12:45:03: PID: 22377: ##### cron5min.sh finished ##### (LV0)
2022-08-08 12:45:05: PID: 2134: soc.modules.common.fault_state: Sma Sunny Boy 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:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 85, in __read_registers
raise FaultState.error(__name__+" "+str(response))
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>)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/sma_sunny_boy/device.py", line 77, in update
component.update()
File "/var/www/html/openWB/packages/modules/sma_sunny_boy/bat.py", line 45, in update
self.__store.set(self.read())
File "/var/www/html/openWB/packages/modules/sma_sunny_boy/bat.py", line 26, in read
soc = self.__tcp_client.read_holding_registers(30845, ModbusDataType.UINT_32, unit=unit)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 119, in read_holding_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 101, in __read_registers
str(e)) from e
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>)
2022-08-08 12:45:09: PID: 22371: **** WARNING **** Regulation loop needs 8 seconds (LV0)
2022-08-08 12:45:35: PID: 2134: soc.modules.common.fault_state: Sma Sunny Boy 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:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 85, in __read_registers
raise FaultState.error(__name__+" "+str(response))
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>)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/sma_sunny_boy/device.py", line 77, in update
component.update()
File "/var/www/html/openWB/packages/modules/sma_sunny_boy/bat.py", line 45, in update
self.__store.set(self.read())
File "/var/www/html/openWB/packages/modules/sma_sunny_boy/bat.py", line 26, in read
soc = self.__tcp_client.read_holding_registers(30845, ModbusDataType.UINT_32, unit=unit)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 119, in read_holding_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 101, in __read_registers
str(e)) from e
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>)
2022-08-08 12:45:39: PID: 26830: **** WARNING **** Regulation loop needs 8 seconds (LV0)
2022-08-08 12:46:05: PID: 2134: soc.modules.common.fault_state: Sma Sunny Boy 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:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 85, in __read_registers
raise FaultState.error(__name__+" "+str(response))
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>)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/sma_sunny_boy/device.py", line 77, in update
component.update()
File "/var/www/html/openWB/packages/modules/sma_sunny_boy/bat.py", line 45, in update
self.__store.set(self.read())
File "/var/www/html/openWB/packages/modules/sma_sunny_boy/bat.py", line 26, in read
soc = self.__tcp_client.read_holding_registers(30845, ModbusDataType.UINT_32, unit=unit)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 119, in read_holding_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 101, in __read_registers
str(e)) from e
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>)
2022-08-08 12:46:09: PID: 31043: **** WARNING **** Regulation loop needs 8 seconds (LV0)
2022-08-08 12:46:55: PID: 2134: soc.modules.common.fault_state: Sma Sunny Boy 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:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 85, in __read_registers
raise FaultState.error(__name__+" "+str(response))
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>)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/var/www/html/openWB/packages/modules/sma_sunny_boy/device.py", line 77, in update
component.update()
File "/var/www/html/openWB/packages/modules/sma_sunny_boy/bat.py", line 45, in update
self.__store.set(self.read())
File "/var/www/html/openWB/packages/modules/sma_sunny_boy/bat.py", line 26, in read
soc = self.__tcp_client.read_holding_registers(30845, ModbusDataType.UINT_32, unit=unit)
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 119, in read_holding_registers
self.delegate.read_holding_registers, address, types, byteorder, wordorder, **kwargs
File "/var/www/html/openWB/packages/modules/common/modbus.py", line 101, in __read_registers
str(e)) from e
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>)