Optimize your Electricity cost by re-charging your PV Battery when Electricity is cheap and there is not enough Solarpower available. To integrate batcontrol with Home Assistant, use the following repository: ha_addons
- A PV installation with a BYD Battery and a Fronius inverter.
- A Tibber or aWattar contract with hourly electricity pricing. (Get a €50 bonus on sign-up using this link.)
- Verify the credentials of your inverter for customer or technician access.
- Obtain your Tibber API key from Tibber Developer.
- Create your
batcontrol_config.yaml
in the config folder. - Customize your load profile or use the default one.
git clone https://github.com/muexxl/batcontrol.git
cd batcontrol
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
cd /PATH/TO/batcontrol
source venv/bin/activate
python batcontrol.py
The parameters follow this order:
MIN_SOC -> Backup-Power-Reserved -> max_charging_from_grid_limit -> always_allow_discharge_limit -> MAX_SOC
The always_allow_discharge_limit
parameter overrides any logic and allows the battery to operate freely according to the inverter's logic.
The max_charging_from_grid_limit
parameter charges from the minimum up to the always_allow_discharge_limit
.