evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Keine geplante Netzladung in die Hausbatterie wenn gleichzeitig Ladevorgang Auto läuft

Open marleyan333 opened this issue 1 month ago • 3 comments

Description

Ich nutze evcc mit aktiviertem Optimizer für die Hausbatterie und ein Fahrzeug. Gestern sollte laut Optimizer-Planung von 0-5 Uhr (günstiger Ladezeitraum in meinem octopus go Tarif) sowohl die Hausbatterie bis zur innern bestimmten Höhe aus dem Netz geladen werden als auch das Auto. De facto wurde zwar das Auto geladen, nicht aber die Hausbatterie, die in einem Hold-Zustand blieb (keine Energieabgabe). Meine Konfiguration: Sonnenbatterie eco 8 mit 12 kWh Kapazität, ein Fahrzeug (Porsche Taycan). Ziel wäre natürlich dass beides zugleich geladen wird. Wenn ich in die Planung des Optimizer schaue, dann plant er das auch genau so, aber aus irgendwelchen Gründen gelingt es nicht.

Steps to Reproduce

Optimizer aktiviert für Hausbatterie und Auto (Tacan), korrekte Ladplanung. Im fraglichen Zeitraum 0-5 Uhr erfolgt dann nur die Ladung des Autos, nicht aber der Hausbatterie.

⚠️ RETURN TO EVCC TAB → COPY STEP 2 → PASTE HERE

Version

v0.319.0-dev.1792915867

System

linux/arm64, CET +01:00

Configuration (YAML)

network:
  schema: https
  host: evcc.local

Configuration (UI)

{
  "charger": [
    {"id":19,"name":"db:19","type":"template","config":{"id":1,"template":"stiebel-lwa","baudrate":9600,"comset":"8N1","host":"192.168.178.32","modbus":"tcpip","port":502,"tempsource":"warmwater"},"deviceProduct":"Stiebel Eltron LWA/LWZ (SG Ready)"},
    {"id":17,"name":"db:17","type":"template","config":{"template":"pmcc","ski":"***"},"deviceProduct":"Porsche Mobile Charger Connect"}
  ],
  "country": "DE",
  "currency": "EUR",
  "eebus": {"config":{"certificate":{"private":"***","public":"***"},"port":4712,"shipid":"***"},"status":{"qr":"***","ski":"***6dae"}},
  "experimental": true,
  "gridExportLimit": 0,
  "influx": {"database":"","insecure":false,"org":"","password":"","token":"","url":"","user":""},
  "interval": 30,
  "loadpoints": [
    {"id":18,"name":"db:18","alwaysCharge":"off","batteryBoostLimit":70,"charger":"db:17","defaultMode":"smart","limitEnergy":0,"limitSoc":0,"maxCurrent":16,"minCurrent":6,"minSoc":0,"phasesConfigured":3,"planEnergy":0,"planPrecondition":0,"planStrategy":{"continuous":false,"precondition":0},"planTime":"0001-01-01T00:00:00Z","priority":0,"smartCostLimit":null,"smartFeedInPriorityLimit":null,"soc":{"estimate":true,"poll":{"interval":3600000000000,"mode":"charging"}},"solarShare":1,"thresholds":{"disable":{"delay":180000000000,"threshold":0},"enable":{"delay":60000000000,"threshold":0}},"title":"Garage","ui":{"maxTemp":100,"minTemp":0},"vehicle":"db:21"},
    {"id":20,"name":"db:20","alwaysCharge":"off","batteryBoostLimit":70,"charger":"db:19","defaultMode":"","limitEnergy":0,"limitSoc":45,"maxCurrent":16,"minCurrent":6,"minSoc":0,"phasesConfigured":1,"planEnergy":0,"planPrecondition":0,"planStrategy":{"continuous":false,"precondition":0},"planTime":"0001-01-01T00:00:00Z","priority":9,"smartCostLimit":null,"smartFeedInPriorityLimit":null,"soc":{"estimate":true,"poll":{"interval":3600000000000,"mode":"charging"}},"solarShare":1,"thresholds":{"disable":{"delay":180000000000,"threshold":0},"enable":{"delay":60000000000,"threshold":0}},"title":"Stiebel","ui":{"maxTemp":100,"minTemp":0}}
  ],
  "meter": [
    {"id":5,"name":"db:5","type":"template","config":{"template":"sonnenbatterie","defaultmode":"self-consumption","host":"192.168.178.71","maxchargepower":"3300","port":"8080","usage":"pv"},"deviceProduct":"Sonnen sonnenBatterie","deviceTitle":"PV"},
    {"id":4,"name":"db:4","type":"template","config":{"template":"sonnenbatterie","defaultmode":"self-consumption","host":"192.168.178.71","maxchargepower":"3300","port":"8080","usage":"grid"},"deviceProduct":"Sonnen sonnenBatterie"},
    {"id":6,"name":"db:6","type":"template","config":{"template":"sonnenbatterie","capacity":12,"defaultmode":"time-of-use","host":"192.168.178.71","maxchargepower":"3300","maxdischargepower":3300,"maxsoc":100,"minsoc":0,"port":"8080","token":"***","usage":"battery"},"deviceProduct":"Sonnen sonnenBatterie","deviceTitle":"Batterie"}
  ],
  "mqtt": {"broker":"","caCert":"","clientCert":"","clientID":"","clientKey":"","insecure":false,"password":"","topic":"evcc","user":""},
  "ocpp": {"config":{"port":8887},"status":{"stations":[]}},
  "ocppforwarder": {"config":[],"status":[]},
  "optimizer": true,
  "optimizerChargingStrategy": "charge_before_export",
  "remote": {"enabled":true},
  "residualPower": 100,
  "shm": {"deviceId":"","deviceSerial":"","vendorId":""},
  "site": {"aux":null,"battery":["db:6"],"consumer":null,"curtail":null,"ext":null,"grid":"db:4","pv":["db:5"],"title":"Daheim"},
  "tariff": [
    {"id":10,"name":"db:10","type":"template","config":{"template":"fixed-zones","price":0.29309999999999997,"zones":[{"days":"","hours":"00:00-05:00","months":"","price":0.1931}]},"deviceProduct":"Zeitabhängiger Tarif"},
    {"id":15,"name":"db:15","type":"template","config":{"template":"fixed","price":0.1},"deviceProduct":"Fester Preis"},
    {"id":13,"name":"db:13","type":"template","config":{"template":"solcast","from":"12","interval":"2h","site":"0d04-eb62-fc1e-82d8","to":"22","token":"***"},"deviceProduct":"Solcast","deviceTitle":"Süd"},
    {"id":12,"name":"db:12","type":"template","config":{"template":"grünstromindex","zip":"***"},"deviceProduct":"Grünstromindex"},
    {"id":14,"name":"db:14","type":"template","config":{"template":"solcast","from":"12","interval":"2h","site":"8830-5ad8-99be-04ae","to":"22","token":"***"},"deviceProduct":"Solcast","deviceTitle":"Ost-West"},
    {"id":16,"name":"db:16","type":"template","config":{"template":"dwd-temperature","interval":"1h","lat":"***","lon":"***"},"deviceProduct":"DWD (Bright Sky) Temperature"}
  ],
  "tariffRefs": {"co2":"db:12","feedIn":"db:15","grid":"db:10","planner":"","solar":["db:13","db:14"],"temperature":"db:16"},
  "vehicle": [
    {"id":21,"name":"db:21","type":"template","config":{"template":"porsche","autodetectdisabled":false,"cache":"15m","capacity":84,"climaterdisabled":true,"icon":"car","maxCurrent":16,"minCurrent":6,"password":"***","phases":"3","priority":0,"title":"Taycan","user":"***","vin":"***","wakeupdisabled":false},"deviceProduct":"Porsche"}
  ]
}

Logs

[remote] INFO 2026/10/28 14:24:47 failed login attempt for "Macbook"
[remote] INFO 2026/10/28 14:24:47 failed login attempt for "Macbook"
[remote] INFO 2026/10/28 14:24:47 failed login attempt for "Macbook"
[site  ] DEBUG 2026/10/28 14:25:00 ----
[lp-2  ] DEBUG 2026/10/28 14:25:00 charge power: 0W
[lp-1  ] DEBUG 2026/10/28 14:25:00 charge power: 0W
[lp-1  ] DEBUG 2026/10/28 14:25:00 charge currents: [0 0 0]A
[site  ] DEBUG 2026/10/28 14:25:01 grid power: -33W
[site  ] DEBUG 2026/10/28 14:25:01 battery 1 power: -279W
[site  ] DEBUG 2026/10/28 14:25:01 battery 1 soc: 85%
[site  ] DEBUG 2026/10/28 14:25:01 pv 1 power: 685W
[site  ] DEBUG 2026/10/28 14:25:01 site power: -212W
[lp-1  ] DEBUG 2026/10/28 14:25:01 charger status: A
[site  ] DEBUG 2026/10/28 14:25:30 ----
[lp-2  ] DEBUG 2026/10/28 14:25:30 charge power: 0W
[lp-1  ] DEBUG 2026/10/28 14:25:30 charge power: 0W
[lp-1  ] DEBUG 2026/10/28 14:25:30 charge currents: [0 0 0]A
[site  ] DEBUG 2026/10/28 14:25:31 grid power: -32W
[site  ] DEBUG 2026/10/28 14:25:31 battery 1 power: -264W
[site  ] DEBUG 2026/10/28 14:25:31 battery 1 soc: 85%
[site  ] DEBUG 2026/10/28 14:25:31 pv 1 power: 671W
[site  ] DEBUG 2026/10/28 14:25:31 site power: -196W
[lp-2  ] DEBUG 2026/10/28 14:25:31 charger status: B
[lp-2  ] DEBUG 2026/10/28 14:25:31 charger soc: 39%
[lp-2  ] DEBUG 2026/10/28 14:25:31 !! plan: plan time zero

marleyan333 avatar Oct 28 '26 13:10 marleyan333

Possibly the same cause as #35337 / #35255: with the optimizer in battery-only mode, the battery is held (core/site_battery.go, unmodelledCharging) while a loadpoint that the optimizer does not control charges on the smart cost limit or in fast mode, even if the plan says to charge the battery. A loadpoint counts as optimizer controlled only if the optimizer is in full automatic mode (not battery-only) and the vehicle has a capacity (core/loadpoint_optimizer.go). Your car has a capacity, so the optimizer mode is the open question.

The log in the report is from 14:25 and does not cover the 0-5 h window, and the ⚠️ RETURN TO EVCC placeholder is still in the description. To confirm, could you please provide:

  • the optimizer mode in the UI (automatic for battery and loadpoints, or battery only)
  • a debug log from the night in question (00:00-05:00), including the lines about battery mode and optimizer suggestions
  • the charge mode, smart cost limit and whether the car was charging via the cost limit in that window

Related: #35337 (modelled vehicle blocks battery suggestion in battery-only mode), #35255 (same symptom, closed).

🤖 Generated with Claude Code

github-actions[bot] avatar Oct 28 '26 13:10 github-actions[bot]

OK, wie ich sehe wurde das Problem in #35306 angegangen, dann kann man das hier schließen.

marleyan333 avatar Oct 28 '26 13:10 marleyan333

Thanks for the feedback. #35306 (open, not merged yet) addresses the case where the battery suggestion is not applied while a vehicle charges, which matches the symptom here (related: #35337). Once it is merged and available in a nightly build, please check whether the problem is gone. This issue can then be closed. A reply here is only needed if the problem persists.

🤖 Generated with Claude Code

github-actions[bot] avatar Oct 28 '26 13:10 github-actions[bot]