Skip to main content

Nettleie (Norway) smart home integration, free and open source

Nettleie (Norway) integration for Gladys Assistant

Norwegian grid tariffs (nettleie) by grid company, capacity steps, strømstøtte and Norgespris.

Unofficial integration: it prices your electricity in Gladys with the grid tariff of your Norwegian grid company (nettleie), the public charges and, if you want, the spot price with the strømstøtte or Norgespris. It is not affiliated with any grid company, with NVE, with Hva koster strømmen.no or with the fri-nettleie project.

This integration has never been tested with a real Gladys contract and a real meter in Norway: the prices are checked against the published tariffs by its tests, not against a real bill. Tell us what you see.

What it does​

  • A contract template "Nettleie (Norway)" (delegated pricing, Gladys 5.3 or later): Gladys sends the consumption of each half hour, the integration answers its cost in NOK, VAT included:
    • the energy part (energiledd) of your company's tariff for that local hour, day type (working day, weekend, public holiday) and month;
    • the consumption tax (forbruksavgift) and the Enova levy (1 øre/kWh), and 25 % VAT in the south zone;
    • with the spot supply: the hourly day-ahead price of your area plus your supplier's markup, minus the strømstøtte (90 % of the hourly spot price above 77 øre/kWh without VAT in 2026, 75 øre in 2025, at most 5,000 kWh a month, households only);
    • with the Norgespris supply: 40 øre/kWh without VAT plus your markup, within 5,000 kWh a month (1,000 for a holiday home), the spot price beyond. The scheme runs from 1 October 2025 to 31 December 2029, but its price is only set for 2025 and 2026 (40 øre): from 1 January 2027 the half hours get no cost until an update of the integration carries the new price.
  • One device per contract (in Discovery once the contract exists): the price now (NOK/kWh), the capacity peak of the month (kW), the capacity step reached (NOK/month, VAT included) and the threshold of the next step (kW): enough for a scene that warns before a new step.
  • A Test button: the company found, the date of its data, the price now, the capacity of the month, and a comparison of today's tariff with what NVE holds.

The capacity step (kapasitetsledd)​

Every Norwegian grid company bills a monthly fixed part by steps of power, most of them from the mean of the three highest hours of the month, on three different days. The Gladys pricing engine cannot bill a step: its "demand" component is a price per kW (a straight line, not steps), and a delegated cost is the energy only. So the integration does not hide it in the kWh price; instead:

  • the contract device shows the peak of the month (computed from the half-hour consumption Gladys sends for pricing: kWh of each clock hour, mean of the three highest days) and the step it reaches;
  • the template has an optional "Capacity step per month" input, counted by Gladys as a fixed monthly amount: enter the step you expect if you want it in the totals.

Steps computed: the common rule (TRE_DØGNMAX_MND) and the highest hour of the month (MND_MAX). Companies billing on the five highest weeks of the year or on the fuse size (FEM_VEKTET_ÅR, OV_TREFASE) have no computed step: the Test button says so. The peak only counts the half hours Gladys has priced: a gap in the meter data lowers it.

Set up​

  1. Install the integration. Nothing to fill in its configuration.
  2. In Energy > Contracts, create a contract on your main meter with the "Nettleie (Norway)" template and fill its inputs:
    • Grid company: its name ("Elvia"), its fri-nettleie file name (the list below), its GLN or its organisation number;
    • Customer group: household, or holiday_home (fritidsbolig);
    • Tax zone: south, north (Nordland, Troms: no VAT) or tiltakssone (Finnmark and the Nord-Troms municipalities: no VAT, no consumption tax);
    • Electricity supply: grid_only, spot or norgespris, and the price area (NO1 to NO5) for the last two (required: no default);
    • Supplier markup (påslag, NOK/kWh without VAT), capacity step and other monthly fees (NOK/month with VAT), all optional.
  3. In Discovery, add the contract device if you want its sensors.
  4. Press Test in the configuration screen.

A wrong input never becomes a default: the half hours get no cost, the status names the input, and Gladys asks again at its next run once it is fixed. The status also warns when the tax zone does not match the county of the company, and when the tariff in force dates from an earlier year and the company's file was not checked this year (its prices are still used, not verified this year). The monthly caps of the strømstøtte and Norgespris count the kWh Gladys sends since the start of the month, or since the contract start when later: start the contract on the 1st of a month. A company with several tariffs at once (one file has them in its history) asks for the Tariff name: the status lists the choices.

Where the data comes from, and how fresh it is​

  • Grid tariffs and tax rates: fri-nettleie (https://github.com/kraftsystemet/fri-nettleie), a community collection of the tariffs of every Norwegian grid company, by Fri nettleie / kraftsystemet, data under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). The integration ships a copy (commit 58a0d20, 10 November 2026) and, once a day, reads again the files of the companies your contracts use (conditional request, nothing sent but the file name; switch off in the configuration). The status and the Test button show the date of the data (the "sist_oppdatert" of the company's file). Changes made: the tariffs are checked field by field, the yearly capacity prices are shown per month, taxes and VAT are added.
  • Comparison: NVE, the tariffs the companies report to the regulator (https://nettleietariffer.dataplattform.nve.no), only by the Test button, at most once per company and hour. Contains data under the Norwegian Licence for Open Government Data (NLOD) made available by NVE (https://data.norge.no/nlod/). NVE is sometimes months behind: the prices always follow fri-nettleie.
  • Spot prices: Strømpriser levert av Hva koster strømmen.no (https://www.hvakosterstrommen.no, open API, free for any use; only for the spot and Norgespris supplies). Hourly ENTSO-E day-ahead prices converted to NOK by the site with the Norges Bank rate of the day: they can differ slightly from the NOK prices of Nord Pool and of your bill. History from 1 December 2021; a day is kept only whole (23, 24 or 25 hours), for 62 days. The pricing never waits for them: a half hour whose spot price is not held yet gets no cost at once, the day is read in the background and Gladys prices it at its next run. Gladys needs a cost for every half hour of a request: a day the source does not have leaves the half hours not yet priced of the same billing period without cost (Gladys catches up 31 days at most), and the status names the day. Such a day is asked again every 6 hours.
  • Strømstøtte and Norgespris rules: from the regulation (FOR-2025-09-08-1791) and the government pages, checked against the Strømkalkulator project (MIT). They are written in the integration with their dates: after 2026, or for a year whose tax rates fri-nettleie has not published yet, the half hours get no cost (never a guessed one) until the data is there. The tax rates come from a file of fri-nettleie's collection guide (satser.yml): if the project moves it, the shipped rates stay and the following year has no cost until an update.

Good to know​

  • All times are Norway's local time (Europe/Oslo). On the night the clocks go back, both 02:00 hours are "hour 2", as the companies count.
  • The strømstøtte is computed hour by hour on the hourly spot price; a half hour takes the price of its hour (Gladys sends half hours).
  • A total below zero (negative spot price) counts as zero: Gladys does not take a credit.
  • The integration sends nothing about you anywhere: it reads public files.

Grid companies​

The input accepts the file name (first column), the name, the GLN or the organisation number. Data date of the copy shipped with this version.

File nameCompanyOrganisation number (NVE)Data of
alutAlut AS9253366372026-03-07
area-alleArea Nett AS - Alle områder9239933552025-12-20
area-legaArea Nett AS - Område 3 - Lega9239933552025-12-20
area-luostejokArea Nett AS - Område 2 - Luostejok9239933552025-12-20
area-nettinordArea Nett AS - Område 1- NettiNord9239933552025-12-20
arvaArva AS9791519502024-10-22
askerAsker Nett9177431932026-09-30
barentsnettBarents Nett AS9710588542026-10-08
bindalkraftlagBindal Kraftlag Nett9531816062025-10-22
bkkBKK AS9769448012025-12-12
bomlokraftnettBømlo Kraftnett AS9239341382025-12-20
breheimBreheim Nett9245279942025-12-20
denettDE Nett AS9248626022025-12-25
elinettElinett AS9793794552026-08-18
elmeaElmea AS Nett9863478012025-10-22
elvenettElvenett AS9794974822026-08-23
elviaElvia AS9804896982026-06-05
enidaEnida AS9183127302025-10-22
etnaEtna Nett AS8827830222026-10-09
everketEverket AS9667315082025-09-21
fagneFagne AS9156358572025-10-22
fjellnettFjellnett AS9233542042026-08-18
foereFøre AS9255497382025-10-22
foieFøie AS9715897522026-10-08
glitreGlitre Nett AS9829740112026-09-17
griugGriug AS9536817812025-12-25
haringnettHaringnett AS9237893242026-03-07
havnettHavnett AS9240041502025-02-24
holandogsetskogelverkHøland og Setskog Elverk AS9234889602026-08-18
indrehordalandkraftnettIndre Hordaland Kraftnett AS9194150962026-05-16
jaereneverkJæren Everk AS8249149822025-09-01
kenettKE Nett AS9772857122025-12-20
kliveKlive AS9234365962025-10-23
kystnettKystnett AS9231526012026-09-21
ledeLede AS9794226792026-04-15
lineaLinea AS9174247992025-11-12
linjaLinja AS9126315322026-06-19
linja-nordLinja AS - Nord (Mørenett) (old file)-2025-11-22
linja-sorLinja AS - Sør (old file)-2025-11-22
lnettLnett AS9800384082025-12-08
lucernaLucerna AS9828973272026-10-09
lysnaLysna AS9238337062026-08-18
mellomMellom AS9256683892026-08-29
meloyMeløy Nett AS9191731222025-12-20
midtnettMidtnett AS9178562222026-09-21
mostraumMostraum Nett AS9335848012026-11-09
neteraNetera AS9243306782026-03-07
nettselskapetNettselskapet AS9216886792026-05-25
noranettNoranett AS9854111312025-11-22
noranett-andoyNoranett Andøy AS9216805542025-12-20
noranett-hadselNoranett Hadsel AS9179835502025-12-20
nordvestNordvest Nett AS9808245862026-06-20
norefjellNorefjell Nett AS8247014822026-08-18
norgesnettNorgesnett AS (old file)-2026-10-09
rakkestadenergiRakkestad Energi AS Nett (old file)-2025-07-04
rknettRK Nett AS9250178092026-09-13
rnettR-Nett AS9250679112026-05-30
romsdalsnettRomsdalsnett AS9263778412026-10-08
snettS-NETT AS9238191772025-09-19
soraurdalenergiSør Aurdal Energi AS Nett9977120992026-08-23
stannumStannum AS9249403792025-10-22
stramStram AS9143852612024-12-10
straumenStraumen Nett AS9253548132024-12-28
straumnettStraumnett AS9226944352026-04-15
sygnirSygnir AS9246192602026-10-08
tendranettTendranett AS9189993612025-12-20
tensio-tnTensio TN AS9888076482026-06-19
tensio-tsTensio TS AS9786310292026-06-19
tinfosTinfos AS Nett9167634762024-11-24
tnettTnett AS9258033752026-08-23
uvdalUvdal Kraftforsyning9676701702025-12-20
vangVang Energiverk AS8243680822024-11-09
vestallVestall AS9681681342025-12-20
vestmarVestmar Nett AS9793999012025-12-20
vevigVevig AS9163199082025-11-12
viermieViermie AS9198844522025-12-30
vissiVissi AS9216830572024-11-06

Configuration settings​

These are the settings Nettleie (Norway) asks for in its configuration screen in Gladys.

SettingTypeRequiredDescription
Norwegian grid tariffssectionNoThis integration prices your electricity with the grid tariff of your company: create a contract with the "Nettleie (Norway)" template in Energy > Contracts and enter your grid company there. Tariffs: fri-nettleie (kraftsystemet, CC BY 4.0), shipped with the integration and read again once a day from GitHub. Spot prices (only for the "spot" and "Norgespris" supplies): Strømpriser levert av Hva koster strømmen.no (ENTSO-E day-ahead, in NOK). The capacity step (kapasitetsledd) is shown by the contract device, not added to the costs: see the documentation.
Read the tariffs again every daybooleanNoOnce a day, the files of the grid companies your contracts use (and the tax rates) are read again from the fri-nettleie repository on GitHub. Off: only the data shipped with this version.

How to install Nettleie (Norway) in Gladys​

  1. In Gladys, open Integrations: Nettleie (Norway) appears in the catalog, next to the native integrations, with a community badge.
  2. Click Install. Gladys pulls the Docker image (ghcr.io/lm1lc3n7/gladys-nettleie:0.1.1), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration).
  3. Open the Configuration screen of the integration, fill in the settings, and save.
  4. You can also install it directly from its repository URL: https://github.com/LM1LC3N7/gladys-nettleie.

Nettleie (Norway) requires Gladys >=5.3.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.

Not running Gladys yet? It is free and open source: follow the installation guide to get started.

About external integrations​

Nettleie (Norway) is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by LM1LC3N7, not by the Gladys core team.

Subscribe to the Gladys Assistant newsletter

A few emails per month about new releases and project news. Sent by Pierre-Gilles Leymarie, founder of the project. Unsubscribe anytime 🙂