Hi,
I’ve setup a nordpool integration and a apex graph which works beautifylly except one thing I can’t figure out.
I’d like to have the current value in header but it seems the last value in graph which is in the future is picked up. In this case 62 is last and current is 368. Bonus if I could hide sensor name also but not that important.
type: custom:apexcharts-card
graph_span: 27h
experimental:
color_threshold: true
header:
title: Elpriser SE3 (öre/kWh ex moms)
show: true
show_states: true
colorize_states: true
apex_config:
yaxis:
min: 0
hours_12: false
span:
start: hour
offset: ‘-3h’
now:
show: true
label: Nu
series:
- entity: sensor.nordpool_kwh_se3_sek_0_10_0
type: column
data_generator: |
return (entity.attributes.raw_today.map((start, index) => {
return [new Date(start[“start”]).getTime(), entity.attributes.raw_today[index][“value”]];
})).concat(entity.attributes.raw_tomorrow.map((start, index) => {
return [new Date(start[“start”]).getTime(), entity.attributes.raw_tomorrow[index][“value”]];
}));
color_threshold:- value: 0
color: green - value: 50
color: yellow - value: 100
color: orange - value: 200
color: red - value: 300
color: darkred
- value: 0