evcc icon indicating copy to clipboard operation
evcc copied to clipboard

optimizer: not enough slots for optimization: 0

Open hstammlerj opened this issue 1 year ago • 5 comments

Describe the bug

since updating to v0.207.4, the message "optimizer: not enough slots for optimization: 0" is logged exactly every 5 minutes. No changes were made to config or hardware meanwhile. Debug-Log is attached, Trace for the same period stored and avl. on request.

Using evcc via HA addon only there is no good chance for me checking nightly build - but I am forced to tick the box to be allowed just to report the issue, so I did, sorry. For real, I have NOT checked the nightly build.

Maybe it is related to:

https://github.com/evcc-io/evcc/commit/b5a8a2d3c606969c75d3bd9f4aab2e1f8000d5ec Integrate external optmizer (experimental) (https://github.com/evcc-io/evcc/pull/22495)

evcc-20250822-055659-debug.log

Steps to reproduce

None needed, message appears also during standby having load points connected, but inactive.

Configuration details

# open evcc at http://evcc.local:7070
network:
  schema: http
  host: evcc.local # .local suffix announces the hostname on MDNS
  port: 7070

log: debug
levels:
  cache: error

# unique installation id
plant: xxx

interval: 15s # 30 control cycle interval

sponsortoken: xxx

# sponsors can set telemetry: true to enable anonymous data aggregation
# see https://github.com/evcc-io/evcc/discussions/4554
telemetry: false

# mqtt message broker
mqtt: 
  broker: localhost:1883
  topic: evcc
  clientid: evcc
  user: xxx
  password: xxx

# proxy for SolarEdge
modbusproxy:
  - port: xxx
    uri: xxx
    readonly: false

meters:
- type: template
  template: solaredge-hybrid 
  id: 1  
  host: 192.168.0.xxx  
  port: 1502    
  modbus: tcpip  
  watchdog: 60s  
  usage: grid
  name: grid1
- type: template
  template: solaredge-hybrid 
  id: 1  
  host: 192.168.0.xxx  
  port: 1502  
  usage: pv  
  modbus: tcpip  
  watchdog: 60s  
  name: pv2
  maxACPower: 9775
- type: template
  template: solaredge-hybrid 
  id: 1  
  host: 192.168.0.xxx  
  port: 1502  
  usage: battery  
  modbus: tcpip  
  watchdog: 60s  
  name: battery3
  capacity: 13.8

chargers:
- type: template
  template: go-e-v3 
  host: 192.168.0.xxx  
  name: wallbox5
- type: template
  template: go-e-v3 
  host: 192.168.0.xxx  
  name: wallbox6

vehicles:
- type: template
  template: hyundai 
  title: xxx  
  icon: car  
  user: xxx
  password: xxx  
  vin: xxx  
  capacity: 77.4  
  phases: 3  
  cache: 15m  
  language: de  
  mode: pv  
  minCurrent: 6  
  maxCurrent: 16  
  priority: 2  
  name: ev7
- type: template
  template: hyundai 
  title: xxx  
  icon: shuttle  
  user: xxx  
  password: xxx  
  vin: xxx  
  capacity: 72.6  
  phases: 3  
  cache: 15m  
  language: de  
  mode: pv  
  minCurrent: 6  
  maxCurrent: 16  
  priority: 2  
  name: ev4

loadpoints:
- title: "xxx"
  charger: wallbox6
  mode: pv
  phases: 0
  vehicle: ev7
  disable: 
    delay: 5m
- title: "xxx"
  charger: wallbox5
  mode: pv
  phases: 0
  vehicle: ev4
  disable: 
    delay: 5m

tariffs:
  currency: EUR
  grid: 
    type: fixed
    price: 0.2557
    zones: 
      - hours: 0-5
        price: 0.1758 
  feedin:
    type: fixed
    price: 0.07774

site:
  title: xxx
  meters:
    grid: grid1
    pv:
    - pv2
    battery:
    - battery3
  residualPower: 0

Log details

[site ] DEBUG 2025/08/22 05:34:26 ----
[lp-1 ] DEBUG 2025/08/22 05:34:26 charge power: 0W
[lp-1 ] DEBUG 2025/08/22 05:34:26 charge currents: [0 0 0]A
[lp-2 ] DEBUG 2025/08/22 05:34:26 charge power: 0W
[lp-2 ] DEBUG 2025/08/22 05:34:26 charge currents: [0 0 0]A
[site ] DEBUG 2025/08/22 05:34:27 battery 1 power: 381W
[site ] DEBUG 2025/08/22 05:34:27 grid power: -93W
[site ] DEBUG 2025/08/22 05:34:27 battery 1 soc: 60%
[site ] DEBUG 2025/08/22 05:34:27 pv 1 power: -66W
[site ] DEBUG 2025/08/22 05:34:27 !! solar production: accumulate add pv2 0.000W power (was: Accumulated: -0.024kWh updated: 2025-08-22 05:34:12 +0200 CEST)
[site ] DEBUG 2025/08/22 05:34:27 !! solar production: accumulate moved pv2 from -0.024 to -0.024
[site ] DEBUG 2025/08/22 05:34:27 grid powers: [-52 -9 -32]W
[site ] DEBUG 2025/08/22 05:34:28 grid currents: [-0.574 -0.865 -0.861]A
[site ] DEBUG 2025/08/22 05:34:28 site power: 388W
[site ] ERROR 2025/08/22 05:34:28 optimizer: not enough slots for optimization: 0
[lp-1 ] DEBUG 2025/08/22 05:34:28 charge voltages: [226 228 228]V
[lp-1 ] DEBUG 2025/08/22 05:34:28 charge total import: 5826.539kWh
[lp-1 ] DEBUG 2025/08/22 05:34:28 charger status: B

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

HomeAssistant Add-on

External automation

  • [x] 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

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

Version

0.207.4

hstammlerj avatar Aug 22 '25 04:08 hstammlerj

Du hast EV_OPT gesetzt und keine ausreichenden Daten dafür.

andig avatar Aug 22 '25 06:08 andig

Du hast EV_OPT gesetzt und keine ausreichenden Daten dafür.

Vielen Dank für die Info.

Was ist EV_OPT und wo kann das gesetzt werden? In der Doku und mit Web-Suche finde ich leider nichts dazu.

Wie gesagt gab es diese Meldung mit 0.207.3 vor dem Update nicht und es wurde nichts geändert.

hstammlerj avatar Aug 22 '25 07:08 hstammlerj

Probier mal bitte .4

andig avatar Aug 22 '25 08:08 andig

Probier mal bitte .4

Sorry für die Verwirrung: die Meldung kommt erst seit dem Update auf .4 heute.

hstammlerj avatar Aug 22 '25 08:08 hstammlerj

Bei mir das Gleiche. Ebenfalls per HomeAssistant Add-on. Seit dem Update auf die .4

warwick1902 avatar Aug 22 '25 09:08 warwick1902