Guten Tag zusammen,
ich habe seid der Umstellung auf die Sommerzeit hier in meiner APEXSpot Card einen Versatz um eine Stunde.
Wie kann man das so machen das er Sommer und Winterzeit berücksichtigt?
type: custom:apexcharts-card
graph_span: 48h
experimental:
color_threshold: true
header:
title: Energy price today
show: false
show_states: false
span:
start: day
offset: +30m
now:
show: true
label: jetzt
color: FFFF00
series:
- entity: sensor.epex_spot_data_price
type: column
unit: €/kWh
float_precision: 3
yaxis_id: preis
name: Netzpreis
show:
extremas: true
in_header: after_now
header_color_threshold: true
color_threshold:
- value: 0.18
color: 00FF00
- value: 0.22
color: 8BC34A
- value: 0.26
color: FFEB3B
- value: 0.3
color: FF9800
- value: 0.35
color: FF5722
- value: 0.4
color: D32F2F
- value: 0.45
color: B71C1C
- value: 0.5
color: 9C1D1D
data_generator: |
return entity.attributes.data.map((entry) => {
const startTime = new Date(entry.start_time);
const localTime = new Date(startTime.getTime() - (startTime.getTimezoneOffset() * 60000));
return [localTime, entry.price_per_kwh];
});
group_by:
func: avg
duration: 1h
yaxis:
- id: preis
decimals: 2
apex_config:
title:
text: €/kWh
tickAmount: 8
apex_config:
chart:
type: area
height: 700
legend:
show: false
tooltip:
x:
show: true
format: HH:00 - HH:59
Vielen Dank!!!