[FEATURE] Support Separate Import and Export Electricity Prices #326
Replies: 4 comments 5 replies
|
Thanks for the suggestion! 🙌 Here's how this works:
If your idea is very specific to your setup, it may not make it into the core integration — I'll try to suggest a workaround in that case. Feel free to discuss details or alternatives below. |
|
If I understand the feature request correctly: this is already the case in Belgium for a few years. We have in the "fixed rate" or "variable rate" contracts, depending on the energy supplier, up to 4 different rates, prices per kW:
T1 = weekdays from 07:00 - 22:00 Our energy meter has a telegram to tell in with tariff mode we are now. |
|
I created several automations and other scripts that build a battery strategy on this principle. Many of the scripts, including ones that implement, use and build on the sensors you describe here, are in my request #237. |
|
Hi, Thanks for the additional examples from Belgium and the Netherlands. I will implement separate import and export electricity prices in Omnibattery 1.5.0. The intended model is two optional price inputs:
Existing single-price configurations will remain compatible through a fallback. Before I finalize the implementation, could you please confirm:
This will allow me to define the backward-compatible behavior correctly. |
Uh oh!
There was an error while loading. Please reload this page.
Area of the proposal
Energy management or control strategy
What problem would this solve?
In the Netherlands, the net metering scheme (salderingsregeling) will end on January 1, 2027. This fundamentally changes the economics of charging and discharging a home battery.
From that date, the actual import price paid for electricity consists of:
market price + supplier/import fee + energy tax + VAT
When exporting electricity to the grid, the compensation is different:
market price (including VAT) - supplier/export fee
The energy tax is therefore no longer recovered when electricity is exported.
This creates a significant and structural difference between the price of importing electricity and the value of exporting it. The difference can be much larger than the supplier's import/export fee alone.
For battery control, this distinction is important. A battery should not necessarily charge when the market price is low and discharge when the market price is high. The relevant question is the actual economic cost of importing electricity versus the actual value of exporting electricity.
Using a single electricity price sensor for both directions makes it difficult for Omnibattery to make the correct economic decisions in this situation.
Proposed solution
Introduce separate sensors/entities for:
Electricity import price — the actual all-in price paid when importing electricity from the grid.
Electricity export price — the actual compensation received when exporting electricity to the grid.
Omnibattery could then use these two values independently in its energy management and charge/discharge strategy.
Ideally, the sensors should be configurable or supplied by the Home Assistant integration/provider, since taxes, VAT and supplier fees can vary between countries and energy contracts.
This would also make the solution future-proof for other markets where import and export prices differ.
Example use case
For example, assume a dynamic market price of €0.10/kWh excluding VAT, with an import fee of €0.01/kWh and an export fee of €0.01/kWh.
Using the current Dutch electricity tax as an illustrative example:
Import price:
Market price: €0.1000/kWh
Import fee: €0.0100/kWh
Energy tax: €0.09161/kWh
Subtotal excluding VAT: €0.20161/kWh
21% VAT: €0.04234/kWh
Actual import price: €0.24395/kWh
Export price:
Market price: €0.1000/kWh
21% VAT: €0.02100/kWh
Market price including VAT: €0.12100/kWh
Export fee: €0.0100/kWh
Actual export value: €0.11100/kWh
This means that the same kWh has an import cost of approximately €0.244/kWh, but an export value of only €0.111/kWh.
The difference is therefore approximately €0.133/kWh.
Who would benefit from this?
Most Omnibattery users
Alternatives or workarounds
A workaround is to create custom template sensors in Home Assistant that calculate the import and export prices separately and then try to make Omnibattery use those values.
However, this requires users to implement their own calculations and there is currently no clear way to provide Omnibattery with two independent prices for its energy management strategy.
Additional context
This is becoming particularly relevant in the Netherlands because the salderingsregeling ends on January 1, 2027.
I believe separate import and export price sensors would provide a much better foundation for future battery optimization strategies, not only for the Dutch market but for any country or energy contract where buying and selling electricity have different effective prices.
Confirmations
All reactions