Notifications
Notifications keep you up to date about your charging sessions, e.g. via Telegram, Pushover, ntfy or email. You choose which events trigger a message and can customise title and content with placeholders. Configuration is done via Configuration → Notifications.
Services
Under Services, add one or more of the services listed below.
Events
Messages can be sent for the following events:
| Event | Fires when … |
|---|---|
start | charging starts |
stop | charging finishes |
connect | a vehicle is connected |
disconnect | a vehicle is disconnected |
soc | the vehicle state of charge changes |
guest | an unknown vehicle is detected |
asleep | a vehicle does not charge despite charge release |
planoverrun | a charging plan is projected to miss its target |
Each event has a title and a message. Both can be customised with placeholders.
Message Format
Message with simple syntax, e.g. for the stop event:
${title}: ${vehicleTitle} charged ${chargedEnergy:%.1fk}kWh in ${chargeDuration}.Solar share: ${sessionSolarPercentage:%.0f}%The same message with Go template syntax, with calculations (e.g. converting W to kW) and conditions:
{{.title}}: {{round (divf .chargedEnergy 1000) 1 }} kWh in {{.chargeDuration}}.Solar share: {{round .sessionSolarPercentage 0 }}%{{- if .sessionPrice}}Cost: {{round .sessionPrice 2 }} {{.currency}} ({{round .sessionPricePerKWh 2 }} {{.currency}}/kWh){{- end}}Placeholders
Titles and messages can use variables to display evcc information. There are two syntax options, which can also be combined:
- Simple:
${variableName}, e.g.${vehicleTitle}. Optionally with formatting like${pvPower:%.1fk}: besides the usualprintfspecifiers, the suffixkdivides the value by 1000 (e.g. Wh → kWh). Durations like${chargeDuration}render rounded to whole seconds (e.g.1h23m4s). - Go template:
{{.variableName}}— enables calculations, conditions, and sprig functions.
Available Variables
The available variables correspond to the data from the REST API. When sending a message, the data of the triggering loadpoint and the global data are merged into a flat structure. This means both global values (e.g. pvPower, grid.Power) and loadpoint-specific values (e.g. mode, chargedEnergy, vehicleTitle) are directly accessible. Nested values like grid.Power or battery.Soc are only accessible with the Go template syntax; the capitalised field names are required there.
Commonly used loadpoint variables:
title: Loadpoint nameloadpoint: Loadpoint number 1, 2, …mode: Charge modeoff/now/minpv/pvcharging: Charging activeenabled: Charging enabledconnected: Vehicle connectedchargedEnergy: Energy charged in session in WhchargeDuration: Charging durationchargePower: Current charge power in WconnectedDuration: Connection durationchargeRemainingDuration: Remaining charge time until targetchargeRemainingEnergy: Remaining energy until target in WhphasesActive: Currently active phasesvehicleTitle: Vehicle namevehicleName: Technical vehicle namevehicleSoc: Vehicle state of charge in %vehicleRange: Vehicle range in kmvehicleOdometer: Odometer reading in kmsessionSolarPercentage: Solar share of charging session in %sessionPrice: Cost of charging sessionsessionPricePerKWh: Average price per kWhsessionCo2PerKWh: Average CO₂ emissions per kWhplanActive: Charge plan activesmartCostActive: Smart cost charging active
Commonly used global variables:
siteTitle: Name of the evcc instancepvPower: Current solar power in WhomePower: Current home consumption in Wgrid.Power: Grid import (+) / export (−) in Wbattery.Power: Battery power in Wbattery.Soc: Battery state of charge in %currency: Tariff currencytariffGrid: Current grid price per kWhtariffFeedIn: Feed-in tariff per kWhtariffCo2: Current CO₂ intensitystatistics.<period>.*: Charging statistics for the periods30d,365d,thisYear, andtotal(avgCo2,avgPrice,chargedKWh,solarPercentage)
The complete list of all available fields can be found in the API response at http://evcc.local:7070/api/state.
Both syntaxes work in the title and message fields of the UI. Configuration via evcc.yaml is described in the messaging reference.