Smart EV Charging with Home Assistant, Easee and Dynamic Energy Cost

Charging your electric car at home is convenient, but not always cheap. If you’re on a dynamic electricity tariff, the price per kWh changes throughout the day. That means when you charge matters just as much as how much you charge.

Advertisements

With Home Assistant, an Easee EV charger, and the Dynamic Energy Cost integration, you can monitor your real charging costs. You can also automate charging to happen when electricity is cheapest.

This guide shows you how it all fits together.


Why use Dynamic Energy Cost?

If you’ve tried to calculate energy cost in Home Assistant before, you’ve probably run into a limitation:

  • Energy sensors track kWh
  • Price sensors track €/kWh
  • But combining them accurately over time is not trivial

That’s exactly what the Dynamic Energy Cost integration solves.

Instead of a rough estimate, it:

  • Tracks accumulated cost over time
  • Uses real-time pricing data
  • Works with the Energy Dashboard
  • Handles changing prices correctly

This gives you true cost tracking, not just a snapshot.


The components

1. Easee integration

The Easee integration provides the raw charging data.

You typically get:

  • Charging power (kW)
  • Session energy (kWh)
  • Charger state
  • Control (start/stop charging)

The most important entity here is the energy sensor, usually something like:

sensor.easee_charger_energy

This is what we use for cost calculation.


2. Nord Pool (or other price source)

You still need a source of electricity prices.

Most users in Europe use:

  • Nord Pool integration

This provides:

  • Hourly prices
  • Today and tomorrow forecasts

Example sensor:

sensor.nordpool_kwh_price

3. Dynamic Energy Cost integration

This is where things become powerful.

The integration creates a new sensor that represents the actual cost of energy consumption over time.

You configure it by linking:

  • An energy sensor (kWh)
  • A price sensor (€/kWh)

Example configuration:

dynamic_energy_cost:
- name: ev_charging_cost
energy: sensor.easee_charger_energy
price: sensor.nordpool_kwh_price

This will create:

sensor.ev_charging_cost

This sensor:

  • Continuously tracks cost
  • Accounts for changing hourly prices
  • Works seamlessly with the Energy Dashboard

Monitoring EV charging cost

Once set up, you can finally answer:

  • How much did this charging session cost?
  • How much do I spend per week/month on EV charging?

Add these to your dashboard:

  • Current power (kW)
  • Total energy (kWh)
  • Current price (€/kWh)
  • Total cost (€)

Unlike simple templates, this setup gives you accurate accumulated cost, even if prices change mid-session.


Automation: smart charging based on price

Now that cost tracking is reliable, you can automate charging more intelligently.

Basic strategy

  • Charge when price is low
  • Pause when price is high
  • Only run when the car is connected

Example automation (YAML)

Here’s a clean and practical automation:

automation:
- alias: "EV Charging - Price Optimized"
description: "Control Easee charging based on dynamic electricity price"
mode: single trigger:
- platform: time_pattern
minutes: "/5" condition:
- condition: state
entity_id: binary_sensor.easee_vehicle_connected
state: "on" action:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.nordpool_kwh_price
below: 0.12
sequence:
- service: easee.start_charging
target:
entity_id: charger.easee_home - conditions:
- condition: numeric_state
entity_id: sensor.nordpool_kwh_price
above: 0.22
sequence:
- service: easee.stop_charging
target:
entity_id: charger.easee_home

What this automation does

  • Runs every 5 minutes
  • Checks if the car is plugged in
  • Starts charging when electricity is cheap
  • Stops charging when it becomes expensive

This alone can reduce your charging cost noticeably.


Taking it further

Once you have Dynamic Energy Cost in place, you unlock better automation options.

1. Charge during cheapest hours

Instead of a fixed threshold, you can:

  • Use tomorrow’s price data
  • Identify the cheapest 3–5 hours
  • Only charge during those windows

This gives better results than a simple price cutoff.


2. Track cost per session

You can combine:

  • Charger session sensors
  • Dynamic cost sensor

Then reset or snapshot cost per session using helpers.


3. Combine with house consumption

If you want to avoid overload:

  • Monitor total house usage
  • Pause EV charging when usage is high

Example logic:

  • If total load > 10 kW → stop charging
  • Resume when safe

4. Solar-aware charging

If you have solar panels:

  • Charge when solar production is high
  • Reduce grid import

Combine:

  • Solar power sensor
  • Price sensor

Charge when:

  • Solar > 2 kW OR price is low

Why Dynamic Energy Cost is better than templates

You can calculate cost using templates, but they have limitations:

MethodAccuracyHandles price changesWorks long-term
Template sensorMediumNoLimited
Dynamic Energy CostHighYesYes

The key advantage is that Dynamic Energy Cost:

  • Tracks cost over time properly
  • Integrates with Home Assistant’s energy system
  • Doesn’t break when prices change mid-hour

Practical tips

Set realistic thresholds

Remember:

  • Grid fees and taxes are not always included
  • Your real cost may be higher than Nord Pool price

Adjust thresholds accordingly.


Avoid rapid switching

If charging toggles too often:

  • Add a delay
  • Or require price to stay low/high for a period

Observe before automating

Watch your data for a few days:

  • When are prices lowest?
  • How long does your car need to charge?

Then fine-tune automation.


Use the Energy Dashboard

With Dynamic Energy Cost:

  • Your EV charging appears with real cost
  • You can track trends over time
  • You can see actual savings

Final thoughts

If you already have an Easee charger and Home Assistant, adding Dynamic Energy Cost is a no-brainer.

It turns your setup from:

  • “I think I’m saving money”

into:

  • “I know exactly what charging costs me”

And once you add automation, your system quietly optimizes itself in the background.

That’s what a smart home should do.


Some of the links in this article are "affiliate links", a link with a special tracking code. This means if you click on an affiliate link and purchase the item, we will receive an affiliate commission. The price of the item is the same whether it is an affiliate link or not. Regardless, we only recommend products or services we believe will add value to our readers. By using the affiliate links, you are helping support our Website, and we genuinely appreciate your support.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.