evcc icon indicating copy to clipboard operation
evcc copied to clipboard

message variables not working

Open Stefanos-web opened this issue 1 year ago • 1 comments

Describe the bug

keine Werterückgabe bei den zwei Werten unten seit 209.2

Price ${sessionPrice:%.2f}€, CO2 pro kwh ${sessionCo2PerKWh:%.0f}g

Steps to reproduce

...

Configuration details

events:
    start: # charge start event
      title: Charge of ${vehicleTitle} started
      msg: Wallbox ${title} started charging ${vehicleTitle} in ${mode} mode, Battery status ${vehicleSoc:%.0f}%
    stop: # charge stop event
      title: Charge of ${vehicleTitle} finished
      msg: Wallbox ${title} finished charging ${vehicleTitle} with ${chargedEnergy:%.1fk}kWh in ${chargeDuration}, Solar used ${sessionSolarPercentage:%.0f}%, Price ${sessionPrice:%.2f}€, CO2 pro kwh ${sessionCo2PerKWh:%.0f}g, Battery status ${vehicleSoc:%.0f}%    
    connect: # vehicle connect event
      title: ${vehicleTitle} connected on wallbox ${title}
      msg: ${vehicleTitle} connected on wallbox ${title} at ${pvPower:%.1fk}kW PV, Battery status ${vehicleSoc:%.0f}%
    disconnect: # vehicle connected event
      title: ${vehicleTitle} disconnected of wallbox ${title}
      msg: ${vehicleTitle} disconnected of wallbox ${title} after ${connectedDuration}, Battery status ${vehicleSoc:%.0f}%
    soc: # vehicle soc update event
      title: Soc updated
      msg: ${vehicleTitle} Battery charged to ${vehicleSoc:%.0f}%
    guest: # vehicle could not be identified
      title: Unknown vehicle
      msg: Unknown vehicle, guest connected! 
services:

Log details

no log

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

209.3

Stefanos-web avatar Oct 24 '25 13:10 Stefanos-web

Bitte issues nach sessionPrice suchen, ist ab morgen gelöst.

@naltatis das klingt wie eine Spätfolge der Forecastoptimierung. Jetzt weiss ich auch wieder, was die Ursache für https://github.com/evcc-io/evcc/pull/24375#issuecomment-3398625271 war...

andig avatar Oct 24 '25 14:10 andig