evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Optimizer: not enough slots for optimization: 0

Open sutixp opened this issue 10 months ago • 8 comments

Description

While charging my car I always get errors like "optimizer: not enough slots for optimization: 0 (grid=630, feedIn=630, solar=0)"

Furthermore I do not see the vehicle battery in optimizer anymore. Earlier I also saw the vehicle battery when it was connected to the wallbox. As of now this is not critical to me, but I think there is something not working with vehicle in optimizer.

Image

In the logs you can only see this one single line, not more.

Steps to Reproduce

  1. Connect vehicle
  2. Start charging

Configuration (YAML)

###################### Log #######################
log: info
levels:
  lp-1: debug
  #site: debug
  #co2: debug
  #go-e: debug
  #vw: debug
  #main: debug
  #httpd: debug
  #solcast: debug

Configuration (UI)

{
  "site": {
    "title": "Zuhause",
    "grid": "db:5",
    "pv": ["db:3"],
    "battery": ["db:4"],
    "aux": null,
    "ext": null
  },
  "loadpoints": [
    {"id":2,"name":"db:2","charger":"db:1","vehicle":"db:11","title":"Carport","defaultMode":"","priority":0,"phasesConfigured":0,"minCurrent":6,"maxCurrent":16,"smartCostLimit":null,"smartFeedInPriorityLimit":null,"planEnergy":0,"planTime":"0001-01-01T00:00:00Z","planPrecondition":0,"limitEnergy":0,"limitSoc":0,"planStrategy":{"continuous":false,"precondition":0},"thresholds":{"enable":{"delay":60000000000,"threshold":0},"disable":{"delay":180000000000,"threshold":0}},"soc":{"poll":{"mode":"charging","interval":3600000000000},"estimate":true}}
  ],
  "charger": [
    {"config":{"host":"192.168.178.13","template":"go-e-v3"},"deviceProduct":"go-e Charger Gemini","id":1,"name":"db:1","type":"template"}
  ],
  "meter": [
    {"config":{"battery":"1","baudrate":9600,"host":"192.168.178.8","id":247,"maxacpower":10000,"maxchargepower":"10000","maxdischargepower":"10000","maxsoc":"100","minsoc":"10","modbus":"tcpip","template":"goodwe-hybrid","usage":"pv"},"deviceProduct":"GoodWe ET/EH/BH/BT Hybrid Inverter","deviceTitle":"GW_Inverter","id":3,"name":"db:3","type":"template"},
    {"config":{"battery":"1","baudrate":9600,"host":"192.168.178.8","id":247,"maxacpower":"0","maxchargepower":"10000","maxdischargepower":"10000","maxsoc":"100","minsoc":"10","modbus":"tcpip","template":"goodwe-hybrid","usage":"grid"},"deviceProduct":"GoodWe ET/EH/BH/BT Hybrid Inverter","id":5,"name":"db:5","type":"template"},
    {"config":{"battery":"1","baudrate":9600,"capacity":10.6,"host":"192.168.178.8","id":247,"maxacpower":"0","maxchargepower":5000,"maxdischargepower":5000,"maxsoc":"100","minsoc":"10","modbus":"tcpip","template":"goodwe-hybrid","usage":"battery"},"deviceProduct":"GoodWe ET/EH/BH/BT Hybrid Inverter","deviceTitle":"PylonH2_Battery","id":4,"name":"db:4","type":"template"}
  ],
  "vehicle": [
    {"config":{"capacity":"","icon":"generic","identifiers":["Gast (grau)"],"maxCurrent":16,"minCurrent":6,"phases":"","template":"offline","title":"Gast"},"deviceProduct":"Generisches Fahrzeug (ohne API)","id":8,"name":"db:8","type":"template"},
    {"config":{"cache":"15m","capacity":58,"icon":"car","identifiers":["Manuel (schwarz)","Jutta (orange)"],"maxCurrent":16,"maxPower":10400,"minCurrent":6,"password":"***","phases":"","template":"vw","timeout":"10s","title":"ID.3","user":"***","vin":"***"},"deviceProduct":"Volkswagen We Connect ID","id":11,"name":"db:11","type":"template"}
  ],
  "tariffs": "currency: EUR

grid: # price using energy from the grid
  type: fixed
  price: 0.2318 # EUR/kWh
  zones: #Workaround to simulate dynamic price feautures
    - days: Mo-Fr
      hours: 2-5
      price: 0.2318

feedin: # price for feeding solar energy to the grid
  type: fixed
  price: 0.0785 # EUR/kWh

co2: # carbon intensity forecast
  type: template
  template: electricitymaps-free
  token: *****
  zone: DE

solar: # list of pv generation forecast (additive)
- type: template
  template: solcast
  site: 113b-9093-e85b-83aa
  token: *****
  from: 6
  to: 17
  interval: 150m
- type: template
  template: solcast
  site: d0cf-67e4-19d9-3485
  token: *****
  from: 6
  to: 17
  interval: 150m

  "mqtt": {"broker":"","user":"","password":"","clientID":"","insecure":false,"caCert":"","clientCert":"","clientKey":"","topic":"evcc"},
  "influx": {"url":"","database":"","token":"","org":"","user":"","password":"","insecure":false},
  "shm": {"vendorId":"","deviceId":""},
  "interval": 30
}

System State

deleted because of size restrictions, can be sent if needed

Logs

[site  ] DEBUG 2026/01/09 10:36:00 ----
[lp-1  ] DEBUG 2026/01/09 10:36:00 charge power: 10277W
[lp-1  ] DEBUG 2026/01/09 10:36:00 charge currents: [15.4 15.6 15.6]A
[site  ] DEBUG 2026/01/09 10:36:00 grid power: 10835W
[site  ] DEBUG 2026/01/09 10:36:00 battery 1 power: -364W
[site  ] DEBUG 2026/01/09 10:36:01 battery 1 soc: 9%
[site  ] DEBUG 2026/01/09 10:36:01 pv 1 power: 374W
[site  ] DEBUG 2026/01/09 10:36:01 grid powers: [3684 3577 3583]W
[site  ] DEBUG 2026/01/09 10:36:01 !! solar production: accumulate set db:3 21672.500kWh meter total (was: Accumulated: 344.419kWh updated: 2026-01-09 10:35:30 +0100 CET meter: 21672.500kWh)
[site  ] DEBUG 2026/01/09 10:36:01 !! solar production: accumulate moved db:3 from 344.419 to 344.419
[site  ] DEBUG 2026/01/09 10:36:01 grid currents: [16.4 15.9 15.8]A
[site  ] DEBUG 2026/01/09 10:36:01 battery has priority at soc 9% (< 70%)
[site  ] DEBUG 2026/01/09 10:36:01 site power: 10935W
[lp-1  ] DEBUG 2026/01/09 10:36:01 charge voltages: [220 220 224]V
[lp-1  ] DEBUG 2026/01/09 10:36:01 detected active phases: 3p
[lp-1  ] DEBUG 2026/01/09 10:36:01 session energy: 22.296kWh
[lp-1  ] DEBUG 2026/01/09 10:36:01 charge total import: 993.469kWh
[lp-1  ] DEBUG 2026/01/09 10:36:01 charger status: C
[lp-1  ] DEBUG 2026/01/09 10:36:01 soc estimated: 67.93% (vehicle: 66.00%)
[lp-1  ] DEBUG 2026/01/09 10:36:01 vehicle soc: 68%
[lp-1  ] DEBUG 2026/01/09 10:36:01 vehicle soc limit: 80%
[lp-1  ] DEBUG 2026/01/09 10:36:01 vehicle range: 212km
[site  ] DEBUG 2026/01/09 10:36:30 ----
[lp-1  ] DEBUG 2026/01/09 10:36:30 charge power: 10306W
[lp-1  ] DEBUG 2026/01/09 10:36:30 charge currents: [15.5 15.6 15.6]A
[site  ] DEBUG 2026/01/09 10:36:30 grid power: 10885W
[site  ] DEBUG 2026/01/09 10:36:30 battery 1 power: -364W
[site  ] DEBUG 2026/01/09 10:36:30 pv 1 power: 367W
[site  ] DEBUG 2026/01/09 10:36:30 battery 1 soc: 9%
[site  ] DEBUG 2026/01/09 10:36:30 grid powers: [3724 3578 3582]W
[site  ] DEBUG 2026/01/09 10:36:30 !! solar production: accumulate set db:3 21672.500kWh meter total (was: Accumulated: 344.419kWh updated: 2026-01-09 10:36:01 +0100 CET meter: 21672.500kWh)
[site  ] DEBUG 2026/01/09 10:36:30 !! solar production: accumulate moved db:3 from 344.419 to 344.419
[site  ] DEBUG 2026/01/09 10:36:30 grid currents: [16.5 15.9 15.8]A
[site  ] DEBUG 2026/01/09 10:36:30 battery has priority at soc 9% (< 70%)
[site  ] DEBUG 2026/01/09 10:36:30 site power: 10985W
[lp-1  ] DEBUG 2026/01/09 10:36:30 charge voltages: [221 220 223]V
[lp-1  ] DEBUG 2026/01/09 10:36:30 detected active phases: 3p
[lp-1  ] DEBUG 2026/01/09 10:36:30 session energy: 22.382kWh
[lp-1  ] DEBUG 2026/01/09 10:36:30 charge total import: 993.555kWh
[lp-1  ] DEBUG 2026/01/09 10:36:30 charger status: C
[lp-1  ] DEBUG 2026/01/09 10:36:30 soc estimated: 68.09% (vehicle: 66.00%)
[lp-1  ] DEBUG 2026/01/09 10:36:30 vehicle soc: 68%
[lp-1  ] DEBUG 2026/01/09 10:36:30 vehicle soc limit: 80%
[lp-1  ] DEBUG 2026/01/09 10:36:30 vehicle range: 212km
[site  ] ERROR 2026/01/09 10:36:30 optimizer: not enough slots for optimization: 0 (grid=630, feedIn=630, solar=0)
[site  ] DEBUG 2026/01/09 10:37:00 ----
[lp-1  ] DEBUG 2026/01/09 10:37:00 charge power: 10321W
[lp-1  ] DEBUG 2026/01/09 10:37:00 charge currents: [15.6 15.7 15.6]A
[site  ] DEBUG 2026/01/09 10:37:00 grid power: 10921W
[site  ] DEBUG 2026/01/09 10:37:00 battery 1 power: -359W
[site  ] DEBUG 2026/01/09 10:37:01 battery 1 soc: 9%
[site  ] DEBUG 2026/01/09 10:37:01 pv 1 power: 365W
[site  ] DEBUG 2026/01/09 10:37:01 grid powers: [3733 3589 3590]W
[site  ] DEBUG 2026/01/09 10:37:01 !! solar production: accumulate set db:3 21672.600kWh meter total (was: Accumulated: 344.419kWh updated: 2026-01-09 10:36:30 +0100 CET meter: 21672.500kWh)
[site  ] DEBUG 2026/01/09 10:37:01 !! solar production: accumulate moved db:3 from 344.419 to 344.519
[site  ] DEBUG 2026/01/09 10:37:01 grid currents: [16.6 16 15.8]A
[site  ] DEBUG 2026/01/09 10:37:01 battery has priority at soc 9% (< 70%)
[site  ] DEBUG 2026/01/09 10:37:01 site power: 11021W
[lp-1  ] DEBUG 2026/01/09 10:37:01 charge voltages: [221 220 223]V
[lp-1  ] DEBUG 2026/01/09 10:37:01 detected active phases: 3p
[lp-1  ] DEBUG 2026/01/09 10:37:01 session energy: 22.472kWh
[lp-1  ] DEBUG 2026/01/09 10:37:01 charge total import: 993.645kWh
[lp-1  ] DEBUG 2026/01/09 10:37:01 charger status: C
[lp-1  ] DEBUG 2026/01/09 10:37:01 soc estimated: 68.24% (vehicle: 66.00%)
[lp-1  ] DEBUG 2026/01/09 10:37:01 vehicle soc: 68%
[lp-1  ] DEBUG 2026/01/09 10:37:01 vehicle soc limit: 80%
[lp-1  ] DEBUG 2026/01/09 10:37:01 vehicle range: 212km

Version

v0.300.2

System

linux/arm64, CET +01:00

sutixp avatar Jan 09 '26 09:01 sutixp

We'll need the actual optimizer request for analysis. Closing until available.

andig avatar Jan 09 '26 10:01 andig

Request:

{
  "batteries": [
    {
      "c_max": 5000,
      "c_min": 0,
      "charge_from_grid": true,
      "d_max": 5000,
      "p_a": 0.0002065338,
      "s_initial": 1166,
      "s_max": 10600,
      "s_min": 1060
    }
  ],
  "eta_c": 0.9,
  "eta_d": 0.9,
  "grid": {},
  "strategy": {
    "charging_strategy": "charge_before_export",
    "discharging_strategy": "discharge_before_import"
  },
  "time_series": {
    "dt": [118, 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, 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, 900, 900],
    "ft": [18.053795, 137.46875, 133.85625, 130.24374, 126.63125, 121.625, 115.225, 108.825, 102.425, 93.42344, 81.82031, 70.217186, 58.614063, 48.226562, 39.054688, 29.882812, 20.710938, 14.167188, 10.251562, 6.3359375, 2.4203124, 0.4046875, 0.2890625, 0.1734375, 0.0578125, 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, 0, 0, 0, 0, 0.1, 0.3, 0.5, 0.7, 6.79375, 18.78125, 30.76875, 42.75625, 66.99062, 103.47188, 139.95312, 176.43437, 210.57031, 242.36093, 274.15155, 305.9422, 321.8375, 321.8375, 321.8375, 0],
    "gt": [10.9257765, 126.433876, 148.33763, 231.76454, 131.32863, 173.10458, 182.49329, 114.8441, 147.62486, 123.03752, 159.7682, 127.035675, 140.88966, 104.88421, 92.52133, 109.25448, 94.71888, 107.47546, 95.110275, 123.064865, 93.6802, 87.19551, 95.37284, 152.64836, 164.96623, 170.84457, 136.66368, 144.81259, 123.31702, 96.720276, 121.44923, 114.73594, 80.61229, 82.315414, 92.365295, 84.67351, 103.18205, 93.73434, 83.80136, 83.182335, 86.529625, 69.625694, 64.65446, 65.278725, 52.650158, 65.12865, 56.26634, 55.833473, 45.48608, 41.38578, 39.67143, 37.124847, 37.276733, 49.123356, 40.060112, 40.070892, 35.164597, 30.600317, 31.159227, 44.01768, 32.120937, 42.323086, 36.49857, 32.403385, 31.479073, 32.63335, 31.273737, 32.659504, 32.630943, 28.407623, 29.583393, 32.617687, 34.068348, 50.939693, 37.779064, 35.939087, 42.692326, 47.413418, 39.7243, 44.453087, 40.63334, 43.700623, 41.86606, 42.44846, 41.42105, 58.235233, 61.1536, 57.852776, 65.24934, 81.96144, 91.6303, 82.62376, 99.675476, 78.31877, 75.06476, 76.411934, 83.3322],
    "p_E": [0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785, 0.0000785],
    "p_N": [0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318, 0.0002318]
  }
}

Response:

{
  "batteries": [
    {
      "charging_power": [7.1280184, 11.034874, 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, 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, 1.3352, 8.755387, 42.31828, 82.10034, 111.18503, 128.60887, 150.73064, 191.52779, 206.26672, 243.51872, 246.77274, 245.42557, 0],
      "discharging_power": [0, 0, 14.48138, 95.63056, 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, 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, 83.3322],
      "state_of_charge": [1172.4152, 1182.3466, 1166.2562, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1061.2017, 1069.0815, 1107.168, 1181.0583, 1281.1248, 1396.8728, 1532.5304, 1704.9054, 1890.5454, 2109.7124, 2331.8079, 2552.691, 2460.0994]
    }
  ],
  "flow_direction": [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, 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, 0],
  "grid_export": [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, 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, 0],
  "grid_import": [0, 0, 0, 5.8902373, 4.69738, 51.47958, 67.26829, 6.0191, 45.19986, 29.61408, 77.94789, 56.81849, 82.2756, 56.657646, 53.46664, 79.371666, 74.00794, 93.30827, 84.85871, 116.72893, 91.25989, 86.790825, 95.08378, 152.47491, 164.90842, 170.84457, 136.66368, 144.81259, 123.31702, 96.720276, 121.44923, 114.73594, 80.61229, 82.315414, 92.365295, 84.67351, 103.18205, 93.73434, 83.80136, 83.182335, 86.529625, 69.625694, 64.65446, 65.278725, 52.650158, 65.12865, 56.26634, 55.833473, 45.48608, 41.38578, 39.67143, 37.124847, 37.276733, 49.123356, 40.060112, 40.070892, 35.164597, 30.600317, 31.159227, 44.01768, 32.120937, 42.323086, 36.49857, 32.403385, 31.479073, 32.63335, 31.273737, 32.659504, 32.630943, 28.407623, 29.583393, 32.617687, 34.068348, 50.939693, 37.779064, 35.939087, 42.692326, 47.31342, 39.4243, 43.953087, 39.93334, 36.90687, 23.08481, 11.67971, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
  "limit_violations": {},
  "objective_value": -0.8962929,
  "status": "Optimal"
}

sutixp avatar Jan 09 '26 10:01 sutixp

solar=0

Do you have a solar forecast?

@ekkea to we want to allow the optimizer to work without PV?

andig avatar Jan 09 '26 10:01 andig

solar=0

Do you have a solar forecast?

@ekkea to we want to allow the optimizer to work without PV?

I have a solcast solar forecast. The forecast can be seen in the picture of the optimizer.

Furthermore I had solar energy when the error occurs:

[site  ] DEBUG 2026/01/09 10:36:30 ----
[lp-1  ] DEBUG 2026/01/09 10:36:30 charge power: 10306W
[lp-1  ] DEBUG 2026/01/09 10:36:30 charge currents: [15.5 15.6 15.6]A
[site  ] DEBUG 2026/01/09 10:36:30 grid power: 10885W
[site  ] DEBUG 2026/01/09 10:36:30 battery 1 power: -364W
**[site  ] DEBUG 2026/01/09 10:36:30 pv 1 power: 367W**
[site  ] DEBUG 2026/01/09 10:36:30 battery 1 soc: 9%
[site  ] DEBUG 2026/01/09 10:36:30 grid powers: [3724 3578 3582]W
[site  ] DEBUG 2026/01/09 10:36:30 !! solar production: accumulate set db:3 21672.500kWh meter total (was: Accumulated: 344.419kWh updated: 2026-01-09 10:36:01 +0100 CET meter: 21672.500kWh)
[site  ] DEBUG 2026/01/09 10:36:30 !! solar production: accumulate moved db:3 from 344.419 to 344.419
[site  ] DEBUG 2026/01/09 10:36:30 grid currents: [16.5 15.9 15.8]A
[site  ] DEBUG 2026/01/09 10:36:30 battery has priority at soc 9% (< 70%)
[site  ] DEBUG 2026/01/09 10:36:30 site power: 10985W
[lp-1  ] DEBUG 2026/01/09 10:36:30 charge voltages: [221 220 223]V
[lp-1  ] DEBUG 2026/01/09 10:36:30 detected active phases: 3p
[lp-1  ] DEBUG 2026/01/09 10:36:30 session energy: 22.382kWh
[lp-1  ] DEBUG 2026/01/09 10:36:30 charge total import: 993.555kWh
[lp-1  ] DEBUG 2026/01/09 10:36:30 charger status: C
[lp-1  ] DEBUG 2026/01/09 10:36:30 soc estimated: 68.09% (vehicle: 66.00%)
[lp-1  ] DEBUG 2026/01/09 10:36:30 vehicle soc: 68%
[lp-1  ] DEBUG 2026/01/09 10:36:30 vehicle soc limit: 80%
[lp-1  ] DEBUG 2026/01/09 10:36:30 vehicle range: 212km
**[site  ] ERROR 2026/01/09 10:36:30 optimizer: not enough slots for optimization: 0 (grid=630, feedIn=630, solar=0)**
[site  ] DEBUG 2026/01/09 10:37:00 ----

sutixp avatar Jan 09 '26 11:01 sutixp

I have a solcast solar forecast. The forecast can be seen in the picture of the optimizer.

This is probably the result of the last successful call.

solar=0

You don't.

andig avatar Jan 09 '26 12:01 andig

Yes, no (current) forecast data seems to be the problem. Looking at the Logs I can see the optimizer error with "solar=0" in the whole log starting from 00:57:00 (sadly, I can't go back further to find the solcast calling error). But when opening forecast in EVCC I can see data, at least for the next one and a half day (but I don't know when the last successful call has been made). Why is this data not used? Is there a maximum age for the data so that it is used by the optimizer?

Restarting EVCC solved the problem and the error was gone. Also Vehicle Battery was back in Optimizer.

sutixp avatar Jan 09 '26 13:01 sutixp

@ekkea to we want to allow the optimizer to work without PV?

I don't think the optimizer depends on "solar", it rather depends on storage / variable loads plus cost differences to have something to actually optimize. The optimizer e.g. also makes sense if there are variable grid import prices plus a buffer to give flexibility. So: yes, PV should not mandatory from my point of view.

ekkea avatar Jan 10 '26 09:01 ekkea

So: yes, PV should not mandatory from my point of view.

Will open PR for that. In this case here, the solar forecast was broken. I'd say it's fair to error in this case.

andig avatar Jan 10 '26 10:01 andig