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!

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å

A lot has changed since the original post. Quick highlights from v1.2.0 through v1.13.0:

Now invoice-accurate

Six BKK invoices replayed hour-by-hour from October 2025 through April 2026. Every nettleie line matches within 0,01-0,02 kr. With an energy meter sensor configured, monthly consumption matches the DSO invoice to the watt-hour (same numbers as Elhub). Spot price, strømstøtte and Norgespris-compensation are checked against the same source data.

Bugs that moved real money

  • Spot price VAT handling. HA-core Nordpool delivers ex. VAT, the integration assumed incl. VAT. Sør-Norge users on spot saw 25 % off in strømstøtte and Norgespris comparison. Auto-migrated. (v1.12)
  • NO3 VAT classification. ~14 DSOs in Trøndelag and Møre og Romsdal were treated as VAT-exempt by mistake. (v1.11)
  • Double-counted Forbruksavgift and Enova-avgift in monthly totals, about 150 kr/month too high for a typical household. (v1.7)
  • Kapasitetstrinn used instant power instead of hourly energy average. Now matches how the DSO derives the step from Elhub. (v1.7)
  • Tariff corrections for Lnett, Lede, Elvia 2026, triple-verified against official price lists. (v1.13)
  • Spot sensor validation in config flow. If you point the spot price input at a kr-sensor or a kWh meter, setup now rejects it instead of accepting it silently. Previously some Elvia users ended up with strømstøtte at 182 469 kr/month. (v1.13)

More robust

  • Survives HA restarts and long downtime. Accumulators persist to disk, consumption in the restart window is no longer lost. Before the fix: 36 % of a month's Norgespris compensation went missing on a real setup. (v1.13)
  • Energy meter as input (v1.13). Point to your kWh meter (Pow-U, Tibber Pulse, ESPHome). Uses register deltas instead of Riemann-summing the power sensor. This is now the recommended setup; without it expect 1-5 % drift from the invoice over a month.
  • Caches spot price and provider price across sensor dropouts, no more holes in the graph. (v1.4, v1.5)

New features

  • Solar export for plusskunder: exported kWh, income at spot, net cost. (v1.8)
  • Fritidsbolig and hytte support with correct kWh caps for strømstøtte and Norgespris. (v1.6)
  • Accumulated cost sensor for the Energy Dashboard, includes capacity step. (v1.9)
  • Norgespris compensation in kroner, directly comparable to the invoice line. (v1.8)
  • Per-DSO weekend tariff and VAT zone overrides (v1.11), plus per-DSO helligdager_ekstra so BKK gets 24.12/31.12 as low-tariff while other DSOs stay on default holidays until invoice data confirms otherwise (v1.13).

Trust the numbers

  • Invoice verification button on the "Previous month" device. Generates a ready-to-paste report you can submit if your DSO is not yet in the verified table.
  • Signed releases, SHA256 plus gh attestation verify on every zip.

Help us verify your price area

So far only BKK (NO5) is verified hour-by-hour against real invoices. If you have an invoice + Elhub export from NO1, NO2, NO3 or NO4, please send them in. You do not need to run Home Assistant or the integration to contribute. Guide here: Stromkalkulator/docs/fakturaer/bidra-med-faktura.md at 6a1c43877360b124cfcfc141f9458bb114c9f017 · fredrik-lindseth/Stromkalkulator · GitHub

All release notes: Releases · fredrik-lindseth/Stromkalkulator · GitHub

VIs there a way to set the nettleie price based on a number I get from my grid company api? Both day/nigth (energiledd) including all taxes and the «kapasitetstrinn»?