Advertisement
oz9els

Nordpool config (Working) OLD

Dec 2nd, 2022 (edited)
825
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.95 KB | Source Code | 0 0
  1. # -------------------------
  2. #nordpool:
  3.   - platform: nordpool
  4.     friendly_name: NordPool
  5.  
  6.  
  7.     # Should the prices include vat? Default True
  8.     VAT: True
  9.  
  10.     # What currency the api fetches the prices in
  11.     # this is only need if you want a sensor in a non local currency
  12.     currency: DKK
  13.  
  14.     # Option to show prices in cents (or the equivalent in local currency)
  15.     price_in_cents: false
  16.  
  17.     # Helper so you can set your "low" price
  18.     # low_price = hour_price < average * low_price_cutoff
  19.     # low_price_cutoff: 0.95
  20.     low_price_cutoff: 0.5
  21.  
  22.     # What power regions your are interested in.
  23.     # Possible values: "DK1", "DK2", "FI", "LT", "LV", "Oslo", "Kr.sand", "Bergen", "Molde", "Tr.heim", "Tromsø", "SE1", "SE2", "SE3","SE4", "SYS", "EE"
  24.     region: DK2
  25.  
  26.     # How many decimals to use in the display of the price
  27.     precision: 2
  28.  
  29.     # What the price should be displayed in default
  30.     # Possible values: MWh, kWh and Wh
  31.     # default: kWh
  32.     price_type: kWh
  33.  
  34. # 2023-01-01
  35. #    "vinter_lavlast": 0.2127,
  36. #    "vinter_hoejlast": 0.6379,
  37. #    "vinter_spidslast": 1.9135,
  38. #    "elafgift": 0.008,
  39. #
  40. # 2023-02-01
  41. #    "vinter_lavlast": 0.2296,
  42. #    "vinter_hoejlast": 0.6889,
  43. #    "vinter_spidslast": 2.0666,
  44. #    "sommer_lavlast": 0.2296,    
  45. #    "sommer_hoejlast": 0.3444,
  46. #    "sommer_spidslast": 0.8955,
  47. #
  48.     # This option allows the usage of a template to add a tariff.
  49.     # now() always refers start of the hour of that price.
  50.     # this way we can calculate the correct costs add that to graphs etc.
  51.     # The price result of the additional_costs template expects this additional cost to be in kWh and not cents as a float
  52.     # default {{0.0|float}}
  53. # Alle priser incl moms.
  54. # hourly_fixed_cost = Transmission + Systemtarif + Balancetarif
  55. # hourly_fixed_cost = 0,0613       + 0,0763      + 0,0029       = 0,14038
  56. #
  57. #
  58. #
  59.     additional_costs: '{% set s = {
  60.     "vinter_lavlast": 0.3735,
  61.     "vinter_hoejlast": 0.3735,
  62.     "vinter_spidslast": 0.95638,
  63.     "sommer_lavlast": 0.37538,    
  64.     "sommer_hoejlast": 0.37538,
  65.     "sommer_spidslast": 0.37538,
  66.     "elafgift": 1.1288,
  67.     "hourly_fixed_cost": 0.14038    
  68. }
  69. %}
  70. {% if now().month >=4 and now().month <10 %}
  71.     {% if now().hour >=6 %}
  72.         {% if now().hour >=17 and now().hour <21 %}
  73.             {{s.sommer_spidslast+s.hourly_fixed_cost+s.elafgift|float}}
  74.         {% else %}
  75.             {{s.sommer_hoejlast+s.hourly_fixed_cost+s.elafgift|float}}     
  76.         {% endif %}
  77.     {% else %}
  78.         {{s.sommer_lavlast+s.hourly_fixed_cost+s.elafgift|float}}
  79.     {% endif %}
  80. {% else %}
  81.     {% if now().hour >=6 %}
  82.         {% if now().hour >=17 and now().hour <21 %}
  83.             {{s.vinter_spidslast+s.hourly_fixed_cost+s.elafgift|float}}
  84.         {% else %}
  85.             {{s.vinter_hoejlast+s.hourly_fixed_cost+s.elafgift|float}}     
  86.         {% endif %}
  87.     {% else %}
  88.         {{s.vinter_lavlast+s.hourly_fixed_cost+s.elafgift|float}}
  89.     {% endif %}
  90. {% endif %}'
  91.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement