gonzalop / wombatt

A tool for monitoring batteries and inverters.
MIT License
12 stars 2 forks source link

Value for SOH and SOC are swapped #1

Closed nigel914 closed 8 months ago

nigel914 commented 8 months ago

The values for "soc" ans "soh" for lifepower4 battery-type are swapped. The result is consistent across my batteries

./wombatt battery-info --address=10.103.20.12:8234 --battery-ids=2 --device-type="tcp" --battery-type="lifepower4"
2023/11/12 16:23:58.099516 Opening 10.103.20.12:8234...
Battery #2
===========
alarm flag: 0
cell 1 voltage: 3.307V
cell 2 voltage: 3.312V
cell 3 voltage: 3.313V
cell 4 voltage: 3.313V
cell 5 voltage: 3.313V
cell 6 voltage: 3.313V
cell 7 voltage: 3.312V
cell 8 voltage: 3.313V
cell 9 voltage: 3.313V
cell 10 voltage: 3.313V
cell 11 voltage: 3.312V
cell 12 voltage: 3.312V
cell 13 voltage: 3.313V
cell 14 voltage: 3.313V
cell 15 voltage: 3.312V
cell 16 voltage: 3.313V
cell temp 1: 292.1°K
cell temp 2: 292.1°K
cell temp 3: 292.1°K
cell temp 4: 292.1°K
environment temp: 291.1°K
mosfet temp: 293.1°K
pack current: 0A
pack voltage: 52.99V
remaining capacity:: 71Ah
full capacity:: 100Ah
cycle counts: 1
user defined: 15
soh: 71%
soc: 100%
max cell voltage: 3.313V
min cell voltage: 3.307V
diff cell voltage: 0.006V
max cell temp: 292.1°K
min cell temp: 292.1°K
cumulative charging capacity: 179.75A
cumulative discharge capacity: 119.19A
cumulative charging power: 9.74kWh
cumulative discharge power: 6.168kWh
cumulative charging time: 14h
cumulative discharge time: 12h
cumulative charging times: 855h
cumulative discharge times: 932h
alarm flag: 0
cell 1 alarm status: 0
cell 2 alarm status: 0
cell 3 alarm status: 0
cell 4 alarm status: 0
cell 5 alarm status: 0
cell 6 alarm status: 0
cell 7 alarm status: 0
cell 8 alarm status: 0
cell 9 alarm status: 0
cell 10 alarm status: 0
cell 11 alarm status: 0
cell 12 alarm status: 0
cell 13 alarm status: 0
cell 14 alarm status: 0
cell 15 alarm status: 0
cell 16 alarm status: 0
cell temp 1: 0
cell temp 2: 0
cell temp 3: 0
cell temp 4: 0
environment temp alarm status: 0
mosfet temp alarm status: 0
pack current alarm status: 0
pack voltage alarm status: 0
user defined: 9
balance event code: 0
voltage event code: 0
temperature event code: 0
current event code: 0
current event code: 0
fet status code: charge MOS, discharge MOS
system status code: 0
balance status code: 0
gonzalop commented 8 months ago

Thanks for noticing this issue and reporting it!