evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Incorrect price conversion for Sweden (SE4) using energy-charts.info tariff

Open FuR1u5 opened this issue 4 months ago • 2 comments

Describe the bug

Title: Incorrect price conversion for Sweden (SE4) using energy-charts.info tariff

Description

I believe there is an issue with the Swedish price conversion when using the energy-charts.info tariff provider.

Setup

  • Country: Sweden
  • Electricity provider: E.ON Sweden
  • Price area: SE4
  • Tariff source: api.energy-charts.info

Observed behavior

The electricity price shown by evcc is approximately 10–11 times lower than the actual Nord Pool spot price.

Example (today):

  • evcc: 13.5 öre/kWh
  • E.ON (Nord Pool spot price): 149.10 öre/kWh

The E.ON app explicitly states that this is the pure Nord Pool spot price, excluding VAT, taxes, grid fees, and supplier surcharges.

Expected behavior

evcc should display approximately 149 öre/kWh for this period (before any optional surcharges configured by the user).

Possible cause

It looks like api.energy-charts.info returns prices in Euro cents (ct/kWh).

For example:

  • API value: 13.5 ct/kWh

  • 13.5 ct = 0.135 €/kWh

  • With an exchange rate of roughly 11 SEK/EUR, this equals:

    • 0.135 × 11 = 1.485 SEK/kWh = 148.5 öre/kWh

This matches almost exactly the 149.10 öre/kWh shown by E.ON.

Because evcc displays 13.5 öre/kWh, it appears that the numeric value is used unchanged while only the unit is changed from ct to öre, without applying the EUR → SEK currency conversion.

Could someone verify whether the Swedish implementation of energy-charts.info correctly converts prices from EUR to SEK before displaying them?

Thanks :)

Steps to reproduce

  1. Configure the grid tariff provider as energy-charts.info.
  2. Set the country/price area to SE4 (Sweden).
  3. Wait until the current spot price is fetched.
  4. Compare the price displayed by evcc with the official Nord Pool spot price (e.g. via the E.ON Sweden app or Nord Pool).
  5. evcc shows approximately 13.5 öre/kWh, while the actual Nord Pool spot price is about 149.10 öre/kWh.

Configuration details

Grid tariff:
- Provider: Energy-Charts (api.energy-charts.info)
- Market zone: SE4
- Country: Sweden
- Electricity provider: E.ON Sweden
- No additional price adjustments configured.

I attempted to provide the output of evcc dump --cfg, but on evcc 0.311.0 it only outputs the version information and does not print the redacted configuration.

Log details

[db:3 ] TRACE 2026/07/06 22:10:05 GET https://api.energy-charts.info/price?bzn=SE4&end=2026-07-07
[db:3 ] TRACE 2026/07/06 22:10:05 {"license_info":"CC BY 4.0 (creativecommons.org/licenses/by/4.0) from Bundesnetzagentur | SMARD.de","unix_seconds":[1783288800,1783289700,1783290600,1783291500,1783292400,1783293300,1783294200,1783295100,1783296000,1783296900,1783297800,1783298700,1783299600,1783300500,1783301400,1783302300,1783303200,1783304100,1783305000,1783305900,1783306800,1783307700,1783308600,1783309500,1783310400,1783311300,1783312200,1783313100,1783314000,1783314900,1783315800,1783316700,1783317600,1783318500,1783319400,1783320300,1783321200,1783322100,1783323000,1783323900,1783324800,1783325700,1783326600,1783327500,1783328400,1783329300,1783330200,1783331100,1783332000,1783332900,1783333800,1783334700,1783335600,1783336500,1783337400,1783338300,1783339200,1783340100,1783341000,1783341900,1783342800,1783343700,1783344600,1783345500,1783346400,1783347300,1783348200,1783349100,1783350000,1783350900,1783351800,1783352700,1783353600,1783354500,1783355400,1783356300,1783357200,1783358100,1783359000,1783359900,1783360800,1783361700,1783362600,1783363500,1783364400,1783365300,1783366200,1783367100,1783368000,1783368900,1783369800,1783370700,1783371600,1783372500,1783373400,1783374300,1783375200,1783376100,1783377000,1783377900,1783378800,1783379700,1783380600,1783381500,1783382400,1783383300,1783384200,1783385100,1783386000,1783386900,1783387800,1783388700,1783389600,1783390500,1783391400,1783392300,1783393200,1783394100,1783395000,1783395900,1783396800,1783397700,1783398600,1783399500,1783400400,1783401300,1783402200,1783403100,1783404000,1783404900,1783405800,1783406700,1783407600,1783408500,1783409400,1783410300,1783411200,1783412100,1783413000,1783413900,1783414800,1783415700,1783416600,1783417500,1783418400,1783419300,1783420200,1783421100,1783422000,1783422900,1783423800,1783424700,1783425600,1783426500,1783427400,1783428300,1783429200,1783430100,1783431000,1783431900,1783432800,1783433700,1783434600,1783435500,1783436400,1783437300,1783438200,1783439100,1783440000,1783440900,1783441800,1783442700,1783443600,1783444500,1783445400,1783446300,1783447200,1783448100,1783449000,1783449900,1783450800,1783451700,1783452600,1783453500,1783454400,1783455300,1783456200,1783457100,1783458000,1783458900,1783459800,1783460700],"price":[104.87,100.13,96.39,97.71,96.42,96.94,97.25,98.1,98.78,99.63,100.23,101.31,100.4,100.57,99.93,99.46,101.16,100.45,98.96,98.6,95.65,97.5,96.53,93.52,128.99,131.03,132.74,132.7,132.92,133.32,133.77,133.02,133.75,133.75,131.83,127.24,128.5,120.41,109.44,98.04,116.58,97.11,82.84,71.27,89.51,81.08,64.92,57.51,60.96,47.13,38.22,26.41,40.09,27.6,25.93,18.84,19.41,19.62,24.41,25.75,10.38,15.41,10.82,28.59,9.08,29.46,39.64,52.88,31.12,66.88,84.46,100.48,82.69,103.28,115.48,119.84,110.98,122.73,128.94,131.38,131.75,135.05,137.75,140.13,137.42,135.15,135.12,135.0,135.11,132.95,132.58,131.87,129.44,128.56,126.1,121.93,114.46,114.55,115.3,111.4,113.68,111.46,110.2,109.56,108.53,108.18,106.09,102.31,104.14,100.68,101.07,99.66,99.01,97.51,98.33,99.01,100.66,100.82,102.45,105.59,110.9,110.92,112.98,112.38,113.3,114.18,114.94,112.52,115.89,113.44,111.1,107.14,115.39,106.76,96.21,81.24,84.89,69.31,62.9,58.93,61.01,49.94,50.42,59.91,45.6,50.07,43.02,33.96,52.33,52.24,52.66,47.25,30.22,34.79,38.81,39.28,35.27,42.36,47.21,51.38,24.4,34.52,29.07,26.67,23.06,25.64,20.79,21.21,15.84,45.61,63.11,80.32,69.01,82.61,89.28,100.98,95.11,94.86,101.7,98.89,99.0,96.86,97.32,102.63,101.61,98.12,88.96,87.1,89.16,86.98,86.64,86.99],"unit":"EUR / MWh","deprecated":false}

What type of operating system or environment does evcc run on?

Linux

External automation

  • [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • [ ] I have verified that the issue is reproducible with the latest nightly build

Version

0.311.0

FuR1u5 avatar Jul 06 '26 20:07 FuR1u5

The API returns the euro price (https://api.energy-charts.info/#/prices/day_ahead_price_price_get)

Returns the day-ahead spot market price for a specified bidding zone in EUR/MWh.

Since there is no currency conversion in evcc, the only way I see is that you set up a formula that is doing the conversion.

StefanSchoof avatar Jul 07 '26 05:07 StefanSchoof

Claude agrees :) Will make this clearer in the template.

andig avatar Jul 07 '26 06:07 andig