evcc icon indicating copy to clipboard operation
evcc copied to clipboard

"Battery of charged to 0%" notification on evcc startup

Open TobiasHuber1980 opened this issue 9 months ago β€’ 3 comments

Describe the bug

On evcc startup, the log shows car disconnected. Immediately after, the messaging system sends the notification: battery of charged to 0%.

maybe related to https://github.com/evcc-io/evcc/pull/26364 ?

[lp-1 ] DEBUG 2026/02/12 21:19:53 charger status: A
[lp-1 ] INFO 2026/02/12 21:19:53 car disconnected
[lp-1 ] DEBUG 2026/02/12 21:19:53 set battery boost: false
[lp-1 ] DEBUG 2026/02/12 21:19:53 set session soc limit: 0
[lp-1 ] DEBUG 2026/02/12 21:19:53 set session energy limit: 0
[telegram] DEBUG 2026/02/12 21:19:53 sending to ***

Steps to reproduce

Start EVCC Observe log and messaging output at startup.

Configuration details

{
  "site": {
    "title": "Zuhause",
    "grid": "db:7",
    "pv": ["db:4"],
    "battery": ["db:5"],
    "aux": null,
    "ext": null
  },
  "loadpoints": [
    {"id":10,"name":"db:10","charger":"db:9","title":"Garage","defaultMode":"pv","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.11","template":"openwb-pro"},"id":9,"name":"db:9","type":"template"}
  ],
  "meter": [
    {"config":{"cache":"30s","host":"192.168.178.10","template":"rct-power","usage":"grid"},"id":7,"name":"db:7","type":"template"},
    {"config":{"cache":"30s","capacity":"11.5","host":"192.168.178.10","maxchargepower":8000,"maxdischargepower":8000,"maxsoc":95,"minsoc":15,"template":"rct-power","usage":"battery"},"deviceTitle":"Batterie","id":5,"name":"db:5","type":"template"},
    {"config":{"cache":"30s","host":"192.168.178.10","template":"rct-power","usage":"pv"},"deviceTitle":"PV","id":4,"name":"db:4","type":"template"}
  ],
  "vehicle": [
    {"config":{"cache":"15m","capacity":"77","icon":"car","identifiers":["0308154628"],"maxCurrent":16,"minCurrent":6,"mode":"pv","password":"***","phases":"","template":"vw","timeout":15000000000,"title":"VW ID.5","user":"***","vin":"***"},"id":1,"name":"db:1","type":"template"},
    {"config":{"cache":"15m","capacity":"77","icon":"car","identifiers":["04aa091a"],"maxCurrent":16,"minCurrent":6,"mode":"pv","password":"***","phases":"","template":"vw","timeout":15000000000,"title":"VW ID.4","user":"***","vin":"***"},"id":3,"name":"db:3","type":"template"},
    {"config":{"cache":"15m","capacity":"58","icon":"car","identifiers":["0442931204"],"maxCurrent":16,"minCurrent":6,"mode":"pv","password":"***","phases":"","template":"vw","timeout":15000000000,"title":"VW ID.3","user":"***","vin":"***"},"id":6,"name":"db:6","type":"template"}
  ],
  "messaging": "events:
  start:
    title: Charge started
    msg: Car started charging in ${mode} mode
  stop:
    title: Charge finished
    msg: Car finished charging with ${chargedEnergy:%.1fk}kWh
  connect:
    title: Car connected
    msg: Car connected at ${pvPower:%.1fk}kW PV
  disconnect:
    title: Car disconnected
    msg: Car disconnected after ${connectedDuration}
  soc:
    title: Soc updated
    msg: Battery of ${vehicleTitle} charged to ${vehicleSoc:%.0f}%
  guest:
    title: Unknown vehicle
    msg: Unknown vehicle, guest connected?
services:  
  - type: telegram 
    token: *****
    chats: *****
    - 08154711",
  "tariffs": "currency: EUR
grid:
  type: fixed
  price: 0.3094
feedin:
  type: fixed
  price: 0.08
co2:
  type: template
  template: grΓΌnstromindex
  zip: *****
  token: *****
solar:
  type: template
  template: open-meteo
  lat: *****
  lon: *****
  dec: 25
  az: 4
  kwp: 7
  ac: 8000
  alphatemp: -0.004
  rossmodel: 0.0342
  interval: 1h",
  "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,
  "experimental": false
}

Log details

[main ] INFO 2026/02/12 21:19:49 evcc 0.300.8 (f05daa361)
[main ] INFO 2026/02/12 21:19:49 using config file: /etc/evcc.yaml
[main ] INFO 2026/02/12 21:19:49 using sqlite database: /var/lib/evcc/evcc.db?_pragma=busy_timeout(5000)
[eebus ] INFO 2026/02/12 21:19:50 Local SKI: 0c44881f9fd60c57ba5f894e91f6f9dd95310406
[main ] INFO 2026/02/12 21:19:50 OCPP local url: ws://127.0.0.1:8887/<stationId>
[main ] INFO 2026/02/12 21:19:50 UI local url: http://127.0.0.1:7070
[lp-1 ] DEBUG 2026/02/12 21:19:52 set title: Garage
[lp-1 ] DEBUG 2026/02/12 21:19:52 set priority: 0
[lp-1 ] DEBUG 2026/02/12 21:19:52 set smart cost limit: <nil>
[lp-1 ] DEBUG 2026/02/12 21:19:52 set smart feed-in limit: <nil>
[lp-1 ] DEBUG 2026/02/12 21:19:52 set thresholds: {Enable:{Delay:1m0s Threshold:0} Disable:{Delay:3m0s Threshold:0}}
[lp-1 ] DEBUG 2026/02/12 21:19:52 set plan energy: 0kWh @ 0001-01-01 00:53:28 +0053 LMT
[lp-1 ] DEBUG 2026/02/12 21:19:52 set plan strategy: continuous=false, precondition=0s
[lp-1 ] DEBUG 2026/02/12 21:19:52 set session energy limit: 0
[lp-1 ] DEBUG 2026/02/12 21:19:52 set session soc limit: 0
[lp-1 ] DEBUG 2026/02/12 21:19:52 set soc config: {Poll:{Mode:charging Interval:1h0m0s} Estimate:0x40009d8acc}
[lp-1 ] DEBUG 2026/02/12 21:19:52 set default mode: pv
[lp-1 ] DEBUG 2026/02/12 21:19:52 set phases: 0
[tariff] DEBUG 2026/02/12 21:19:52 using cache: grΓΌnstromindex-fc823ff5292362cafb29e0c298a6b5211df27d7cfc247088ef38e56ec9066732 (start: 2026-02-12 21:00:00 +0100 CET, end: 2026-02-17 00:00:00 +0100 CET)
[lp-1 ] DEBUG 2026/02/12 21:19:52 charge total import: 794.192kWh
[site ] INFO 2026/02/12 21:19:52 site config:
[site ] INFO 2026/02/12 21:19:52 meters: grid βœ“ pv βœ“ battery βœ“
[site ] INFO 2026/02/12 21:19:52 grid: power βœ“ energy βœ“ currents βœ—
[site ] INFO 2026/02/12 21:19:52 pv 1: power βœ“ energy βœ— currents βœ—
[site ] INFO 2026/02/12 21:19:52 battery 1: power βœ“ energy βœ— currents βœ— soc βœ“ capacity βœ“
[site ] INFO 2026/02/12 21:19:52 vehicles:
[site ] INFO 2026/02/12 21:19:52 vehicle 1: range βœ“ finish βœ“ status βœ“ climate βœ“ wakeup βœ“
[site ] INFO 2026/02/12 21:19:52 vehicle 2: range βœ“ finish βœ“ status βœ“ climate βœ“ wakeup βœ“
[site ] INFO 2026/02/12 21:19:52 vehicle 3: range βœ“ finish βœ“ status βœ“ climate βœ“ wakeup βœ“
[site ] INFO 2026/02/12 21:19:52 tariffs:
[site ] INFO 2026/02/12 21:19:52 grid: pricestatic
[site ] INFO 2026/02/12 21:19:52 feed-in: pricestatic
[site ] INFO 2026/02/12 21:19:52 co2: βœ“
[site ] INFO 2026/02/12 21:19:52 solar: βœ“
[lp-1 ] INFO 2026/02/12 21:19:52 loadpoint 1:
[lp-1 ] INFO 2026/02/12 21:19:52 mode: pv
[lp-1 ] INFO 2026/02/12 21:19:52 charger: power βœ“ energy βœ“ currents βœ“ phases βœ“ wakeup βœ—
[lp-1 ] INFO 2026/02/12 21:19:52 meters: charge βœ“
[lp-1 ] INFO 2026/02/12 21:19:52 charge: power βœ“ energy βœ“ currents βœ“
[site ] DEBUG 2026/02/12 21:19:52 set buffer soc: 100
[site ] DEBUG 2026/02/12 21:19:52 set buffer start soc: 0
[site ] DEBUG 2026/02/12 21:19:52 set priority soc: 90
[site ] DEBUG 2026/02/12 21:19:52 set battery discharge control: false
[site ] DEBUG 2026/02/12 21:19:52 set residual power: 150
[site ] DEBUG 2026/02/12 21:19:52 accumulated solar yield: restored 4995.461kWh forecasted, map[db:4:{clock:<nil> updated:{wall:0 ext:0 loc:<nil>} meter:<nil> Accumulated:3704.8276689383715}] produced
[site ] DEBUG 2026/02/12 21:19:52 solar forecast: accumulated 14.922Wh from 0001-01-01 00:00:00 +0000 UTC to 2026-02-12 21:19:52 +0100 CET
[site ] DEBUG 2026/02/12 21:19:52 solar forecast: produced 3704.828
[site ] DEBUG 2026/02/12 21:19:52 solar forecast: accumulated 4995.461kWh, produced 3704.828kWh, scale 0.742
[lp-1 ] DEBUG 2026/02/12 21:19:52 phase timer inactive
[lp-1 ] DEBUG 2026/02/12 21:19:52 pv timer inactive
[site ] DEBUG 2026/02/12 21:19:52 ----
[lp-1 ] DEBUG 2026/02/12 21:19:52 charge power: 0W
[lp-1 ] DEBUG 2026/02/12 21:19:52 charge currents: [0 0 0]A
[site ] DEBUG 2026/02/12 21:19:52 battery 1 power: 341W
[site ] DEBUG 2026/02/12 21:19:52 pv 1 power: 0W
[site ] DEBUG 2026/02/12 21:19:52 !! solar production: accumulate add db:4 0.000W power (was: Accumulated: 3704.828kWh updated: 0001-01-01 00:00:00 +0000 UTC)
[site ] DEBUG 2026/02/12 21:19:52 !! solar production: accumulate moved db:4 from 3704.828 to 3704.828
[site ] DEBUG 2026/02/12 21:19:52 grid power: -3W
[site ] DEBUG 2026/02/12 21:19:53 battery 1 soc: 82%
[site ] DEBUG 2026/02/12 21:19:53 site power: 488W
[site ] DEBUG 2026/02/12 21:19:53 optimizer: optimizing 399 slots until 2026-02-17 01:00:00 +0100 CET: grid=587, feedIn=587, solar=399, first slot: 10m6s
[lp-1 ] DEBUG 2026/02/12 21:19:53 charge voltages: [234 234 233]V
[lp-1 ] DEBUG 2026/02/12 21:19:53 charge total import: 794.192kWh
[lp-1 ] DEBUG 2026/02/12 21:19:53 charger status: A
[lp-1 ] INFO 2026/02/12 21:19:53 car disconnected
[lp-1 ] DEBUG 2026/02/12 21:19:53 set battery boost: false
[lp-1 ] DEBUG 2026/02/12 21:19:53 set session soc limit: 0
[lp-1 ] DEBUG 2026/02/12 21:19:53 set session energy limit: 0
[telegram] DEBUG 2026/02/12 21:19:53 sending to ***
[site ] DEBUG 2026/02/12 21:19:53 solar forecast: accumulated 0.000Wh from 2026-02-12 21:19:52 +0100 CET to 2026-02-12 21:19:53 +0100 CET
[site ] DEBUG 2026/02/12 21:19:53 solar forecast: produced 3704.828
[site ] DEBUG 2026/02/12 21:19:53 solar forecast: accumulated 4995.461kWh, produced 3704.828kWh, scale 0.742

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

Linux

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.300.8 (f05daa361)

TobiasHuber1980 avatar Feb 12 '26 20:02 TobiasHuber1980

Gleiche Problem bei mir. Ist also wohl kein isolierter Einzelfall

alexonbandit avatar Feb 18 '26 08:02 alexonbandit

Ja da scheint was schief zu laufen.

Habe die Meldung bei jedem Start Up bekommen sowie , obwohl deaktiviert, die Ladestandsaktualisierung.

Habe sie jetzt mal De- und Aktiviert. mal sehen ob wieder was kommt.

[telegram] DEBUG 2026/02/20 13:50:57 sending to ***
Image

ChrisW-one avatar Feb 20 '26 13:02 ChrisW-one

Bei mir kommt das schon sehr lange. Ich vermute es liegt daran dass evcc noch keine SoC vom jeweiligen Fahrzeug-Backend hat.

Beholfen habe ich mir damit (im alten Messaging-Stil): nur bei einem Wert grâßer 0 wird eine Nachricht geschickt.

events:
  soc: # vehicle soc update event
    title: SoC updated
    msg: |
     {{if gt .vehicleSoc 0.0}}Battery charged to ${vehicleSoc:%.0f}%{{end}}

Im neuen Konfigurationsdialog einfach nur diese Zeile als Nachricht:

{{if gt .vehicleSoc 0.0}}Battery charged to ${vehicleSoc:%.0f}%{{end}}

stan23 avatar Feb 22 '26 08:02 stan23