github marq24/ha-evcc 2025.9.3
Charging Session [total values] as integrated Sensors (per Loadpoint & per Vehicle)

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

Charging Session Sensors per Vehicle & per Loadpoint

In evcc you have the option to show all kind of statistic data based on the charging session [Ladevorgänge]. In the new release for each loadpoint and for each vehicle the the integration will provide three additional sensor entities which is the sum of all charging session:

  • Total chargedEnergy (in kWh)
  • Total chargeDuration (in seconds)
  • Total costs

This will make the manual creation of the template sensors for active vehicles & loadpoints obsolete. All the new entities will contain the string cstotal (charging session total) as part of their entity ID.

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

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

Create a template sensor [for inactive vehicles and loadpoints]

Accessing Charging Session data for inactive vehicles and loadpoints

It could be the case, that your historic charging session data will contain outdated vehicles or loadpoints - For this legacy vehicles/loadpoints the integration will not provide sensor entities.

But you can still access the data via the generic sensor.evcc_charging_sessions entity.

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

Don't miss a new ha-evcc release

NewReleases is sending notifications on new releases.