Hi @Neuling, für die Tibber-Voraussage nutze ich folgenden YAML-Code in Verbindung mit dem AddOn LoveLace-Card (erst im HACS installieren) und der Integration EPEX-Spot:
type: custom:apexcharts-card
graph_span: 48h
header:
title: Strompreis Tibber
show: true
show_states: true
span:
start: day
now:
show: true
label: aktuell
color: white
series:
- entity: sensor.epex_spot_data_net_price
type: line
curve: stepline
stroke_width: 3
extend_to: false
unit: " ct/kWh"
float_precision: 0
yaxis_id: preis
show:
in_header: before_now
extremas: true
header_color_threshold: 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: 7
apex_config:
legend:
show: false
tooltip:
x:
show: true
format: HH:00 - HH:59```