From 6f3ba88394c41e6536ca36740e5f02d67251caad Mon Sep 17 00:00:00 2001 From: Legolas-2025 Date: Mon, 6 Apr 2026 03:19:58 +0200 Subject: [PATCH] Add negative price provider fee support in VERSION.md Introduced support for negative provider fees with a new secret key and updated price calculation methods for both positive and negative prices. --- VERSION.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/VERSION.md b/VERSION.md index 2e086f3..1246454 100644 --- a/VERSION.md +++ b/VERSION.md @@ -1,5 +1,25 @@ # EPrices – Version History +## v1.1 — 2026-04-06 + +### Negative price provider fee + +Added separate provider fee support for negative spot prices via a new +`eprices_neg_prov_fee` secret key. Positive and negative market prices +now use independent fee multipliers, correctly modelling contracts where +the provider's fee structure differs between the two cases. + +Price calculation: +- Positive: `(raw / 1000) × (1 + prov_fee) × (1 + vat_rate)` +- Negative: `(raw / 1000) × (1 - neg_prov_fee) × (1 + vat_rate)` + +VAT is applied to both, consistent with net billing where VAT is calculated +on the monthly net sum (linear equivalence applies). + +See `CHANGELOG.md` for full implementation details. + +--- + ## v1.0 — 2026-04-05 First public release. @@ -49,4 +69,4 @@ persistently in ESP32 NVS flash so they survive reboots without re-fetching. | `secrets.yaml` | Local secrets — not committed to git | | `CHANGELOG.md` | Full sensor and entity ID reference for v1.0 | | `README.md` | Installation guide and full sensor reference | -| `ENTSO-E-PRICES-MIGRATION.md` | Optional — migration guide from the predecessor project | \ No newline at end of file +| `ENTSO-E-PRICES-MIGRATION.md` | Optional — migration guide from the predecessor project |