CJNE / pymyenergi

An async python library for interfacing with MyEnergi devices
MIT License
21 stars 16 forks source link

Incorrect libbi status #50

Open plord12 opened 3 months ago

plord12 commented 3 months ago

I've just had a fault and the libbi controller was alternating “Inverter undervolt” and “Inverter overvolt”.

I noticed the library gets these statuses wrong. We should have, I believe -

Actually, as per user guide ... i guess all the statuses from the user guide should be added.


Code 58: Generation CT Polarity

Code 101: Battery Empty

Code 102: Battery Full

Code 106: Grid CT Lost

Code 107: Local Comms Lost

Code 151: Inverter Undervoltage

Code 152: Inverter Overvoltage

Code 153: Inverter Under Frequency

Code 154: Inverter Over Frequency

Code 156: Battery Lost

Code 157: Battery Undervoltage

Code 158: Battery Voltage Low

Code 159: Battery Voltage High

Code 160: Overload

Code 161: GFCI Over Threshold

Code 163: Fan Fault

Code 164: Bat Under Capacity

Code 165: BMS Discharge Over Current

Code 166: BMS Charge Over Current

Code 167: BMS Over Voltage

Code 168: BMS Over Temperature

Code 169: BMS Discharge Temperature Low

Code 170: Battery Voltage Imbalance

Code 171: BMS Communications Fault

Code 172: BMS Under Voltage

Code 173: BMS Charge Temperature Low

Code 174: BMS Voltage High

Code 175: BMS Temperature High

Code 179: Grid CT Polarity

Code 183: Inv Comms Lost

Code 184: Controller Undervoltage

Code 185: Controller Overvoltage

Code 186: Controller Under Frequency

Code 187: Controller Over Frequency

Code 201: Soft Timeout

Code 202: Internal Voltage Short

Code 203: GFCI Sensor Fault

Code 205: Bus Low Fault

Code 206: Bus High Fault

Code 207: Bus Short Fault

Code 208: PV ISO Under

Code 209: PV Input Short Circuit

Code 210: Bypass Relay Fault

Code 211: Inverter Overcurrent

Code 212: Inverter DC Over

Code 213: Ambient Over Temperature

Code 214: Sink Over Temperature

Code 215: Grid Relay Fault

Code 216: Discharge Overcurrent

Code 217: Charge Overcurrent

Code 219: Inverter Abnormal

Code 220: EPS Relay Fault

Code 232: SCI Fault

Code 233: SoC Recovery

Code 234: Calibration Charge

Code 251: Upgrading DSP

Code 252: Upgrading ARM

HLFCode commented 1 month ago

I'm noticing status 58 cropping up randomly at night - presumably due to the generation CT recording a slight negative value. Code 58 (and the others) should be included for an easier understanding by the user