Metering · Battery
Solar self-sufficiency: check it against the meter
Why a self-sufficiency figure can look too good, and how a check against the meter shows it.
Read article →Article · Netherlands · Metering
On 1 January 2027 the Netherlands ends net metering (salderen). What that costs a household comes down to one number that almost every solar system already measures and hardly anyone looks at: the electricity flowing back into the grid. Home Assistant reads it at the meter's P1 port, works out the loss with your own tariffs and switches loads on exactly when there is a surplus.
Until 31 December 2026, Dutch households may offset the electricity their solar panels feed into the grid against the electricity they draw, once a year. The government explains it with an example: a household that exports 2,500 kWh in summer may use 2,500 kWh in winter without paying energy costs, network costs or energy tax for it. Anything exported beyond the household's own consumption is already only paid a compensation today.
From 1 January 2027 this offsetting ends completely, with no phase-out. Power may still flow into the grid, and the supplier pays a compensation for every exported kilowatt-hour. Until 2030 it must be at least 50 % of the kale leveringstarief, the electricity price excluding taxes. Suppliers may also charge feed-in costs (terugleverkosten), but only costs they incur in processing the exported electricity. The Autoriteit Consument en Markt (ACM) supervises this.
And one sentence that decides the technical approach in the house: electricity a household generates and uses directly carries no taxes and no supplier costs.
Until the end of 2026 an exported kilowatt-hour is worth as much as an imported one, as long as no more flows back over the year than the household uses. From 2027 that splits into three different values:
The gap between "exported" and "used yourself" per kilowatt-hour is:
price per imported kWh (incl. taxes) − feed-in compensation + feed-in costs
How large it is for you is in your contract: import price, compensation and feed-in costs differ from supplier to supplier. That is why this article gives no example amounts but shows how Home Assistant calculates with your own figures.
The Dutch smart meter has a standardised data port, the P1 port. It provides import and export as meter readings, split into the tariff periods T1 and T2, plus the current power. Two routes lead into Home Assistant:
How common this is shows in the Home Assistant statistics: the HomeWizard integration runs in 20,383 installations worldwide, DSMR in 5,801. From the Netherlands, 39,315 installations share their statistics.
In the Energy dashboard (Settings → Dashboards → Energy → Electricity grid) you enter the meter reading for import and the one for export. From then on you see, hour by hour, when power leaves the house.
Net metering only ever applied up to the household's own consumption. What is affected is therefore the smaller of the two annual amounts, export or import. Three helpers and one sensor are enough to keep track of it:
template:
- sensor:
- name: "Loss without net metering"
unit_of_measurement: "EUR"
state: >
{% set imp = states('sensor.import_year') | float(0) %}
{% set exp = states('sensor.export_year') | float(0) %}
{% set price = states('input_number.import_price') | float(0) %}
{% set comp = states('input_number.feed_in_compensation') | float(0) %}
{% set cost = states('input_number.feed_in_costs') | float(0) %}
{{ (([imp, exp] | min) * (price - comp + cost)) | round(2) }}
The sensor names depend on your helpers. The sensor shows the amount for the current year and grows with every sunny hour. It is an approximation: standing charges and per-connection network costs do not change, and if your contract has day and night rates, use an average import price.
The calculation shows that every kilowatt-hour that does not leave counts. Home Assistant already has the control for it: it sees at the P1 port within seconds when power flows to the grid and can react. An example with the HomeWizard power sensor, where export appears as negative:
alias: "Surplus: switch on the boiler"
triggers:
- trigger: numeric_state
entity_id: sensor.p1_meter_power
below: -1500
for: "00:05:00"
actions:
- action: switch.turn_on
target:
entity_id: switch.boiler
If more than 1,500 W flows to the grid for five minutes, the boiler switches on. Your entities will have different names; you find them under Settings → Devices & services. Choose the threshold according to the device's power, otherwise it draws grid power when it starts. A second automation switches off again when import begins. With a DSMR cable there is no signed sensor but two separate sensors for import and export power.
Which loads are suitable differs from house to house. The big ones are hot water, heat pump, car and a home battery; the articles below show how to connect them to Home Assistant. If you have several, you need an order of priority so that they do not all start at once and draw grid power again.
The calculation above applies to a fixed-price contract. With a dynamic tariff the price for import and export changes every hour, and the question "use it or export it" then also depends on the time of day. On the compensation after 2030, the government only says that the minimum applies until 2030. And: this article does not replace a tariff comparison. Your contract is what counts.
On 1 January 2027. Until 31 December 2026 exported electricity may still be offset against consumption, after that it may not. There is no gradual phase-out.
A compensation from your supplier that must be at least 50 percent of the electricity price excluding taxes until 2030. Feed-in costs may be deducted, but only costs the supplier incurs in processing the electricity. The exact values are in your contract.
Yes, through the HomeWizard Energy integration with the HomeWizard P1 Meter, or through the DSMR Smart Meter integration with a serial P1 cable or network adapter. Both provide import and export per tariff for the Energy dashboard.
The net metering rules come from the Dutch government, the details on the integrations from the Home Assistant documentation. Check the current status before you decide anything on that basis.
This article is not tax or tariff advice. What counts is your contract and the current legal situation in the Netherlands.