From 0ddecef60342808b3d5891263a6dabc080aefb79 Mon Sep 17 00:00:00 2001 From: Peter Lord Date: Tue, 10 Dec 2024 11:34:50 +0000 Subject: [PATCH] Add libbi fault codes from user operating instructions pdf --- pymyenergi/libbi.py | 70 ++++++++++++++++++++++++++++++++++++++------- 1 file changed, 60 insertions(+), 10 deletions(-) diff --git a/pymyenergi/libbi.py b/pymyenergi/libbi.py index 85c9f99..fee5f5a 100644 --- a/pymyenergi/libbi.py +++ b/pymyenergi/libbi.py @@ -12,22 +12,72 @@ 6: "Discharging", 7: "Duration Charging", 8: "Duration Drain", + 11: "Stopped", 12: "Target Charge", 51: "Boosting", 53: "Boosting", 55: "Boosting", - 11: "Stopped", - 101: "Battery Empty", - 102: "Full", 104: "Full", - 151: "FW Upgrade (ARM)", - 156: "FW Upgrade (DSP)", - 172: "BMS Charge Temperature Low", - 176: "BMS Updating", - 234: "Calibration Charge", - 251: "FW Upgrade (DSP)", - 252: "FW Upgrade (ARM)", 253: "BMS Upgrading", + + # fault codes from user operating instructions + 58: "Generation CT Polarity", + 101: "Battery Empty", + 102: "Battery Full", + 106: "Grid CT Lost", + 107: "Local Comms Lost", + 151: "Inverter Undervoltage", + 152: "Inverter Overvoltage", + 153: "Inverter Under Frequency", + 154: "Inverter Over Frequency", + 156: "Battery Lost", + 157: "Battery Undervoltage", + 158: "Battery Voltage Low", + 159: "Battery Voltage High", + 160: "Overload", + 161: "GFCI Over Threshold", + 163: "Fan Fault", + 164: "Bat Under Capacity", + 165: "BMS Discharge Over Current", + 166: "BMS Charge Over Current", + 167: "BMS Over Voltage", + 168: "BMS Over Temperature", + 169: "BMS Discharge Temperature Low", + 170: "Battery Voltage Imbalance", + 171: "BMS Communications Fault", + 172: "BMS Under Voltage", + 173: "BMS Charge Temperature Low", + 174: "BMS Voltage High", + 175: "BMS Temperature High", + 176: "Grid CT Polarity", + 183: "Inv Comms Lost", + 184: "Controller Undervoltage", + 185: "Controller Overvoltage", + 186: "Controller Under Frequency", + 187: "Controller Over Frequency", + 201: "Soft Timeout", + 202: "Internal Voltage Short", + 203: "GFCI Sensor Fault", + 205: "Bus Low Fault", + 206: "Bus High Fault", + 207: "Bus Short Fault", + 208: "PV ISO Under", + 209: "PV Input Short Circuit", + 210: "Bypass Relay Fault", + 211: "Inverter Overcurrent", + 212: "Inverter DC Over", + 213: "Ambient Over Temperature", + 214: "Sink Over Temperature", + 215: "Grid Relay Fault", + 216: "Discharge Overcurrent", + 217: "Charge Overcurrent", + 219: "Inverter Abnormal", + 220: "EPS Relay Fault", + 232: "SCI Fault", + 233: "SoC Recovery", + 234: "Calibration Charge", + 251: "Upgrading DSP", + 252: "Upgrading ARM" } LIBBI_MODES = ["Stopped", "Normal", "Export"]