github marq24/ha-evcc 2025.9.0
Supporting Charging Session [total values]

latest releases: 2026.2.2, 2026.2.1, 2026.2.0...
5 months ago

Charging Session Sensor

In evcc you have the option to show all kind of statistic data based on the charging session [Ladevorgänge]. In the new release a sensor have been added sensor.evcc_charging_sessions that provide the total summary [of the fields: chargedEnergy, chargeDuration & cost (in evcc this is price)] of all sessions per loadpoint and per vehicle as sensor attributes.

The sessions sensor will be updated every hour... no matter of a possible configured update interval.

Create a template sensor

Inspecting via

{{state_attr('sensor.evcc_charging_sessions', 'vehicles') }}
{{state_attr('sensor.evcc_charging_sessions', 'loadpoints') }}

Example for a Vehicle:

{% set key='vehicles' %}
{% set veh='MachE XX-XXABC' %}
{{state_attr('sensor.evcc_charging_sessions', key)[veh]['chargedEnergy']}}
{{state_attr('sensor.evcc_charging_sessions', key)[veh]['chargeDuration']}}
{{state_attr('sensor.evcc_charging_sessions', key)[veh]['cost']}}

So if you want to have the total energy for a vehicle (to use it e.g. in the HA Energy tab), create a template sensor and use {{state_attr('sensor.evcc_charging_sessions', 'vehicles')[YOUR_VEH_NAME_HERE]['chargedEnergy']}} as value

Added option to specify precondition for set_vehicle_plan Service

Kudos @thecem

Please consider to support me

I the past weeks I had to invest plenty of my time in order to keep the Integration up to date with the latest changes... And there might be just more that will come around the corner...

PayPal BuyMeCoffee GitHubSponsor

Don't miss a new ha-evcc release

NewReleases is sending notifications on new releases.