EPEX Spot update auf 3.0.0

abend

so da ist mal ein update auf 3.0.0 woe quasi alles in € per kwh angezeigt wird

3.0.0

:warning: Important Update Warning :warning:

This release changes the unit of measurement from ct/kWh to €/£/kWh, which is generally preferred by Home Assistant and allows automatic integration into the energy dashboard. Please be aware that all automations, graphs, and calculations depending on this unit will need to be updated accordingly.

Additionally, long-term statistics may not function correctly due to this unit change and may require manual adjustments to align with the new unit format.

User Options will be automatically updated to the correct values; however, we recommend reviewing them to ensure accuracy.

To avoid any disruptions or incorrect values, review and adapt your setups as necessary. For detailed guidance, please refer to the updated README for more information on making these adjustments.

so der Wert des sensor.epex_spot_data_net_price ist also jetzt in Euro

jetzt hab ich in meiner wahrscheinlich Naivität einen sensor angelegt der den Wert *100 multipliziert und somit den wieder in cent zu haben

und dann den Sensor in meinem Dashboard auszutauschen , leider scheint das nicht zu funktioniere (der neue sensor hab ich unter Zustände kontrolliert , der passt)

hier die 2 Karten im Dasboard im „alten“ Zustand

type: custom:apexcharts-card
graph_span: 24h
experimental:
  color_threshold: true
header:
  title: Energie Preis HEUTE
  show: true
  show_states: true
span:
  start: day
now:
  show: true
  label: now
  color: darkblue
series:
  - entity: sensor.epex_spot_data_net_price
    type: column
    extend_to: end
    unit: ct/kWh
    float_precision: 3
    yaxis_id: preis
    show:
      in_header: before_now
      extremas: true
      header_color_threshold: true
    color_threshold:
      - value: 2
        color: 00ed01
      - value: 4
        color: 3af901
      - value: 6
        color: 87fa00
      - value: 8
        color: cefb02
      - value: 10
        color: eeff00
      - value: 12
        color: ffde1a
      - value: 14
        color: ffa700
      - value: 16
        color: ff8d00
      - value: 18
        color: ff7400
      - value: 20
        color: ff4d00
      - value: 22
        color: ff4d00
      - value: 24
        color: ff0000
      - value: 26
        color: e60000
      - value: 28
        color: cc0000
      - value: 30
        color: b30000
      - value: 32
        color: "990000"
      - value: 34
        color: "800000"
      - value: 36
        color: "660000"
      - value: 38
        color: 4d0000
      - value: 40
        color: "330000"
    data_generator: |
      return entity.attributes.data.map((entry) => {
        return [new Date(entry.start_time), entry.price_ct_per_kwh];
      });
    group_by:
      func: avg
      duration: 1h
yaxis:
  - id: preis
    decimals: 0
    apex_config:
      title:
        text: ct/kWh
      tickAmount: 5
apex_config:
  legend:
    show: false
  tooltip:
    x:
      show: true
      format: HH:00 - HH:59


type: conditional
conditions:
  - entity: sensor.display_card
    state: "True"
card:
  type: custom:apexcharts-card
  graph_span: 24h
  header:
    title: Energie Preis MORGEN
    show: true
    show_states: false
  span:
    start: day
    offset: +1day
  series:
    - entity: sensor.epex_spot_data_net_price
      type: column
      extend_to: end
      unit: ct/kWh
      float_precision: 3
      yaxis_id: preis
      group_by:
        func: avg
        duration: 1h
      color: grey
      show:
        in_header: before_now
        extremas: true
      data_generator: |
        return entity.attributes.data.map((entry) => {
          return [new Date(entry.start_time), entry.price_ct_per_kwh];
        });
  yaxis:
    - id: preis
      decimals: 0
      apex_config:
        title:
          text: ct/kWh
        tickAmount: 5
  apex_config:
    legend:
      show: false
    tooltip:
      x:
        show: true
        format: HH:00 - HH:59

oder muss ich den Bereich ändern


    data_generator: |
      return entity.attributes.data.map((entry) => {
        return [new Date(entry.start_time), entry.price_ct_per_kwh];
      });
    
2 „Gefällt mir“

Ja super, hast doch die Lösung schon so gut wie gefunden. Ich denke mal müsste so ganz einfach funktionieren und du erhältst weiterhin cent Preise.

data_generator: |
  return entity.attributes.data.map((entry) => {       
    return [new Date(entry.start_time), entry.price_ct_per_kwh * 100]; 
  });
2 „Gefällt mir“

thx war mir nur nicht sicher :wink:

2 „Gefällt mir“

komisch nach dem update und der Änderung ist das diagramm leer
oder dauert das bis es aktualisiert wird ?

Gute Frage, eigentlich sollte das wieder gefüllt werden. Hast du mal den sensor kontrolliert ob er auch wirklich Daten liefert?

1 „Gefällt mir“

ja liefert Daten finde das auch komisch
vielleicht muss man noch was ändern ?

entry.price_ct_per_kwh wo kommt das her wir kriegen das ja jetzt in euro oder spielt die Bezeichnung keine Rolle

aha

Klick

2 „Gefällt mir“

und schon probiert?

nein ich teste es später morgen , hatte heute schon einen Schreckmoment das nach dem Einspielen eines Backups alles weg war , scheinbar war das defekt , gott sei dank liegt auch ein Backup bei nabu casa , das hat mir den Ar… gerettet

ok, wirst ja berichten. Ich finde die Funktion mit dem BackUp in der Cloud für Notfälle auch ganz gut.

passt funktioniert wieder :+1: :+1: :+1:

wichtig ist diesen Eintrag so zu ändern

entry.price_per_kwh * 100
1 „Gefällt mir“