Skip to content

v0.9.32

Choose a tag to compare

@btli btli released this 31 May 15:29
· 12 commits to main since this release

BMS permission/request flags (register 95 bitmap) — eg4 #232

Input register 95 is now decoded as a BMS permission/request bitmap, confirmed against the cloud API booleans bmsCharge / bmsDischarge / bmsForceCharge on live hardware (two inverters, reg95=0x03 → charge+discharge allowed).

  • decode_bms_permissions(raw) + BMS_PERMISSION_ALLOW_CHARGE (0x01) / BMS_PERMISSION_ALLOW_DISCHARGE (0x02) / BMS_PERMISSION_FORCE_CHARGE (0x20)
  • InverterRuntimeData + BatteryBankData decode reg 95 into bms_allow_charge / bms_allow_discharge / bms_force_charge (resp. allow_charge / allow_discharge / force_charge)
  • Dual-source BaseInverter.bms_allow_charge / bms_allow_discharge / bms_force_charge (transport reg-95 decode, falling back to the cloud RuntimeInfo booleans)
  • Cloud BatteryBank delegates the three flags to its parent inverter
  • Legacy reg-95 battery_status_inv enum retained (read-but-unsurfaced); description annotated with the bitmap meaning

Consumed by the eg4_web_monitor integration for the new battery-bank BMS status sensors.