evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Possible glitch in planner preview

Open Marc2480 opened this issue 1 month ago • 7 comments

Description

I configured cheap grid charging for the Alfen in my cheapest price-zone, actually works as expected. However, the planner preview (even with no plan(s) active) shows wrong charging slots ... adjusting the SOC in the planner (again even without having it active) will impact the (wrong) charging slots shown in the preview. I guess this is rather a glitch than a bug ...

Steps to Reproduce

  1. setup cheap grid charging
  2. go to planner and watch preview ...
Image Image

Version

v0.317.2

System

linux/arm64, CEST +02:00

Configuration (YAML)

# test
# 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: *****
interval: 10s # control cycle interval
sponsortoken: *****
# sponsors can set telemetry: true to enable anonymous data aggregation
# see https://github.com/evcc-io/evcc/discussions/4554
telemetry: false
site:
  title: L11 Dessel
  meters:
    grid: db:19
#  circuit: main   removed for 0.204.3
# meters:
# - type: template
#   template: tq-em420 
#   usage: grid  
#   host: 192.168.10.156  
#   port: 80  
#   device: local  
#   token: *****
#   name: grid_L11
# chargers:
# - type: template
#  template: alfen 
#  id: 1  
#  host: 192.168.10.149  
#  port: 502  
#  modbus: tcpip  
#  name: wallbox3
# changed 26/8/25 -? charger and car web-configured
# vehicles:
# - name: ev3
#  type: template
#  template: bmw 
#  title: BMW iX3  
#  user: *****
#  password: *****
#  vin: *****
#  capacity: 74
#  hcaptcha: P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.hadwYXNza2V5xQRGTJ4VGJIV3h11r5nZ_SvyCxvqCFhlr_PTXGeTTwsoW6t8CE3PZNjt5bRwN-apsjIctesiU8ab5onDsGd2VMNLZemW4QiZTT4NaA5gHsAYFQsIYQryHqn4cycT2XKj_0t5s7WFPArv_H0SpNZCQSgomK_nNUGFKws8mKKTXQUMYZTqn4oTGYVpd40_kWHMfHObMFjLeSvFTW1vq8cGRPgURehwsjLLRe77RB1P0oAa9wfI99JRCzm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7FfVFycJ4ABqKucQNHlgdkfrSz8VS9zV5YM_pMKXage6Aqzg9EjlAZWAcUL8yHULnCMtibBTTnZavMuDXgkuoJ32UNbJ0EMhVj2HHCqnA8Nq49Up2-6sx_TEIoV-okKpxJjCWjZXhwzmdXUzioc2hhcmRfaWTOAzGDb6JrcqgyNWY1ZWJjZKJwZAA.k9tFlINpDA4ukzcEGLbYRLntdkjqmJTpc1SDX3gYVO8
# changed 26/8/25 -? charger and car web-configured
# loadpoints:
# - title: Alfen
#  charger: wallbox3
#  vehicle: ev3 car online configured
#  mode: now
#  circuit: garage
# circuits:
# - name: main
#   title: Home Circuit
#   maxCurrent: 20
#   meter: grid_L11 
#   parent:
# - name: garage
#   title: Garage
#   maxCurrent: 16
#   maxPower:
#   meter:
#   parent: main

Configuration (UI)

{
  "charger": [
    {"id":12,"name":"db:12","type":"template","config":{"template":"alfen","host":"192.168.10.149","modbus":"tcpip"},"deviceProduct":"Alfen Eve"}
  ],
  "circuit": [
    {"id":35,"name":"db:35","type":"template","config":{"template":"static","maxcurrent":26,"meter":"db:19","parent":""},"deviceProduct":"Static circuit","deviceTitle":"Home Circuit"},
    {"id":36,"name":"db:36","type":"template","config":{"template":"static","maxcurrent":20,"parent":"db:35"},"deviceProduct":"Static circuit","deviceTitle":"Garage"}
  ],
  "country": "",
  "currency": "EUR",
  "eebus": {"config":{"certificate":{"private":"***","public":"-----BEGIN CERTIFICATE-----
MIIBvTCCAWOgAwIBAgIRAd4glrNZ555/xN3ffcQniuwwCgYIKoZIzj0EAwIwPjEL
MAkGA1UEBhMCREUxDTALBgNVBAoTBEVWQ0MxCTAHBgNVBAsTADEVMBMGA1UEAwwM
RVZDQ19IRU1TXzAxMB4XDTI2MDIxOTExNTkxMVoXDTM2MDIxNzExNTkxMVowPjEL
MAkGA1UEBhMCREUxDTALBgNVBAoTBEVWQ0MxCTAHBgNVBAsTADEVMBMGA1UEAwwM
RVZDQ19IRU1TXzAxMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE5AeboD5SiyXA
Dy63tXfQ9T8OJEHPLe0b7+GGlYUVkPocOHHGyi8seEhcclVcTz0cnJ13IIbKMD4V
EPWHW8tgj6NCMEAwDgYDVR0PAQH/BAQDAgeAMA8GA1UdEwEB/wQFMAMBAf8wHQYD
VR0OBBYEFDF0oq90jFWhrmRO3rzd5XnF3ShDMAoGCCqGSM49BAMCA0gAMEUCIDZi
hATVjjXqU5kvnYYoEEtsAaN6sUvzOh/Oh8wiDt99AiEA+5PxGbopBiVXBCOJwFhB
C0kH7r6aCAaLiruWDgPMr8s=
-----END CERTIFICATE-----
"},"port":4712,"shipid":"EVCC-3833353262356538"},"status":{"qr":"SHIP;SKI:3174a2af748c55a1ae644edebcdde579c5dd2843;ID:EVCC-3833353262356538;BRAND:EVCC;TYPE:EnergyManagementSystem;MODEL:HEMS;SERIAL:EVCC-3833353262356538;CAT:2;FPH256:F3A08442D435750A663ECFDC13488A79ACDB46142808B2EE501BB0BCAD8A843C;SPSEC:8375E41190F9668412B262B76E144684;ENDSHIP;","ski":"3174a2af748c55a1ae644edebcdde579c5dd2843"}},
  "experimental": true,
  "gridExportLimit": 0,
  "influx": {"database":"","insecure":false,"org":"","password":"","token":"","url":"","user":""},
  "interval": 10,
  "loadpoints": [
    {"id":13,"name":"db:13","alwaysCharge":"off","batteryBoostLimit":40,"charger":"db:12","circuit":"db:36","defaultMode":"smart","limitEnergy":0,"limitSoc":0,"maxCurrent":20,"minCurrent":6,"minSoc":0,"phasesConfigured":1,"planEnergy":0,"planPrecondition":0,"planStrategy":{"continuous":false,"precondition":0},"planTime":"0001-01-01T00:00:00Z","priority":0,"smartCostLimit":0.17,"smartFeedInPriorityLimit":null,"soc":{"estimate":true,"poll":{"interval":600000000000,"mode":"charging"}},"solarShare":1,"thresholds":{"disable":{"delay":180000000000,"threshold":1000},"enable":{"delay":60000000000,"threshold":-350}},"title":"Alfen","ui":{"maxTemp":0,"minTemp":0},"vehicle":"db:24"}
  ],
  "meter": [
    {"id":18,"name":"db:18","type":"template","config":{"template":"homewizard","host":"192.168.10.170","usage":"grid"},"deviceIcon":"generic","deviceProduct":"HomeWizard Wi-Fi P1 Meter","deviceTitle":"HomeWizard P1"},
    {"id":19,"name":"db:19","type":"template","config":{"template":"tq-em420","device":"local","host":"192.168.10.156","port":"80","token":"***","usage":"grid"},"deviceIcon":"generic","deviceProduct":"TQ Energy Manager EM420","deviceTitle":"TQ-EM420"},
    {"id":31,"name":"db:31","type":"template","config":{"template":"shelly-1pm","host":"192.168.0.105","usage":"charge"},"deviceIcon":"dishwasher","deviceProduct":"Shelly Plug S","deviceTitle":"Washer AEG"},
    {"id":33,"name":"db:33","type":"template","config":{"template":"shelly-1pm","host":"192.168.0.107","usage":"charge"},"deviceIcon":"waterheater","deviceProduct":"Shelly Plug S","deviceTitle":"Dishwasher ATAG"},
    {"id":32,"name":"db:32","type":"template","config":{"template":"shelly-1pm","host":"192.168.0.106","usage":"charge"},"deviceIcon":"laundry","deviceProduct":"Shelly Plug S","deviceTitle":"Dryer Bosch"},
    {"id":34,"name":"db:34","type":"template","config":{"id":1,"template":"solaredge-hybrid","baudrate":9600,"comset":"8N1","host":"192.168.10.150","maxacpower":"0","maxdischargepower":"5000","modbus":"tcpip","port":1502,"usage":"grid","watchdog":"60s"},"deviceIcon":"meter","deviceProduct":"SolarEdge Hybrid Inverter","deviceTitle":"SolarEdge"},
    {"id":21,"name":"db:21","type":"template","config":{"id":"1","template":"solaredge-hybrid","host":"192.168.10.150","maxacpower":5000,"modbus":"tcpip","port":1502,"usage":"pv","watchdog":"60s"},"deviceProduct":"SolarEdge Hybrid Inverter","deviceTitle":"SolarEdge"},
    {"id":22,"name":"db:22","type":"template","config":{"id":1,"template":"solaredge-hybrid","baudrate":9600,"capacity":9.6,"comset":"8N1","host":"192.168.10.150","maxacpower":"0","maxchargepower":4500,"maxdischargepower":5000,"maxsoc":90,"minsoc":5,"modbus":"tcpip","port":1502,"usage":"battery","watchdog":"60s"},"deviceProduct":"SolarEdge Hybrid Inverter","deviceTitle":"SolarEdge LG Battery"}
  ],
  "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:22"],"consumer":["db:31","db:32","db:33"],"curtail":null,"ext":["db:18","db:19","db:34"],"grid":"db:19","pv":["db:21"],"title":"L11 Dessel"},
  "tariff": [
    {"id":27,"name":"db:27","type":"template","config":{"template":"fixed-zones","price":0.3,"zones":[{"days":"","hours":"01:00-02:30","months":"","price":0.18},{"days":"","hours":"02:30-07:00","months":"","price":0.17},{"days":"sat,sun","hours":"11:00-12:30","months":"","price":0.18},{"days":"sat,sun","hours":"12:30-17:00","months":"","price":0.17},{"days":"mon,tue,wed,thu,fri","hours":"11:00-17:00","months":"","price":0.24},{"days":"sat,sun","hours":"07:00-11:00","months":"","price":0.24},{"days":"sat,sun","hours":"17:00-00:00","months":"","price":0.24}]},"deviceProduct":"Time-based Tariff"},
    {"id":28,"name":"db:28","type":"template","config":{"template":"fixed","price":0.04},"deviceProduct":"Fixed Price"},
    {"id":29,"name":"db:29","type":"template","config":{"template":"open-meteo","ac":"1000","alphatemp":"-0.004","az":45,"de":"0","dec":25,"dm":"0","efficiency":"100","interval":"15m","kwp":5,"lat":"***","lon":"***","rossmodel":"0.0342"},"deviceProduct":"Open-Meteo","deviceTitle":"L11"}
  ],
  "tariffRefs": {"co2":"","feedIn":"db:28","grid":"db:27","planner":"","solar":["db:29"],"temperature":""},
  "vehicle": [
    {"id":24,"name":"db:24","type":"template","config":{"template":"cardata","autodetectdisabled":false,"capacity":74,"clientid":"e992d339-1042-4dbd-8bb4-575255b52da6","climaterdisabled":false,"coarsecurrent":false,"icon":"car","maxCurrent":32,"minCurrent":6,"mode":"pv","phases":"1","streaming":false,"title":"iX3","vin":"***","wakeupdisabled":false,"welcomecharge":false},"deviceProduct":"BMW CarData (EU Data Act)"}
  ]
}

Logs

[lp-1  ] DEBUG 2026/10/22 10:30:53 charge total import: 7240.259kWh
[lp-1  ] DEBUG 2026/10/22 10:30:53 charger status: A
[site  ] DEBUG 2026/10/22 10:31:02 ----
[lp-1  ] DEBUG 2026/10/22 10:31:02 charge power: 0W
[lp-1  ] DEBUG 2026/10/22 10:31:02 charge currents: [0 0 0]A
[db:36-Garage] DEBUG 2026/10/22 10:31:02 power: 0W
[db:36-Garage] DEBUG 2026/10/22 10:31:02 current: 0A
[db:35-Home Circuit] DEBUG 2026/10/22 10:31:02 power: -25W
[db:35-Home Circuit] DEBUG 2026/10/22 10:31:02 current: 1.29A
[site  ] DEBUG 2026/10/22 10:31:02 grid power: -25W
[site  ] DEBUG 2026/10/22 10:31:02 grid currents: [1.29 0 0]A
[site  ] DEBUG 2026/10/22 10:31:02 ext 2 power: -25W
[site  ] DEBUG 2026/10/22 10:31:02 ext 1 power: 5W
[site  ] DEBUG 2026/10/22 10:31:02 battery 1 power: -0W
[site  ] DEBUG 2026/10/22 10:31:03 consumer 3 power: 0W
[site  ] DEBUG 2026/10/22 10:31:03 consumer 1 power: 0W
[site  ] DEBUG 2026/10/22 10:31:03 consumer 2 power: 0W
[site  ] DEBUG 2026/10/22 10:31:03 ext 3 power: -27W
[site  ] DEBUG 2026/10/22 10:31:03 pv 1 power: 308W
[site  ] DEBUG 2026/10/22 10:31:03 battery 1 soc: 83%
[site  ] DEBUG 2026/10/22 10:31:03 site power: 75W
[lp-1  ] DEBUG 2026/10/22 10:31:03 charge voltages: [231 0 0]V
[lp-1  ] DEBUG 2026/10/22 10:31:03 detected connected phases: 1p
[lp-1  ] DEBUG 2026/10/22 10:31:03 charge total import: 7240.259kWh
[lp-1  ] DEBUG 2026/10/22 10:31:03 charger status: A

Marc2480 avatar Oct 22 '26 08:10 Marc2480

Thanks for the report. The screenshots alone don't let us tell which slots you consider wrong, so we can't pin down a cause yet. Could you please add:

  • which slots the planner preview shows and which ones you expected (times, and the tariff prices at those times)
  • whether the preview matches the tariff zones configured in the fixed-zones tariff (cheap zone 01:00 to 07:00, smartCostLimit 0.17)
  • whether this happens in the planner for the charging mode smart only, or also in other modes
  • a log excerpt with the planner open (the attached log only shows the idle control loop)

🤖 Generated with Claude Code

github-actions[bot] avatar Oct 22 '26 08:10 github-actions[bot]

I'm only using smart-mode + cheap grid charging ...

Earlier user MartinRinas also provided following feedback :

I was able to reproduce the described behavior:

have one or more charging plans with SoC limit configured, have them all disabled set the default plan to a SoC limit not yet reached, disable that plan you end up with no active plan on the UI --> planner seems to ignore no active plans and plan for the default plan, despite that is disabled. Once one of the recurring plans is active, the planned operates as expected.

Suggest to report this specific scenario as a bug, doesn't seem expected to me. The price limit in smart mode has nothing to do with this, I was able to repro without this set.

Marc2480 avatar Oct 22 '26 08:10 Marc2480

Thanks for the details. Two separate things here:

  • The planner preview (staticPlanPreviewHandler in server/http_loadpoint_handler.go) is a what-if calculation for the SoC/time shown in the dialog. It is computed independently of whether a plan is active, so changing the SoC changing the slots is expected. It plans on the tariff prices, not on the smartCostLimit zone, so slots can differ from what smart-mode cheap charging does.
  • The scenario described by MartinRinas (all plans disabled but the default plan still being planned) is not confirmed. In core/loadpoint_effective.go disabled repeating plans are skipped, so I cannot tell from the code which plan is used there.

To pin this down, please add:

  • the slots the preview shows and the ones you expected (times and tariff prices at those times)
  • whether the preview matches your tariff zones (cheap zone 01:00 to 07:00)
  • whether the actual charging (not just the preview) follows the wrong slots
  • steps for the disabled-plan scenario: which plans exist, which are disabled, and what the UI shows afterwards
  • a debug log excerpt captured while the planner dialog is open

🤖 Generated with Claude Code

github-actions[bot] avatar Oct 22 '26 08:10 github-actions[bot]

The two charts "cheap grid charging" and "planner preview" are not connected, they each show the result of their respective goals.

In planner mode, when no plan is activated the show a "Preview plan" (see title of the chart). This live-changes as you make edits above but does not result actual charging behavior until you activate a plan. This is intentional and provides you the opportunity to see what the charger would do without accidentally starting/stopping charges why you fiddle around with the forms.

naltatis avatar Oct 22 '26 15:10 naltatis

thanks for elaborating, so I simply ignore the planner preview (if I don't activate a plan)

Marc

Marc2480 avatar Oct 22 '26 17:10 Marc2480

@naltatis close or is there a follow-up?

andig avatar Oct 25 '26 09:10 andig

thanks for elaborating, so I simply ignore the planner preview (if I don't activate a plan)

Yes.

naltatis avatar Oct 29 '26 17:10 naltatis