-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
For my S10X the test suite crashes when trying to read the temperatures. Apparently the "BAT_DCB_NR_SENSOR" tag results in it thinking there are 35 sensors, but the actual array only contains 5 entries, leading to an out of range error.
This is the output when I comment out the crashing for loop:
{
"autarky": 98.86650085449219,
"consumption": {
"battery": -564,
"house": 1160,
"wallbox": 0
},
"production": {
"solar": 604,
"add": 0,
"grid": -8
},
"selfConsumption": 99.14093017578125,
"stateOfCharge": 32,
"time": "2024-10-14T12:47:27.000076+00:00"
}
[]
null
{
"autarky": 22.45416259765625,
"bat_power_in": 1051.5,
"bat_power_out": 518.0,
"consumed_production": 99.32181549072266,
"consumption": 19689.0,
"grid_power_in": 30.1875,
"grid_power_out": 15268.0,
"pm0Production": 0.0,
"pm1Production": 0.0,
"solarProduction": 5747.0,
"startDate": "2024-10-14",
"stateOfCharge": 32.1879997253418,
"timespan": "DAY",
"timespanSeconds": 86400
}
{
"deratePercent": 100.0,
"deratePower": 4730.0,
"externalSourceAvailable": 0,
"installedBatteryCapacity": 33,
"installedPeakPower": 4730,
"maxAcPower": 12000,
"macAddress": "********************",
"maxBatChargePower": 12480,
"maxBatDischargePower": 12120,
"model": "S10X",
"release": "H20_2024_024",
"serial": "redacted"
}
{
"dcdcAlive": true,
"powerMeterAlive": true,
"batteryModuleAlive": true,
"pvModuleAlive": true,
"pvInverterInited": true,
"serverConnectionAlive": true,
"pvDerated": false,
"emsAlive": true,
"acModeBlocked": false,
"sysConfChecked": false,
"emergencyPowerStarted": false,
"emergencyPowerOverride": false,
"wallBoxAlive": false,
"powerSaveEnabled": false,
"chargeIdlePeriodActive": false,
"dischargeIdlePeriodActive": false,
"waitForWeatherBreakthrough": false,
"rescueBatteryEnabled": false,
"emergencyReserveReached": false,
"socSyncRequested": false
}
[
{
"index": 0,
"dcbs": 4
}
]
{
"asoc": 97.0,
"chargeCycles": 249,
"current": -1.4329948425292969,
"dcbCount": 4,
"dcbs": {
"0": {
"current": -1.4329948425292969,
"currentAvg30s": -1.7281509637832642,
"cycleCount": null,
"designCapacity": 33.25,
"designVoltage": 96.0,
"deviceName": "TODO",
"endOfDischarge": 84.0,
"error": 0,
"fullChargeCapacity": 25.5,
"fwVersion": 101,
"manufactureDate": 220913,
"manufactureName": "TODO",
"maxChargeCurrent": 32.0,
"maxChargeTemperature": 55.0,
"maxChargeVoltage": 108.0,
"maxDischargeCurrent": 32.0,
"minChargeTemperature": -10.0,
"parallelCellCount": 30,
"sensorCount": 35,
"seriesCellCount": 0,
"pcbVersion": 202,
"protocolVersion": 106,
"remainingCapacity": 9.800000190734863,
"serialCode": "redacted",
"serialNo": 0,
"soc": null,
"soh": null,
"status": 176,
"temperatures": [],
"voltage": 98.4000015258789,
"voltageAvg30s": 98.54585266113281,
"voltages": [
3.2880001068115234,
3.2890002727508545,
3.2890002727508545,
3.2910001277923584,
3.2870001792907715,
3.2890002727508545,
3.2890002727508545,
3.2900002002716064,
3.2890002727508545,
3.2890002727508545,
3.2870001792907715,
3.2890002727508545,
3.2910001277923584,
3.2890002727508545
],
"warning": 0
},
"1": {
"current": -1.4329948425292969,
"currentAvg30s": -1.7281509637832642,
"cycleCount": null,
"designCapacity": 33.25,
"designVoltage": 96.0,
"deviceName": "TODO",
"endOfDischarge": 84.0,
"error": 0,
"fullChargeCapacity": 25.5,
"fwVersion": 101,
"manufactureDate": 220913,
"manufactureName": "TODO",
"maxChargeCurrent": 32.0,
"maxChargeTemperature": 55.0,
"maxChargeVoltage": 108.0,
"maxDischargeCurrent": 32.0,
"minChargeTemperature": -10.0,
"parallelCellCount": 30,
"sensorCount": 35,
"seriesCellCount": 0,
"pcbVersion": 202,
"protocolVersion": 106,
"remainingCapacity": 9.800000190734863,
"serialCode": "redacted",
"serialNo": 0,
"soc": null,
"soh": null,
"status": 176,
"temperatures": [],
"voltage": 98.5999984741211,
"voltageAvg30s": 98.60120391845703,
"voltages": [
3.2880001068115234,
3.2870001792907715,
3.2890002727508545,
3.2870001792907715,
3.2880001068115234,
3.2880001068115234,
3.2880001068115234,
3.2890002727508545,
3.2870001792907715,
3.2890002727508545,
3.2870001792907715,
3.2890002727508545,
3.2870001792907715,
3.2890002727508545
],
"warning": 0
},
"2": {
"current": -1.4329948425292969,
"currentAvg30s": -1.7281509637832642,
"cycleCount": null,
"designCapacity": 33.25,
"designVoltage": 96.0,
"deviceName": "TODO",
"endOfDischarge": 84.0,
"error": 0,
"fullChargeCapacity": 25.5,
"fwVersion": 101,
"manufactureDate": 220913,
"manufactureName": "TODO",
"maxChargeCurrent": 32.0,
"maxChargeTemperature": 55.0,
"maxChargeVoltage": 108.0,
"maxDischargeCurrent": 32.0,
"minChargeTemperature": -10.0,
"parallelCellCount": 30,
"sensorCount": 35,
"seriesCellCount": 0,
"pcbVersion": 202,
"protocolVersion": 106,
"remainingCapacity": 9.800000190734863,
"serialCode": "redacted",
"serialNo": 0,
"soc": null,
"soh": null,
"status": 176,
"temperatures": [],
"voltage": 98.5999984741211,
"voltageAvg30s": 98.60001373291016,
"voltages": [
3.2890002727508545,
3.2900002002716064,
3.2900002002716064,
3.2900002002716064,
3.2900002002716064,
3.2900002002716064,
3.2900002002716064,
3.2890002727508545,
3.2920000553131104,
3.2910001277923584,
3.2910001277923584,
3.2900002002716064,
3.2890002727508545,
3.2890002727508545
],
"warning": 0
},
"3": {
"current": -1.4329948425292969,
"currentAvg30s": -1.7281509637832642,
"cycleCount": null,
"designCapacity": 33.25,
"designVoltage": 96.0,
"deviceName": "TODO",
"endOfDischarge": 84.0,
"error": 0,
"fullChargeCapacity": 25.5,
"fwVersion": 101,
"manufactureDate": 220913,
"manufactureName": "TODO",
"maxChargeCurrent": 32.0,
"maxChargeTemperature": 55.0,
"maxChargeVoltage": 108.0,
"maxDischargeCurrent": 32.0,
"minChargeTemperature": -10.0,
"parallelCellCount": 30,
"sensorCount": 35,
"seriesCellCount": 0,
"pcbVersion": 202,
"protocolVersion": 106,
"remainingCapacity": 9.800000190734863,
"serialCode": "redacted",
"serialNo": 0,
"soc": null,
"soh": null,
"status": 176,
"temperatures": [],
"voltage": 98.4000015258789,
"voltageAvg30s": 98.4000015258789,
"voltages": [
3.2880001068115234,
3.2880001068115234,
3.2870001792907715,
3.2880001068115234,
3.2880001068115234,
3.2880001068115234,
3.2880001068115234,
3.2880001068115234,
3.2890002727508545,
3.2880001068115234,
3.2890002727508545,
3.2880001068115234,
3.2890002727508545,
3.2890002727508545
],
"warning": 0
}
},
"designCapacity": 33.25,
"deviceConnected": true,
"deviceInService": false,
"deviceName": "AtlSerialBattery1006_0_0",
"deviceWorking": true,
"eodVoltage": 336.0,
"errorCode": 0,
"fcc": 25.5,
"index": 0,
"maxBatVoltage": 432.0,
"maxChargeCurrent": 32.0,
"maxDischargeCurrent": 32.0,
"maxDcbCellTemp": 25.0,
"minDcbCellTemp": 21.100000381469727,
"moduleVoltage": 394.0,
"rc": 9.800000190734863,
"readyForShutdown": true,
"rsoc": 32.1884880065918,
"rsocReal": 38.0,
"statusCode": 33554435,
"terminalVoltage": 394.0,
"totalUseTime": 0,
"totalDischargeTime": 0,
"trainingMode": 0,
"usuableCapacity": 23.15625,
"usuableRemainingCapacity": 7.453646183013916
}
[
{
"asoc": 97.0,
"chargeCycles": 249,
"current": -1.4329948425292969,
"dcbCount": 4,
"dcbs": {
"0": {
"current": -1.4329948425292969,
"currentAvg30s": -1.7281509637832642,
"cycleCount": null,
"designCapacity": 33.25,
"designVoltage": 96.0,
"deviceName": "TODO",
"endOfDischarge": 84.0,
"error": 0,
"fullChargeCapacity": 25.5,
"fwVersion": 101,
"manufactureDate": 220913,
"manufactureName": "TODO",
"maxChargeCurrent": 32.0,
"maxChargeTemperature": 55.0,
"maxChargeVoltage": 108.0,
"maxDischargeCurrent": 32.0,
"minChargeTemperature": -10.0,
"parallelCellCount": 30,
"sensorCount": 35,
"seriesCellCount": 0,
"pcbVersion": 202,
"protocolVersion": 106,
"remainingCapacity": 9.800000190734863,
"serialCode": "redacted",
"serialNo": 0,
"soc": null,
"soh": null,
"status": 176,
"temperatures": [],
"voltage": 98.4000015258789,
"voltageAvg30s": 98.54585266113281,
"voltages": [
3.2880001068115234,
3.2890002727508545,
3.2890002727508545,
3.2910001277923584,
3.2870001792907715,
3.2890002727508545,
3.2890002727508545,
3.2900002002716064,
3.2890002727508545,
3.2890002727508545,
3.2870001792907715,
3.2890002727508545,
3.2910001277923584,
3.2890002727508545
],
"warning": 0
},
"1": {
"current": -1.4329948425292969,
"currentAvg30s": -1.7281509637832642,
"cycleCount": null,
"designCapacity": 33.25,
"designVoltage": 96.0,
"deviceName": "TODO",
"endOfDischarge": 84.0,
"error": 0,
"fullChargeCapacity": 25.5,
"fwVersion": 101,
"manufactureDate": 220913,
"manufactureName": "TODO",
"maxChargeCurrent": 32.0,
"maxChargeTemperature": 55.0,
"maxChargeVoltage": 108.0,
"maxDischargeCurrent": 32.0,
"minChargeTemperature": -10.0,
"parallelCellCount": 30,
"sensorCount": 35,
"seriesCellCount": 0,
"pcbVersion": 202,
"protocolVersion": 106,
"remainingCapacity": 9.800000190734863,
"serialCode": "redacted",
"serialNo": 0,
"soc": null,
"soh": null,
"status": 176,
"temperatures": [],
"voltage": 98.5999984741211,
"voltageAvg30s": 98.60120391845703,
"voltages": [
3.2880001068115234,
3.2870001792907715,
3.2890002727508545,
3.2870001792907715,
3.2880001068115234,
3.2880001068115234,
3.2880001068115234,
3.2890002727508545,
3.2870001792907715,
3.2890002727508545,
3.2870001792907715,
3.2890002727508545,
3.2870001792907715,
3.2890002727508545
],
"warning": 0
},
"2": {
"current": -1.4329948425292969,
"currentAvg30s": -1.7281509637832642,
"cycleCount": null,
"designCapacity": 33.25,
"designVoltage": 96.0,
"deviceName": "TODO",
"endOfDischarge": 84.0,
"error": 0,
"fullChargeCapacity": 25.5,
"fwVersion": 101,
"manufactureDate": 220913,
"manufactureName": "TODO",
"maxChargeCurrent": 32.0,
"maxChargeTemperature": 55.0,
"maxChargeVoltage": 108.0,
"maxDischargeCurrent": 32.0,
"minChargeTemperature": -10.0,
"parallelCellCount": 30,
"sensorCount": 35,
"seriesCellCount": 0,
"pcbVersion": 202,
"protocolVersion": 106,
"remainingCapacity": 9.800000190734863,
"serialCode": "redacted",
"serialNo": 0,
"soc": null,
"soh": null,
"status": 176,
"temperatures": [],
"voltage": 98.5999984741211,
"voltageAvg30s": 98.60001373291016,
"voltages": [
3.2890002727508545,
3.2900002002716064,
3.2900002002716064,
3.2900002002716064,
3.2900002002716064,
3.2900002002716064,
3.2900002002716064,
3.2890002727508545,
3.2920000553131104,
3.2910001277923584,
3.2910001277923584,
3.2900002002716064,
3.2890002727508545,
3.2890002727508545
],
"warning": 0
},
"3": {
"current": -1.4329948425292969,
"currentAvg30s": -1.7281509637832642,
"cycleCount": null,
"designCapacity": 33.25,
"designVoltage": 96.0,
"deviceName": "TODO",
"endOfDischarge": 84.0,
"error": 0,
"fullChargeCapacity": 25.5,
"fwVersion": 101,
"manufactureDate": 220913,
"manufactureName": "TODO",
"maxChargeCurrent": 32.0,
"maxChargeTemperature": 55.0,
"maxChargeVoltage": 108.0,
"maxDischargeCurrent": 32.0,
"minChargeTemperature": -10.0,
"parallelCellCount": 30,
"sensorCount": 35,
"seriesCellCount": 0,
"pcbVersion": 202,
"protocolVersion": 106,
"remainingCapacity": 9.800000190734863,
"serialCode": "redacted",
"serialNo": 0,
"soc": null,
"soh": null,
"status": 176,
"temperatures": [],
"voltage": 98.4000015258789,
"voltageAvg30s": 98.4000015258789,
"voltages": [
3.2880001068115234,
3.2880001068115234,
3.2870001792907715,
3.2880001068115234,
3.2880001068115234,
3.2880001068115234,
3.2880001068115234,
3.2880001068115234,
3.2890002727508545,
3.2880001068115234,
3.2890002727508545,
3.2880001068115234,
3.2890002727508545,
3.2890002727508545
],
"warning": 0
}
},
"designCapacity": 33.25,
"deviceConnected": true,
"deviceInService": false,
"deviceName": "AtlSerialBattery1006_0_0",
"deviceWorking": true,
"eodVoltage": 336.0,
"errorCode": 0,
"fcc": 25.5,
"index": 0,
"maxBatVoltage": 432.0,
"maxChargeCurrent": 32.0,
"maxDischargeCurrent": 32.0,
"maxDcbCellTemp": 25.0,
"minDcbCellTemp": 21.100000381469727,
"moduleVoltage": 394.0,
"rc": 9.800000190734863,
"readyForShutdown": true,
"rsoc": 32.1884880065918,
"rsocReal": 38.0,
"statusCode": 33554435,
"terminalVoltage": 394.0,
"totalUseTime": 0,
"totalDischargeTime": 0,
"trainingMode": 0,
"usuableCapacity": 23.15625,
"usuableRemainingCapacity": 7.453646183013916
}
]
[
{
"index": 0,
"phases": 3,
"strings": 2,
"type": 3,
"typeName": "PVI_TYPE_E3DC_E"
}
]
{
"acMaxApparentPower": 4000.0,
"cosPhi": {
"active": null,
"value": null,
"excited": null
},
"deviceState": {
"connected": true,
"working": true,
"inService": false
},
"frequency": {
"under": null,
"over": null
},
"index": 0,
"lastError": "3 0x0",
"maxPhaseCount": 3,
"maxStringCount": 2,
"onGrid": true,
"phases": {
"0": {
"power": 1180.0,
"voltage": 228.89999389648438,
"current": 5.25,
"apparentPower": 1196.0,
"reactivePower": 0.0,
"energyAll": 3398270.0,
"energyGridConsumption": 259241.0
},
"1": {
"power": 0.0,
"voltage": 227.39999389648438,
"current": 0.15000000596046448,
"apparentPower": 34.0,
"reactivePower": 0.0,
"energyAll": 928365.0,
"energyGridConsumption": 250084.0
},
"2": {
"power": -1.0,
"voltage": 226.8000030517578,
"current": 0.0,
"apparentPower": 0.0,
"reactivePower": 0.0,
"energyAll": 938068.0,
"energyGridConsumption": 248421.0
}
},
"powerMode": 1,
"serialNumber": "redacted",
"state": "0xb32315",
"strings": {
"0": {
"power": 303.0,
"voltage": 281.0,
"current": 1.0800000429153442,
"energyAll": 2753457.0
},
"1": {
"power": 303.0,
"voltage": 289.0,
"current": 1.0499999523162842,
"energyAll": 2724446.0
}
},
"systemMode": 2,
"temperature": {
"max": 130.0,
"min": -30.0,
"values": [
33.20000076293945,
34.5,
35.79999923706055,
35.29999923706055
]
},
"type": 3,
"version": " MAIN HW07 2.060",
"voltageMonitoring": {
"thresholdTop": null,
"thresholdBottom": null,
"slopeUp": null,
"slopeDown": null
}
}
[
{
"acMaxApparentPower": 4000.0,
"cosPhi": {
"active": null,
"value": null,
"excited": null
},
"deviceState": {
"connected": true,
"working": true,
"inService": false
},
"frequency": {
"under": null,
"over": null
},
"index": 0,
"lastError": "3 0x0",
"maxPhaseCount": 3,
"maxStringCount": 2,
"onGrid": true,
"phases": {
"0": {
"power": 1180.0,
"voltage": 228.89999389648438,
"current": 5.25,
"apparentPower": 1196.0,
"reactivePower": 0.0,
"energyAll": 3398270.0,
"energyGridConsumption": 259241.0
},
"1": {
"power": 0.0,
"voltage": 227.39999389648438,
"current": 0.15000000596046448,
"apparentPower": 34.0,
"reactivePower": 0.0,
"energyAll": 928365.0,
"energyGridConsumption": 250084.0
},
"2": {
"power": -1.0,
"voltage": 226.8000030517578,
"current": 0.0,
"apparentPower": 0.0,
"reactivePower": 0.0,
"energyAll": 938068.0,
"energyGridConsumption": 248421.0
}
},
"powerMode": 1,
"serialNumber": "redacted",
"state": "0xb32315",
"strings": {
"0": {
"power": 303.0,
"voltage": 281.0,
"current": 1.0800000429153442,
"energyAll": 2753457.0
},
"1": {
"power": 303.0,
"voltage": 289.0,
"current": 1.0499999523162842,
"energyAll": 2724446.0
}
},
"systemMode": 2,
"temperature": {
"max": 130.0,
"min": -30.0,
"values": [
33.29999923706055,
34.599998474121094,
35.79999923706055,
35.29999923706055
]
},
"type": 3,
"version": " MAIN HW07 2.060",
"voltageMonitoring": {
"thresholdTop": null,
"thresholdBottom": null,
"slopeUp": null,
"slopeDown": null
}
}
]
[
{
"index": 0,
"type": 1,
"typeName": "PM_TYPE_ROOT"
}
]
{
"activePhases": "111",
"energy": {
"L1": -262955.01,
"L2": 781577.03,
"L3": 336104.01
},
"index": 0,
"maxPhasePower": 24000.0,
"mode": 1,
"power": {
"L1": -796.0,
"L2": 697.0,
"L3": 134.0
},
"type": 1,
"voltage": {
"L1": 228.35000610351562,
"L2": 227.36000061035156,
"L3": 228.9199981689453
}
}
[
{
"activePhases": "111",
"energy": {
"L1": -262955.01,
"L2": 781577.03,
"L3": 336104.01
},
"index": 0,
"maxPhasePower": 24000.0,
"mode": 1,
"power": {
"L1": -796.0,
"L2": 697.0,
"L3": 134.0
},
"type": 1,
"voltage": {
"L1": 228.35000610351562,
"L2": 227.36000061035156,
"L3": 228.9199981689453
}
}
]
{
"dischargeStartPower": 65,
"maxChargePower": 12000,
"maxDischargePower": 12000,
"powerLimitsUsed": false,
"powerSaveEnabled": true,
"weatherForecastMode": 1,
"weatherRegulatedChargeEnabled": true
}
Metadata
Metadata
Assignees
Labels
No labels