Tibber - Schedul prices upcoming 24 hours prices!

This ist only apex Charts with minimalist Theme. Can you Show me a picture of your Card?

How i can show tibber prices from last day(s)?
image

Here my APEX-Code :wink:

type: custom:apexcharts-card
header:
  show: true
  title: Preis & Batterie
  show_states: true
  colorize_states: true
now:
  show: true
  label: ""
graph_span: 48h
span:
  end: day
  offset: "-24"
apex_config:
  dataLabels:
    enabled: true
    distributed: true
  yaxis:
    - id: Tibber
      opposite: false
      decimalsInFloat: 0
      max: 50
      min: 0
      tickAmount: 5
    - id: Batterie
      opposite: true
      decimalsInFloat: 0
      max: 100
      min: 0
      tickAmount: 5
    - id: kWh
      opposite: true
      decimalsInFloat: 0
      max: 1000
      min: 1
      tickAmount: 1
series:
  - entity: sensor.tibber_prices
    name: Tibber
    yaxis_id: Tibber
    show:
      in_header: before_now
      name_in_header: false
      legend_value: false
      in_chart: true
      in_brush: true
    color_threshold:
      - value: 0
        color: 4DD0E1
      - value: 10
        color: 26A69A
      - value: 15
        color: 4CAF50
      - value: 20
        color: 7CB342
      - value: 25
        color: FBC02D
      - value: 30
        color: EF6C00
      - value: 40
        color: B71C1C
    type: line
    curve: stepline
    extend_to: false
    stroke_width: 1
    float_precision: 2
    data_generator: |
      const noon = new Date()
      noon.setHours(0, 0, 0, 0)
      const prices = entity.attributes.today.concat(entity.attributes.tomorrow);
      const data = [];
      for(let i = 0 ; i < prices.length; i++) {
        data.push([noon.getTime() + i * 1000 * 3600, prices[i].total * 100])
      }
      return data;
  - entity: sensor.delta_2_max_battery_level
    name: Batterie
    yaxis_id: Batterie
    stroke_width: 1
    float_precision: 0
    extend_to: false
    show:
      legend_value: false
      in_header: true
    group_by:
      duration: 15m
      func: avg
  - entity: sensor.tasmota_bkw_bat_in_energy_power
    name: Laden
    yaxis_id: kWh
    type: area
    stroke_width: 1
    float_precision: 0
    extend_to: false
    show:
      legend_value: false
      in_header: false
    group_by:
      duration: 1m
      func: avg
  - entity: sensor.tasmota_bkw_mwr_out_energy_power
    name: Einspeisung
    yaxis_id: kWh
    type: area
    stroke_width: 1
    float_precision: 0
    extend_to: false
    show:
      legend_value: false
      in_header: false
    group_by:
      duration: 15m
      func: avg
  - entity: sensor.solarproduktion_gesamt_akt
    name: Solar
    yaxis_id: kWh
    type: area
    stroke_width: 1
    float_precision: 0
    extend_to: false
    show:
      legend_value: false
      in_header: false
    group_by:
      duration: 15m
      func: avg
1 Like

Hello Ingo, these sensors are missing
or where do I get them?

  • sensor.electricity_generation_stand
  • sensor.electricity_generation_previously
  • sensor.tibber_stand_zahler_einspeisung
  • sensor.einspeisegeuhr_im_current_jahr
  • sensor.tibber_stand_payer_reference
  • sensor.power consumption_kwh_previously
  • sensor.template_tibber_consumption_year
  • sensor.template_tibber_cost_year
  • sensor.template_tibber_consumption_per_month
  • sensor.template_tibber_kosten_je_kwh_jahr_ohne_grundgebuhr
  • sensor.template_tibber_kosten_je_kwh_jahr
  • sensor.tibber_monthly_consumption
  • sensor.tibber_api_kosten_aktueller_monat

Greetings Alex

Does nobody have an idea where one can display the prices from the past (a few days ago) and those of the future in a curve?

With a bit of fiddling and trail and error, I was able to realise the suggestion presented here for myself and would like to start by thanking you for it. Strangely, however, I can’t get any historical values for my Tibber price. Does anyone have any ideas?

Hi Ingo,

first thank you much sharing your awesome Tibber Card with Storage charging evaluation. Exactly what i need!

Could you please please update your first post from 01.2024 to the actual code changes? Also for me as a beginner it woud be great to get some more information at which path in homeassistant the Code fragments must be added.

Thanks a lot in advance!

1 Like