Any good ideas are welcome. Nordpool Energy Price per hour

the initial step would have been to incorporate the latest HACS version, not to start a new solution from scratch, with new sensors and data structure

The author and reviewers of the core integration are aware of the hacs integration and I’m sure they considered reuse and whether to replace or complement the hacs integration.

Core is as much maintained by the community as hacs, but there are different design considerations to be made. As mentioned earlier, home assistant is currently working on a data format and cards for forecasting. If the current core integration would have copied the hacs format, there would be a good chance of requiring a breaking change in the future as well as introducing an unofficial data structure in core. This is not desirable for core integrations.

Personally, I agree with the decision to provide a simple core integration for pricing in the energy dashboard and keep the hacs integration for the more advanced use cases and forecasts. It makes sense and it’s the best of both worlds.

There are many opinions and all are appreciated and considered. Let’s also respect the choices of the people volunteering their time to do the actual development.

Thanks, version with different prices for month and weekend below if useful for anyone (Bergen BKK)

{% set hour = now().hour %}
{% set month = now().month %}
{% set day_of_week = now().weekday() %}
{% set extra = 0.01 %}
{% set weekend = day_of_week >= 5 %}
{% if month <= 3 %}
  {% if weekend or hour > 21 or hour < 6 %}
    {% set price = extra + 0.3786 %}
  {% else %}
    {% set price = extra + 0.5025 %}
  {% endif %}
{% else %}
  {% if weekend or hour > 21 or hour < 6 %}
    {% set price = extra + 0.4652 %}
  {% else %}
    {% set price = extra + 0.5925 %}
  {% endif %}
{% endif %}

{% set threshold_for_subsidy = 0.9125 %}
{% set subsidy = max((current_price - threshold_for_subsidy) * 0.9, 0) %}

{{ (price - subsidy) | round(4) }}
1 Like

Would there be any possibility to add SEMOpx to this project? SEMOpx offers the dynamic pricing API for the Irish market. Here is an example script which downloads and parses the prices.

I did attempt to fork this project and give it a go myself, but I am failing to get it working properly.

Nordpool and semopx are different services and should have different integrations. A fork is the right way to go.

Maybe start a new community topic to get full attention on he development of semopx. Hopefully, other people need the same thing and you can work together on the development. The official home assistant discord has a developer channel which might offer some help.

1 Like

Yes you are right. A new integration and discussion is warranted. I’ve opened a separate thread here: SEMOpx dynamic energy pricing

I’m trying to get last prices but also see a few hours ahead but can’t for some reason… Anyone know what I’m doing wrong?

type: custom:apexcharts-card
graph_span: 7d
span:
  start: week
  offset: +6h
now:
  show: true
  label: Now
  color: "#FF5555"
experimental:
  color_threshold: true
header:
  show: false
  show_states: false
  colorize_states: true
  title: sensor.nord_pool_se3_senast_uppdaterad
series:
  - entity: sensor.nordpool_sek_aktuellt_pris_template
    name: Aktuellt
    color: "#6272A4"
    stroke_width: 2
    float_precision: 2
    type: column
    show:
      in_chart: true
  - entity: sensor.nordpool_sek_genomsnitt_template
    name: Genomsnitt
    color: "#50FA7B"
    stroke_width: 3
    float_precision: 2
    fill_raw: last
    show:
      in_chart: true
  - entity: sensor.nordpool_sek_peak_high_template
    name: Högsta
    color: "#FF79C6"
    stroke_width: 3
    stroke_dash: 3
    float_precision: 2
    fill_raw: last
    show:
      in_chart: true
  - entity: sensor.nordpool_sek_peak_lowest_template
    name: Lägsta
    color: "#FFB86C"
    stroke_width: 3
    stroke_dash: 5
    float_precision: 2
    fill_raw: last
    show:
      in_chart: true

The Nordpool integration is now reporting prices per 15 minutes for every hour.

Let’s say I want to know the cheapest period, 2 coherent hours, or change the input field to 4 coherent hours, within 00:00- 24:00.

Have someone coded this?

Maybe have a look here: GitHub - TheFes/cheapest-energy-hours: Jinja macro to find the cheapest energy prices

4 Likes

In this comment is explained how to change Nordpool back to hourly:

1 Like