Advertisement
oz9els

Nordpool config reworked

Dec 2nd, 2022 (edited)
1,068
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 5.02 KB | Source Code | 0 0
  1. # -------------------------
  2. #nordpool:
  3.   - platform: nordpool
  4.    
  5.     # Should the prices include vat? Default True
  6.     VAT: True
  7.  
  8.     # What currency the api fetches the prices in
  9.     # this is only need if you want a sensor in a non local currency
  10.     currency: DKK
  11.  
  12.     # Option to show prices in cents (or the equivalent in local currency)
  13.     price_in_cents: false
  14.  
  15.     # Helper so you can set your "low" price
  16.     # low_price = hour_price < average * low_price_cutoff
  17.     # low_price_cutoff: 0.95
  18.     low_price_cutoff: 0.5
  19.  
  20.     # What power regions your are interested in.
  21.     # Possible values: "DK1", "DK2", "FI", "LT", "LV", "Oslo", "Kr.sand", "Bergen", "Molde", "Tr.heim", "Tromsø", "SE1", "SE2", "SE3","SE4", "SYS", "EE"
  22.     region: DK2
  23.  
  24.     # How many decimals to use in the display of the price
  25.     precision: 2
  26.  
  27.     # What the price should be displayed in default
  28.     # Possible values: MWh, kWh and Wh
  29.     # default: kWh
  30.     price_type: kWh
  31.  
  32.     # This option allows the usage of a template to add a tariff.
  33.     # now() always refers start of the hour of that price.
  34.     # this way we can calculate the correct costs add that to graphs etc.
  35.     # The price result of the additional_costs template expects this additional cost to be in kWh and not cents as a float
  36.     # default {{0.0|float}}
  37.     #
  38.     # Variabel nettarrif og afgift frem til år 2030 ...
  39.     # Alle priser i følgende er øre ex. moms. (Bortset fra NetTarif, som er med moms)
  40.     #
  41.     # Jeg bor i Radiusområde, så nettarifferne er taget fra deres hjemmeside
  42.     # Jeg har modstrøm som leverandør og i min aftale betaler jeg 10 øre på spotprisen.
  43.     # modstrøm (cost + 10 øre/kWh ) => customCost = 10
  44.     #
  45.     # hourly_fixed_cost = Transmission + Systemtarif + Balancetarif
  46.     # hourly_fixed_cost = 4.9 øre + 6.1 øre + 0.229 øre  + moms  
  47.     #                   = 11.229 + moms = 14.03625
  48.     # Afgifterne er rettet til pr. oktober 2022 og med finansministeriets takster og ændreinger af do frem til 2030
  49.     # bemærk de specielle 0.8 øre i de første 6 måneder af 2023 ... det er rigtigt !!!
  50.     #
  51.     # Radius Nettarif er uden moms i de gamle prislister, men med moms i de nye.
  52.     # Så de gamle tal ændres til:
  53.     #  30.03 -> 37.5375
  54.     #  76.51 -> 95.6375
  55.     # Håber I kan bruge det - dette er mit bud på en løsning ...
  56.     # Michael Gylling Hviid
  57.     #
  58.  
  59.  
  60.     additional_costs: '{% set s = {
  61.     "hourpeaks":[ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0],
  62.                [0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,1,1,1],
  63.                [0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,1,1,1],
  64.                [0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,1,1,1],
  65.                [0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,1,1,1],
  66.                [0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,1,1,1],
  67.                [0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,1,1,1],
  68.                [0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,1,1,1],
  69.                [0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,1,1,1]  ],
  70.   "monthpeaks":[ [1,1,1,0,0,0,0,0,0,1,1,1],
  71.                [3,4,5,2,2,6,6,6,6,7,7,7],
  72.                [7,7,7,6,6,6,6,6,6,7,7,7],
  73.                [7,7,7,6,6,6,6,6,6,7,7,7],
  74.                [7,7,7,6,6,6,6,6,6,7,7,7],
  75.                [7,7,7,6,6,6,6,6,6,7,7,7],
  76.                [7,7,7,6,6,6,6,6,6,7,7,7],
  77.                [7,7,7,6,6,6,6,6,6,7,7,7],
  78.                [7,7,7,6,6,6,6,6,6,7,7,7]  ],
  79.   "nettarif" : [ [37.5375, 37.5375],
  80.                [37.5375, 95.6375],
  81.                [17.78, 26.68, 69.35],
  82.                [21.27, 63.79, 191.35],
  83.                [22.96, 68.89, 206.66],
  84.                [17.78, 53.34, 160.03],
  85.                [15.09, 22.64, 58.87],
  86.                [15.09, 45.28, 135.84]  ],
  87.   "hourly_fixed_cost": 11.229,
  88.   "customCost":       5,
  89.   "elafgift": [ [90.3, 90.3, 90.3, 90.3, 90.3, 76.3, 76.3, 76.3, 72.3, 72.3, 72.3, 72.3],
  90.                [ 0.8,  0.8,  0.8,  0.8,  0.8,  0.8, 69.7, 69.7, 69.7, 69.7, 69.7, 69.7],
  91.                [71.0, 71.0, 71.0, 71.0, 71.0, 71.0, 71.0, 71.0, 71.0, 71.0, 71.0, 71.0],
  92.                [64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8],
  93.                [64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8],
  94.                [64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8],
  95.                [63.2, 63.2, 63.2, 63.2, 63.2, 63.2, 63.2, 63.2, 63.2, 63.2, 63.2, 63.2],
  96.                [61.7, 61.7, 61.7, 61.7, 61.7, 61.7, 61.7, 61.7, 61.7, 61.7, 61.7, 61.7],
  97.                [56.1, 56.1, 56.1, 56.1, 56.1, 56.1, 56.1, 56.1, 56.1, 56.1, 56.1, 56.1]  ] } %}
  98. {% set year  = now().year      %}
  99. {% set month = now().month     %}
  100. {% set hour  = now().hour      %}
  101. {% set tarifyear  = year-2022  %}
  102. {% set tarifmonth = s.monthpeaks[tarifyear]  %}
  103. {% set tarifhour  = s.hourpeaks[tarifyear]   %}
  104. {% set tarifnow   = s.nettarif[tarifmonth[month-1]][tarifhour[hour]]/100 %}
  105. {% set elafgiftnow = s.elafgift[tarifyear][month-1]                  %}
  106. {{tarifnow+(s.hourly_fixed_cost+elafgiftnow+s.customCost)*0.0125|float}}'
  107.  
  108.  
  109.  
  110.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement