Skip to content
Michael Seibt edited this page Apr 4, 2025 · 2 revisions

Welcome to the e3dc_control wiki!

Charge the car battery with excess solar power (adapted to the power drawn by the car, which often does not correspond to the permitted charging current)

image

        wallbox_power_by_current =
        {
            16: 10500,
            15:  9350,
            14:  8450,
            13:  7800,
            12:  6950,
            11:  6400,
            10:  5550,
             9:  4850,
             8:  2000
        },

Avoid the derating of grid feed-in power (70% of the peak rated power) through delayed charging of the E3DC battery

image

User controlled during runtime by editing e3dc_directives.yaml:

# loop: first letter of value or empty (for run)
# run, break without teardown, exit with teardown
loop:

charge_control:
  # battery_charge: first letter of value or int (in Watts)
  # suppressed, automatic, default, wallbox active, maximum
  battery_charge: w

  # battery_min_soc: int (in %)
  # always solar-charge the battery at least to this limit - regardless of battery_charge mode
  battery_min_soc: 40

  # battery_to_car_until_soc: int (minimum battery state of charge in %) or empty
  battery_to_car_until_soc: #60

  # all_solar_excess_to_car: bool or empty (avoid charging the battery, partially charges the car from grid)
  all_solar_excess_to_car:

  # max_wallbox_current_override: int (in Amperes) or empty (forced value for sun mode and night rate)
  max_wallbox_current_override:

  # min_wallbox_current: int (in Amperes) or empty
  min_wallbox_current:

Static configuration in control\_config\config.py:

    config = Config(
        timezone = timezone('Europe/Berlin'),
        max_wallbox_start = 22.0,  # local time
        max_wallbox_end   =  6.0,  # local time
        solar_peak_start_utc = 10.50,  # 11:30 CET
        solar_peak_end_utc   = 10.75,  # 11:45 CET
        variation_margin = 300,
        additional_solar_variation_margin = 0,
        wallbox_min_current_hold_minutes = 10,
        wallbox_power_by_current =
        {
            16: 10500,
            15:  9350,
            14:  8600,
            13:  7800,
            12:  7100, #6850,
            11:  6500,
            10:  5650,
             9:  4950, #4850,
             8:  2000
        },
        default_idle_charge_active = True,
        default_idle_charge_end = [10, 30],  # local time
        default_battery_max_charge = 1700,
        battery_charge_adapt_offset = 45,
        battery_charge_adapt_factor = 1.03,
        battery_max_discharge = 4500,
        battery_min_discharge = 65,
        battery_max_charge = 4500,
        battery_min_charge = 100,
        battery_watthours = 9830,
        solar_max = 11400,
        grid_max = None)
    config.grid_max = config.solar_max * 70 // 100
Clone this wiki locally