Dynamic Energy Contract and Home Assistant: How to Automate Your Savings

A dynamic energy contract only saves money if you use power when it is cheap. Doing that by hand gets old fast, which is why many people hand the job to Home Assistant. This guide covers where the price data comes from, what to automate first and what to watch out for. It also introduces a small experiment we are starting with two suppliers, Frank Energie and Zonneplan.

Why automate a dynamic contract?

With a dynamic contract the price changes every hour or every 15 minutes, following the wholesale market. The spread between the cheapest and the most expensive hours is where the savings come from, but only if your big loads move to the cheap hours. Our dynamic contract guide covers who this suits. Net metering also ends on 1 January 2027, which makes your own usage timing matter more for anyone with solar panels.

Step 1: get the prices into Home Assistant

Everything starts with a price sensor. Home Assistant needs to know the price now and, ideally, the prices for the next hours.

  • Zonneplan: Home Assistant has an official Zonneplan integration. It needs a Zonneplan account and gives you electricity and gas prices and usage. A community integration installed through HACS exposes more sensors, such as solar yield and a fuller forecast.
  • Frank Energie: There is no official integration. Community integrations installed through HACS read the Frank Energie prices, with hourly or quarter-hour data. The original project (bajansen) is no longer maintained, and a fork by archofthings continues it, so check that the one you pick is active and compatible with your Home Assistant version before installing.
  • Any supplier: Integrations built on wholesale prices let you work with the market price whichever contract you have, but you then add the supplier’s markup and taxes yourself.

Step 2: know your real price

The market price is not what you pay. Your price per kWh is the market price plus the supplier’s purchase fee, energy tax and VAT, and on top of that comes a fixed monthly fee. Both Frank Energie and Zonneplan charge a purchase fee of roughly 2 cents per kWh and a fixed monthly fee of around 6 euros, but the exact amounts differ between sources and change over time, so read the current tariff page of each supplier. If you want an automation to trigger on “cheap”, build a sensor with the full price, not only the market price.

Step 3: pick the loads worth moving

Start with the loads that use the most and can wait:

  1. Heat pump or hot water boiler: store heat when electricity is cheap and let the building coast when it is expensive. Check your heat pump’s documentation first, because aggressive on/off control can hurt comfort and efficiency.
  2. Electric car: charge in the cheapest hours, and always keep a minimum charge so you are never stranded.
  3. Dishwasher, washing machine, dryer: these only need to finish by a certain time, so a delayed start works well.
  4. Home battery: charge when power is cheap and discharge when it is expensive. This is where dynamic prices and storage work best together. See our home battery guide.

A simple automation pattern

Most automations follow the same shape: a trigger on the price, a condition for safety, and an action. The sketch below is an example to adapt. The entity names are placeholders and will be different in your setup.

alias: Run heat pump boost when power is cheap
trigger:
  - platform: numeric_state
    entity_id: sensor.electricity_price_all_in
    below: 0.20
condition:
  - condition: numeric_state
    entity_id: sensor.living_room_temperature
    below: 21.5
action:
  - service: climate.set_temperature
    target:
      entity_id: climate.heat_pump
    data:
      temperature: 21.5

Use a price threshold you have checked against your own history, or compare the current price with the day’s average instead of a fixed number, because prices move over the year.

Pitfalls to avoid

  • Do not trade comfort or safety for pennies. Always set minimum temperatures and minimum charge levels.
  • Watch the day-ahead timing. Prices for the next day are published once a day, so automations that plan ahead should handle the hours when tomorrow’s data is not yet available.
  • Test with logging first. Run the automation in “notify only” mode for a week before it controls anything.
  • Keep a manual override. You will want one on the day the integration breaks after an update.
  • Check your actual bill. Compare the supplier’s invoice with what your automation thinks you paid.

Our experiment

We are starting a small experiment: comparing a dynamic contract from Frank Energie with one from Zonneplan, with Home Assistant doing the scheduling. We plan to start with the heat pump, then the dishwasher, and we want both working before net metering ends on 1 January 2027. We will publish what we measure in a follow-up, including what did not work. We do not have results yet, so treat the sections above as a how-to and not as proof of savings.

The short version

Get a price sensor into Home Assistant, calculate your real all-in price, move the biggest flexible loads first, and test before you trust it. A dynamic contract rewards flexibility, and an automation is the easiest way to stay flexible every day.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Secret Link