Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add libbi fault codes from user operating instructions pdf #63

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 60 additions & 10 deletions pymyenergi/libbi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down