Advertisement
Chrwjensen

Untitled

Mar 6th, 2022
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.03 KB | None | 0 0
  1. Invalid config for [nordpool]: expected a dictionary for dictionary value @ data['nordpool']. Got [OrderedDict([('platform', 'template'), ('sensors', OrderedDict([('elpris_tomorrow_available', OrderedDict([('friendly_name', 'Elpris tomorrow available'), ('value_template', "{{ state_attr('sensor.nordpool_kwh_dk1_dkk_3_095_025', 'tomorrow_valid') }}")]))]))]), OrderedDict([('platform', 'nordpool'), ('VAT', True), ('currency', 'DKK'), ('low_price_cutoff', 0.95), ('region', 'DK1'), ('precision', 3), ('price_type', 'kWh'), ('additional_costs', '{% set s = { "trans_nettarif": 0.06125, "systemta.... (See /config/configuration.yaml, line 57).
  2.  
  3. nordpool:
  4. - platform: template
  5. sensors:
  6. elpris_tomorrow_available:
  7. friendly_name: "Elpris tomorrow available"
  8. #AGR - Indsæt din nordpool sensor her for at vide om morgendagens priser er tilgængelige
  9. value_template: "{{ state_attr('sensor.nordpool_kwh_dk1_dkk_3_095_025', 'tomorrow_valid') }}"
  10. - platform: nordpool
  11. # Should the prices include vat? Default True
  12. VAT: True
  13.  
  14. # What currency the api fetches the prices in
  15. # this is only need if you want a sensor in a non local currecy
  16. currency: "DKK"
  17.  
  18. # Helper so you can set your "low" price
  19. # low_price = hour_price < average * low_price_cutoff
  20. # AGR - Aner ikke hvad den gør, så sætter den til det samme som eksempel i github repo. eksempel
  21. low_price_cutoff: 0.95
  22.  
  23. # What power regions your are interested in.
  24. # Possible values: "DK1", "DK2", "FI", "LT", "LV", "Oslo", "Kr.sand", "Bergen", "Molde", "Tr.heim", "Tromsø", "SE1", "SE2", "SE3","SE4", "SYS", "EE"
  25. region: "DK1"
  26.  
  27. # How many decimals to use in the display of the price
  28. precision: 3
  29.  
  30. # What the price should be displayed in default
  31. # Possible values: MWh, kWh and Wh
  32. # default: kWh
  33. price_type: kWh
  34.  
  35. # This option allows the usage of a template to add a tariff.
  36. # now() always refers start of the hour of that price.
  37. # this way we can calculate the correct costs add that to graphs etc.
  38. # The price result of the additional_costs template expects this additional cost to be in kWh and not cents as a float
  39. # default {{0.0|float}}
  40. #additional_costs: "{{0.0|float}}"
  41. # AGR - Omkostninger til Energinet (trans_nettarif, systemtarif, balancetarif_forbrug) inkl. moms
  42. # AGR - Omkostninger til staten (pso_tarif, elafgift) inkl. moms
  43. # Omkostninger netselskab (nettarif_c_time_lavlast/nettarif_c_time_spidslast, abonnement_net) inkl. moms
  44. # AGR - Spidslast for DIN EL A/S er oktober - marts mellem 17:00 og 20:00, ellers betales der lavlast.
  45. # AGR - Der betales fast 422.50 i abonnement til Din EL, dette vil jeg dog ikke indregne i den variable udgift
  46. # Omkostninger elleverandør (eltillaeg_ellev, abonnement_ellev) inkl. moms
  47. # AGR - Jeg får min el igennem Elforbundets aftale med Vindstød, så betaler kun for den rå el på elbørsen ved Nord Pool og intet abonnement
  48. additional_costs: '{% set s = {
  49. "trans_nettarif": 0.06125,
  50. "systemtarif": 0.07625,
  51. "balancetarif_forbrug": 0.002875,
  52. "pso_tarif": 0.00,
  53. "elafgift": 1.12875,
  54. "nettarif_c_time_lavlast": 0.1315,
  55. "nettarif_c_time_spidslast": 0.425,
  56. "abonnement_net": 0.00,
  57. "eltillaeg_ellev": 0.00,
  58. "abonnement_ellev": 0.00
  59. } %}
  60. {% if now().month >= 10 or now().month <4 %}
  61. {% if now().hour >=17 and now().hour <20 %}
  62. {{s.trans_nettarif+s.systemtarif+s.balancetarif_forbrug+s.pso_tarif+s.elafgift+s.nettarif_c_time_spidslast+s.abonnement_net+s.eltillaeg_ellev+s.abonnement_ellev}}
  63. {% else %}
  64. {{s.trans_nettarif+s.systemtarif+s.balancetarif_forbrug+s.pso_tarif+s.elafgift+s.nettarif_c_time_lavlast+s.abonnement_net+s.eltillaeg_ellev+s.abonnement_ellev}}
  65. {% endif %}
  66. {% else %}
  67. {{s.trans_nettarif+s.systemtarif+s.balancetarif_forbrug+s.pso_tarif+s.elafgift+s.nettarif_c_time_lavlast+s.abonnement_net+s.eltillaeg_ellev+s.abonnement_ellev}}
  68. {% endif %}'
  69.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement