Closed salami738 closed 5 months ago
I found one error in my configuration. I missed the renaming from TEMPERATURE_LIMITS_WHILE_CHARGING -> TEMPERATURES_WHILE_CHARGING TEMPERATURE_LIMITS_WHILE_DISCHARGING -> TEMPERATURES_WHILE_DISCHARGING in the release logs.
Now only this error messages remain:
2024-06-10 07:23:50.395503500 INFO:SerialBattery:SOC initialized from dbus and set to 82.02%
2024-06-10 07:23:50.396783500 WARNING:SerialBattery:Error while executing calcMaxChargeCurrentReferringToCellVoltage(). Using default value instead.
2024-06-10 07:23:50.397401500 WARNING:SerialBattery:CELL_VOLTAGES_WHILE_CHARGING: [3.55, 3.5, 3.45, 3.4, 3.3] • MAX_CHARGE_CURRENT_CV: [0.0, 2.5, 20.0, 50.0, 50.0]
2024-06-10 07:23:50.398172500 ERROR:SerialBattery:Exception occurred: TypeError("'<=' not supported between instances of 'NoneType' and 'float'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #937
2024-06-10 07:23:50.399764500 WARNING:SerialBattery:Error while executing calcMaxDischargeCurrentReferringToCellVoltage(). Using default value instead.
2024-06-10 07:23:50.400445500 WARNING:SerialBattery:CELL_VOLTAGES_WHILE_DISCHARGING: [2.7, 2.8, 2.9, 3.1] • MAX_DISCHARGE_CURRENT_CV: [0.0, 6.0, 30.0, 60.0]
2024-06-10 07:23:50.401229500 ERROR:SerialBattery:Exception occurred: TypeError("'<=' not supported between instances of 'NoneType' and 'float'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #968
2024-06-10 07:23:50.457937500 ERROR:SerialBattery:Non blocking exception occurred: TypeError("unsupported operand type(s) for -: 'NoneType' and 'NoneType'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/dbushelper.py line #1008
2024-06-10 07:23:51.392182500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-06-10 07:23:51.403055500 Traceback (most recent call last):
2024-06-10 07:23:51.403061500 File "/opt/victronenergy/dbus-serialbattery/dbushelper.py", line 811, in publish_battery
2024-06-10 07:23:51.403067500 self.battery.manage_charge_voltage()
2024-06-10 07:23:51.403070500 File "/opt/victronenergy/dbus-serialbattery/battery.py", line 232, in manage_charge_voltage
2024-06-10 07:23:51.403075500 self.soc_calculation()
2024-06-10 07:23:51.403077500 File "/opt/victronenergy/dbus-serialbattery/battery.py", line 287, in soc_calculation
2024-06-10 07:23:51.403161500 if current_min_cell_voltage > utils.MAX_CELL_VOLTAGE * 0.99:
2024-06-10 07:23:51.403166500 TypeError: '>' not supported between instances of 'NoneType' and 'float'
Ok, the error has vanished too after restarting the driver. You can close this ticket. Thanks
Describe the bug
The driver throws various python exception on start:
How to reproduce
Start the driver with the config.ini from below
Expected behavior
No error messages.
Driver version
1.2.20240408
Venus OS device type
Raspberry Pi 4
Venus OS version
v3.11
BMS type
JKBMS / Heltec BMS
Cell count
16
Battery count
1
Connection type
Serial USB adapter to TTL
Config file
Relevant log output
Any other information that may be helpful
No response