Her er min kode i tilfelle andre skulle ha samme feil. Den virker ihvertfall hos meg .
type: custom:apexcharts-card
header:
show: true
title: Strømpris Nordpool inkl..mva
show_states: true
series:
- entity: sensor.nordpool_kwh_krsand_nok_3_10_025
name: Pris Nå
type: column
curve: stepline
extend_to: false
float_precision: 3
stroke_width: 2
opacity: 0.2
color: rgb(255,111,0)
- entity: sensor.nordpool_kwh_krsand_nok_3_10_025
name: Pris slutt idag
type: column
curve: stepline
extend_to: false
float_precision: 3
stroke_width: 2
opacity: 0.2
color: rgb(2,93,136)
data_generator: |
return entity.attributes.raw_today.map((p) => {
return [new Date(p.start), (new Date() > new Date(p.start)) ? null : p.value];
});
- entity: sensor.nordpool_kwh_krsand_nok_3_10_025
name: Pris slutt imorgen
type: column
curve: stepline
extend_to: false
color: rgb(2,93,136)
float_precision: 3
stroke_width: 2
opacity: 0.2
data_generator: |
return entity.attributes.raw_tomorrow.map((p) => {
return [new Date(p.start), p.value];
});
now:
show: true
graph_span: 3d
span:
start: day
offset: '-1d'
locale: nb
apex_config:
chart:
height: 300px
zoom:
enabled: true
toolbar:
show: true
tools:
zoom: true
zoomin: false
zoomout: false
pan: false
reset: true
legend:
show: false
dataLabels:
enabled: false
xaxis:
type: datetime
labels:
datetimeFormatter:
month: ddd
day: ddd
tooltip:
fixed:
enabled: true
position: bottomLeft