Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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).
- nordpool:
- - platform: template
- sensors:
- elpris_tomorrow_available:
- friendly_name: "Elpris tomorrow available"
- #AGR - Indsæt din nordpool sensor her for at vide om morgendagens priser er tilgængelige
- value_template: "{{ state_attr('sensor.nordpool_kwh_dk1_dkk_3_095_025', 'tomorrow_valid') }}"
- - 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 currecy
- currency: "DKK"
- # Helper so you can set your "low" price
- # low_price = hour_price < average * low_price_cutoff
- # AGR - Aner ikke hvad den gør, så sætter den til det samme som eksempel i github repo. eksempel
- low_price_cutoff: 0.95
- # 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: "DK1"
- # How many decimals to use in the display of the price
- precision: 3
- # 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}}
- #additional_costs: "{{0.0|float}}"
- # AGR - Omkostninger til Energinet (trans_nettarif, systemtarif, balancetarif_forbrug) inkl. moms
- # AGR - Omkostninger til staten (pso_tarif, elafgift) inkl. moms
- # Omkostninger netselskab (nettarif_c_time_lavlast/nettarif_c_time_spidslast, abonnement_net) inkl. moms
- # AGR - Spidslast for DIN EL A/S er oktober - marts mellem 17:00 og 20:00, ellers betales der lavlast.
- # AGR - Der betales fast 422.50 i abonnement til Din EL, dette vil jeg dog ikke indregne i den variable udgift
- # Omkostninger elleverandør (eltillaeg_ellev, abonnement_ellev) inkl. moms
- # 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
- additional_costs: '{% set s = {
- "trans_nettarif": 0.06125,
- "systemtarif": 0.07625,
- "balancetarif_forbrug": 0.002875,
- "pso_tarif": 0.00,
- "elafgift": 1.12875,
- "nettarif_c_time_lavlast": 0.1315,
- "nettarif_c_time_spidslast": 0.425,
- "abonnement_net": 0.00,
- "eltillaeg_ellev": 0.00,
- "abonnement_ellev": 0.00
- } %}
- {% if now().month >= 10 or now().month <4 %}
- {% if now().hour >=17 and now().hour <20 %}
- {{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}}
- {% else %}
- {{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}}
- {% endif %}
- {% else %}
- {{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}}
- {% endif %}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement