izak / bms-bridge

Disable MPPT charge if the BMS says so.
2 stars 1 forks source link

Do not discharging when max discharge == 0 #3

Closed mpvader closed 7 years ago

mpvader commented 7 years ago

During a grid failure, the ESS mechanism in the CCGX/Multi will let the Multi continue inverting until one of these conditions apply:

  1. the batteries shuts itself down in undercharge protection (a last resort, which requires a user reset)
  2. dynamic cutoff lower limits, as setup in the ESS Assistant, are reached

Besides those, something extra is necessary: when /Info/MaxDischargeCurrent == 0 it should stop inverting. Aka go to charger only mode:

dbus -y com.victronenergy.vebus.ttyO1 /Mode SetValue %2

And once /Info/MaxDischargeCurrent != 0, set it back to full operation, which is Mode 3.

All possible modes are:

1=Charger Only;
2=Inverter Only;
3=On;
4=Off

Note that I think that the best way to do this is to use the charger only mode. If that is really the case is something we'll need to find out by testing.