Strømkalkulator — True electricity cost for Norway (all grid companies)

The problem

If you’re in Norway and use the Energy Dashboard, you’ve probably noticed that the cost shown is just the spot price. That’s only part of what you actually pay — grid tariffs (nettleie), government fees, power support (strømstøtte), and VAT are all missing.

Setting this up manually with template sensors is painful: day/night rates, public holidays, capacity tiers based on your top-3 peak hours, regional VAT rules, and the power support formula that kicks in above 96.25 øre/kWh.

What Strømkalkulator does

It calculates your actual electricity cost per kWh, ready to drop into the Energy Dashboard:

  • Grid tariff (nettleie) — energy rate (day/night) + capacity tier, from your specific grid company
  • Power support (strømstøtte) — automatic calculation (90% above 96.25 øre/kWh)
  • Government fees — consumption tax + Enova fee, with correct VAT per region
  • Total price — one sensor with everything included
  • Monthly tracking — consumption split by day/night tariff, with last month stored for invoice verification
  • Norgespris comparison — see if the government’s fixed-price deal would save you money

All Norwegian grid companies are supported with 2026 rates. The integration detects your VAT zone automatically and handles grid company mergers.

Screenshots

Installation

Available through HACS:

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

You need two input sensors:

  • a power sensor (W) from your HAN port / Tibber Pulse / P1 reader
  • a spot price sensor from the Nord Pool integration.

Setup: Settings → Devices & Services → Add Integration → Strømkalkulator → pick your grid company → pick your sensors → done.

Use with Energy Dashboard

Add your kWh consumption sensor to the Energy Dashboard and select “Totalpris inkl. avgifter” as the price entity. Now your dashboard shows what you actually pay.

Links

GitHub

Feedback and contributions welcome — especially if you spot incorrect rates for your grid company!

2 Likes

This is great. I just have an issue that alot of the sensors are just called “Monetary Balance” and its hard to understand what is what.

This looks amazing, but i’m having some problems.
I cant find “Norgesnett” or “Glitre”.
And when I tried “Egendefinert” it would not let me press “send inn”.

I hadn’t tried it properly in English myself as my HA is set to Norwegian. I fixed all the names with the version just released.

I recently merged Norgesnett into Glitre and Glitre was in the list, but the list was not in alphabetical order. Not it is. Great feedback.

Not sure why “egendefinert” failed, if you have access to the logs in your HA you can grep -i stromkalkulator /config/home-assistant.log and Github - New Issue and ill fix it

I found the bug and fixed it and created another release Release v1.3.0 · fredrik-lindseth/Stromkalkulator · GitHub

You are good users finding and reporting bugs :smiley:

I have a request. I notice that the total price/kwh is calculated so that the capasity-price is estimated into it. In my opinion this is not accurate enough, so I was wondering if you could add a calculation for a total price/kwh where you only include the power price + grid price?

Good idea. Fixed in the latest version / v1.4.0

Thanks. There are a few more quirks. When selecting norgespris, your inegration stops calculating strømstøtte, and therefor the possibility to compare the two goes away

As you can see in my screenshot “strømstøtte” shows 0, “spotpris etter støtte” just shows the spotprice, “total strømpris etter støtte” shows, as far as i can tell norgespris+gridTariff+estimated capacity cost.

Well, you can see the rest.

Edit: all in all I find the names/numbers a bit confusing. It’s hard to get a grasp of what they actually represent.

I have a release fixing that soon.

For the names… Im open to suggestions. There are a tons of sensors and the names cant be too long to appear properly in HA, but I have a Stromkalkulator/docs/SENSORS.md at 53c478a2bca139886880f714da86c076ff5fde6d · fredrik-lindseth/Stromkalkulator · GitHub (and english version) with descriptions of each sensor.

It would be nice if there were calculations based on power sold as well. Many of us have dropped “norgespris” to be able to sell at a possible higher price in the summer :slight_smile:
Would be nice to see the difference in power sold, norgespris/strømstøtte.

This integration will simplify ALOT of my energy-setup :smiley: nice!

For BKK:
Is the Norgespris + grid-tarriff wrong?

(Valid from 1.1.2026: day: 46.13øre/kwh)

This should be 50 (norgespris) + 46.13 = 96.13, right?

What specific stuff are you missing? I can add some disabled sensors that you can enable. I already have too many so a few more wont hurt :crazy_face: (30 enabled + 12 disabled by default)

Maybe I’m misunderstanding your question, but the 1.18 NOK/kWh is correct. “Total strømpris (Norgespris)” includes three components:

  1. Norgespris: 50 øre/kWh
  2. Energiledd (grid tariff): 46.13 øre/kWh (day rate for BKK)
  3. Kapasitetsledd (capacity charge): spread per kWh

BKK charges a monthly capacity fee based on your peak power usage (e.g. 155 kr/mnd for 0-2 kW, 250 kr/mnd for 2-5 kW). The sensor divides this across all hours in the month. With the 0-2 kW tier: 0.50 + 0.4613 + (155 / 30 / 24) = 1.18 NOK/kWh.

The attributes on the sensor show the breakdown (norgespris, energiledd, kapasitetsledd_per_kwh) so you can verify each part.

One caveat: this sensor shows the right marginal cost at any point in time, but the Energy Dashboard monthly sum won’t match your invoice exactly. Kapasitetsledd is a fixed monthly fee, and spreading it per kWh only sums back correctly if your consumption happens to be exactly days × 24 kWh. For invoice comparison, use the “Månedlig total” sensor instead, which adds kapasitetsledd as a flat amount. I’ve verified that one against real BKK invoices for February and March 2026, all line items match within 0.01 kr.

It would be great to have a sensor that shows how much money you have earned from selling electricity (for example, from solar power).

And another sensor that shows the difference in this amount compared to if you had chosen “Norgespris”.

This is because I hope — and believe — that I can earn/save more by selling electricity without selecting “Norgespris”.

With these sensors, it would also be possible to add an extra sensor for the total cost by subtracting the new sensor from the existing one (purchases minus sales).

Ahh that’s the reason then, I always add the Kapasitetsledd as a lump-sum instead of thinking of it as an extra ‘fee’ on the kwh price, but then I know the reasoning for that :slight_smile: thanks!

Quite a few of the sensors in this integration is going to replace a few of the one I already have, but i think I prefer a ‘clean’ ‘raw’ price

Nice setup. You’re already doing what my “Månedlig total” sensor does: kapasitetsledd as a lump sum, not spread per kWh.

Here’s what maps to your current sensors:

Your sensor Strømkalkulator equivalent
Strøm Strømpris per kWh (spot + energiledd, no kapasitetsledd)
Strøm + avgifter Månedlig nettleie total (energiledd + kapasitetsledd + avgifter)
Kapasitetsledd Kapasitetstrinn (shows kr/mnd directly)
Totalt Månedlig total (nettleie complete)
Forventet regning Estimert månedskostnad (linear projection)

Coming soon: an accumulated cost sensor (stat_cost mode) that tracks total cost including kapasitetsledd as a time-based increment instead of per-kWh. That one gives the Energy Dashboard a correct monthly total without the kapasitetsledd spreading issue.

Hei, jeg får ikke til dette. Jeg får ikke opp noe på “Spotpris-sensor (NOK/kWh)”. Så det stopper der hos meg. Jeg har nordpool installert. Hva gjør jeg feil?

Takk for svar

Det var jeg som la på filter device_class: monetary, men Nordpool-integrasjonen setter ikke denne device-klassen på sine sensorer. Resultatet var “No items available” i dropdown-en, selv om Nordpool var installert og fungerte. Fikset det nå

1 Like