Sign inSign up

muexx/batcontrol

By muexx

Updated 3 months ago

Optimize your electricity cost by timed charging. Needs Fronius Gen24 + Tibber.

Image
1

10K+

muexx/batcontrol repository overview

Preconditions

  1. PV System with Fronius Gen24 inverter (tested with Symo GEN24 8.0 FW 1.27.3-1) and an attached battery (tested with BYD HVS 10 kWh)
  2. hourly electricity contract (Sign up with this link to get 50€ Bonus https://tibber.com/de/invite/x8ci52nj ) Currently supported: Awattar (AT and DE), Tibber
  3. A machine to run the docker image with access to the Fronius inverter (tested on RPi 4B and Synology DS220+) and internet

Preparations

  1. get your Tibber API Key (not required if you use aWattar) https://developer.tibber.com/settings/access-token

  2. check the credentials for your Fronius inverter

  • access your inverter via browser and local network e.g. on 192.168.0.19
  • choose customer or technician as user
  • ensure that your password is working

mkdir config cd config

prepare your batcontrol_config.yaml file and save in the config folder:

general: timezone: Europe/Berlin battery_control: min_price_difference: 0.05 always_allow_discharge_limit: 0.90 max_charging_from_grid_limit: 0.90 inverter: type: fronius_gen24 address: 192.168.0.12 user: customer password: YOUR-PASSWORD utility: type: tibber #awattar_at (Austria) or awattar_de (Germany) apikey: Zz-YOUR-API-KEY #only required for Tibber vat: 0.20 # only required for awattar fees: 0.015 # only required for awattar markup: 0.03 # only required for awattar

pvinstallations:

  • name: Ostdach lat: '49.765460' lon: '8.230482' declination: '32' azimuth: '-93' kWp: '4.354'
  • name: Westdach lat: '49.765460' lon: '8.230482' declination: '32' azimuth: '87' kWp: '5.030' consumption_forecast: annual_consumption: 4500 load_profile: load_profile.csv #remove this line if you want to use the default load profile

OPTIONAL: prepare your my_load_profile.csv and save in the config folder

month,weekday,hour,energy 1,0,0,145.54510576781507 1,0,1,183.67301513195918 1,0,2,152.02028529509425 1,0,3,169.20770270795185 ... 12,6,20,392.5735622959363 12,6,21,309.084342178644 12,6,22,242.8646060568024 12,6,23,265.1902063901746

Total 2016 line items: 12 months * 7 weekdays * 24 hours

docker pull muexx/batcontrol docker run -d -v /PATH/TO/config:/batcontrol/config muexx/batcontrol

Tag summary

Content type

Image

Digest

sha256:3f6266f42

Size

70 MB

Last updated

4 months ago

docker pull muexx/batcontrol