Force charge discharge battery - wlcrs/huawei_solar GitHub Wiki
The integration offers multiple services that you can call to dynamically change the behavior of the battery:
forcible_charge
: Forcible Chargeforcible_charge_soc
: Forcible Charge to a SoC levelforcible_discharge
: Forcible Dischargeforcible_discharge_soc
: Forcible Discharge to a SoC levelstop_forcible_charge
: Stop the forcible charge or discharge
Forcible Charge
This allows you to forcibly charge your battery for a given duration or to a given SoC level of your battery. While a forcible charge is active, it will direct all power received from the solar panels to your battery instead of covering your home electricity usage.
If the "Charge from grid" toggle is set, it will also draw power from the grid until the given charge power level is reached.
Forcible Discharge
This allows you to forcibly discharge your battery for a given duration or to a given SoC level of your battery. This forces the inverter to inject more power to the AC-side than your home electricity usage, which will consequently be pushed onto the grid.
Stop Forcible charge or discharge
Calling this service will cancel any running forcible charge of forcible discharge command.