Skip to content

Optimizer: Occasional, unexplainable battery charge "spikes" #27968

@daniel309

Description

@daniel309

Describe the bug

Hi, I am occasionally seeing charging spikes like these two here.

Image

Steps to reproduce

  1. use does nothing, optimizer runs normally

...

Configuration details

{
  "batteries": [
    {
      "c_max": 4000,
      "c_min": 0,
      "charge_from_grid": true,
      "d_max": 4000,
      "p_a": 0.00016929001,
      "s_initial": 8500,
      "s_max": 10000,
      "s_min": 500
    }
  ],
  "eta_c": 0.9,
  "eta_d": 0.9,
  "grid": {},
  "strategy": {
    "charging_strategy": "charge_before_export",
    "discharging_strategy": "discharge_before_import"
  },
  "time_series": {
    "dt": [652, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900],
    "ft": [1006.9709, 1382.9219, 1375.8531, 1368.7844, 1356.2859, 1338.3578, 1320.4297, 1302.5016, 1263.3718, 1203.0406, 1142.7094, 1082.3782, 1007.70624, 918.6937, 829.6813, 740.66876, 647.70154, 550.77966, 453.85782, 356.93594, 274.2, 205.65, 137.1, 68.55, 29.990625, 21.421875, 12.853125, 4.284375, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
    "gt": [91.459335, 151.21437, 128.87456, 108.081314, 136.78842, 135.1508, 111.792244, 120.97737, 91.92367, 98.27929, 131.60635, 83.885506, 104.553604, 74.48501, 111.01193, 101.87883, 96.25745, 95.445045, 112.62378, 86.57042, 68.09877, 96.78517, 96.48473, 139.96779, 117.86936, 97.36745, 115.53394, 131.0443, 81.47514, 95.192345, 118.20962, 90.00678, 70.98001, 80.850945, 100.5956, 95.556274, 73.318306, 59.1872, 77.723976, 44.608284, 55.45965, 47.604465, 71.818756, 51.317398, 44.047062, 44.737514, 40.35032, 32.266457],
    "p_E": [0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084, 0.000084],
    "p_N": [0.0002001, 0.00019, 0.00019, 0.00019, 0.00019, 0.00019, 0.0001915, 0.0002019, 0.000202, 0.0002284, 0.0002374, 0.000277, 0.0002595, 0.0002929, 0.000305, 0.0003309, 0.0002974, 0.0003332, 0.000362, 0.0004229, 0.0003421, 0.0003783, 0.0004165, 0.0004815, 0.0004638, 0.0004307, 0.0004005, 0.0003789, 0.0004269, 0.0003873, 0.0003719, 0.0003591, 0.0003673, 0.0003517, 0.0003468, 0.0003378, 0.0003636, 0.0003543, 0.0003407, 0.0003229, 0.0003525, 0.0003451, 0.0003426, 0.0003392, 0.0003431, 0.0003349, 0.0003308, 0.0003209]
  }
}

Log details

{
  "batteries": [
    {
      "charging_power": [0, 0, 0, 0, 444.44443, 0, 0, 0, 0, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
      "discharging_power": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 71.41779, 87.87874, 75.94557, 102.68081, 126.75992, 81.47514, 95.192345, 118.20962, 90.00678, 70.98001, 80.850945, 100.5956, 95.556274, 73.318306, 59.1872, 77.723976, 44.608284, 55.45965, 47.604465, 71.818756, 51.317398, 44.047062, 44.737514, 40.35032, 32.266457],
      "state_of_charge": [8700, 8700, 8700, 8700, 9100, 9100, 9100, 9100, 9100, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 9920.646, 9823.004, 9738.62, 9624.53, 9483.686, 9393.158, 9287.389, 9156.045, 9056.037, 8977.17, 8887.336, 8775.563, 8669.39, 8587.925, 8522.161, 8435.801, 8386.236, 8324.614, 8271.721, 8191.922, 8134.903, 8085.9614, 8036.2534, 7991.4194, 7955.568]
    }
  ],
  "flow_direction": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
  "grid_export": [704.8878, 1231.7075, 1246.9785, 1260.7031, 775.05304, 1203.207, 1208.6375, 1181.5242, 1171.4481, 104.76131, 1011.103, 998.4927, 903.15265, 844.2087, 718.6694, 638.7899, 551.4441, 455.33463, 341.23404, 270.3655, 206.10123, 108.86483, 40.61527, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
  "grid_import": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
  "limit_violations": {},
  "objective_value": 1.3168669,
  "status": "Optimal"
}

What type of operating system or environment does evcc run on?

Linux

External automation

  • I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • I have verified that the issue is reproducible with the latest nightly build

Version

0.301.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionRather clarification than issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions