Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -------------------------
- #nordpool:
- - platform: nordpool
- # Should the prices include vat? Default True
- VAT: True
- # What currency the api fetches the prices in
- # this is only need if you want a sensor in a non local currency
- currency: DKK
- # Option to show prices in cents (or the equivalent in local currency)
- price_in_cents: false
- # Helper so you can set your "low" price
- # low_price = hour_price < average * low_price_cutoff
- # low_price_cutoff: 0.95
- low_price_cutoff: 0.5
- # What power regions your are interested in.
- # Possible values: "DK1", "DK2", "FI", "LT", "LV", "Oslo", "Kr.sand", "Bergen", "Molde", "Tr.heim", "Tromsø", "SE1", "SE2", "SE3","SE4", "SYS", "EE"
- region: DK2
- # How many decimals to use in the display of the price
- precision: 2
- # What the price should be displayed in default
- # Possible values: MWh, kWh and Wh
- # default: kWh
- price_type: kWh
- # This option allows the usage of a template to add a tariff.
- # now() always refers start of the hour of that price.
- # this way we can calculate the correct costs add that to graphs etc.
- # The price result of the additional_costs template expects this additional cost to be in kWh and not cents as a float
- # default {{0.0|float}}
- #
- # Variabel nettarrif og afgift frem til år 2030 ...
- # Alle priser i følgende er øre ex. moms. (Bortset fra NetTarif, som er med moms)
- #
- # Jeg bor i Radiusområde, så nettarifferne er taget fra deres hjemmeside
- # Jeg har modstrøm som leverandør og i min aftale betaler jeg 10 øre på spotprisen.
- # modstrøm (cost + 10 øre/kWh ) => customCost = 10
- #
- # hourly_fixed_cost = Transmission + Systemtarif + Balancetarif
- # hourly_fixed_cost = 4.9 øre + 6.1 øre + 0.229 øre + moms
- # = 11.229 + moms = 14.03625
- # Afgifterne er rettet til pr. oktober 2022 og med finansministeriets takster og ændreinger af do frem til 2030
- # bemærk de specielle 0.8 øre i de første 6 måneder af 2023 ... det er rigtigt !!!
- #
- # Radius Nettarif er uden moms i de gamle prislister, men med moms i de nye.
- # Så de gamle tal ændres til:
- # 30.03 -> 37.5375
- # 76.51 -> 95.6375
- # Håber I kan bruge det - dette er mit bud på en løsning ...
- # Michael Gylling Hviid
- #
- additional_costs: '{% set s = {
- "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],
- [0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,1,1,1],
- [0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,1,1,1],
- [0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,1,1,1],
- [0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,1,1,1],
- [0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,1,1,1],
- [0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,1,1,1],
- [0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,1,1,1],
- [0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,1,1,1] ],
- "monthpeaks":[ [1,1,1,0,0,0,0,0,0,1,1,1],
- [3,4,5,2,2,6,6,6,6,7,7,7],
- [7,7,7,6,6,6,6,6,6,7,7,7],
- [7,7,7,6,6,6,6,6,6,7,7,7],
- [7,7,7,6,6,6,6,6,6,7,7,7],
- [7,7,7,6,6,6,6,6,6,7,7,7],
- [7,7,7,6,6,6,6,6,6,7,7,7],
- [7,7,7,6,6,6,6,6,6,7,7,7],
- [7,7,7,6,6,6,6,6,6,7,7,7] ],
- "nettarif" : [ [37.5375, 37.5375],
- [37.5375, 95.6375],
- [17.78, 26.68, 69.35],
- [21.27, 63.79, 191.35],
- [22.96, 68.89, 206.66],
- [17.78, 53.34, 160.03],
- [15.09, 22.64, 58.87],
- [15.09, 45.28, 135.84] ],
- "hourly_fixed_cost": 11.229,
- "customCost": 5,
- "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],
- [ 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 69.7, 69.7, 69.7, 69.7, 69.7, 69.7],
- [71.0, 71.0, 71.0, 71.0, 71.0, 71.0, 71.0, 71.0, 71.0, 71.0, 71.0, 71.0],
- [64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8],
- [64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8],
- [64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8, 64.8],
- [63.2, 63.2, 63.2, 63.2, 63.2, 63.2, 63.2, 63.2, 63.2, 63.2, 63.2, 63.2],
- [61.7, 61.7, 61.7, 61.7, 61.7, 61.7, 61.7, 61.7, 61.7, 61.7, 61.7, 61.7],
- [56.1, 56.1, 56.1, 56.1, 56.1, 56.1, 56.1, 56.1, 56.1, 56.1, 56.1, 56.1] ] } %}
- {% set year = now().year %}
- {% set month = now().month %}
- {% set hour = now().hour %}
- {% set tarifyear = year-2022 %}
- {% set tarifmonth = s.monthpeaks[tarifyear] %}
- {% set tarifhour = s.hourpeaks[tarifyear] %}
- {% set tarifnow = s.nettarif[tarifmonth[month-1]][tarifhour[hour]]/100 %}
- {% set elafgiftnow = s.elafgift[tarifyear][month-1] %}
- {{tarifnow+(s.hourly_fixed_cost+elafgiftnow+s.customCost)*0.0125|float}}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement