Created
December 28, 2022 15:44
-
-
Save JkJ076/105811fd8164dd8a9f893b420a03d33e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type: custom:apexcharts-card | |
now: | |
show: true | |
label: Just nu | |
color: rgb 100,100,100 | |
experimental: | |
color_threshold: true | |
hidden_by_default: true | |
graph_span: 24h | |
apex_config: | |
chart: | |
height: 400px | |
legend: | |
showForSingleSeries: true | |
plotOptions: | |
bar: | |
borderRadius: 0 | |
yaxis: | |
min: 0 | |
decimalsInFloat: 2 | |
tickAmount: 4 | |
forceNiceScale: true | |
xaxis: | |
labels: | |
datetimeFormatter: | |
hour: HH.mm | |
all_series_config: | |
show: | |
offset_in_name: false | |
legend_value: false | |
in_header: true | |
datalabels: false | |
extremas: true | |
header: | |
title: Elpriser | |
show: true | |
show_states: true | |
colorize_states: true | |
span: | |
start: day | |
offset: +0h | |
series: | |
- entity: sensor.nordpool_kwh_se4_sek_2_00_0 | |
attribute: min | |
color: green | |
type: line | |
opacity: 0.2 | |
float_precision: 2 | |
stroke_width: 2 | |
name: Dagens lägsta | |
group_by: | |
duration: 1d | |
offset: +1h | |
show: | |
in_chart: true | |
legend_value: false | |
datalabels: false | |
- entity: sensor.nordpool_kwh_se4_sek_2_00_0 | |
attribute: average | |
type: line | |
color: blue | |
opacity: 0.2 | |
float_precision: 2 | |
stroke_width: 2 | |
name: Snittpris idag | |
offset: +1h | |
group_by: | |
duration: 1d | |
show: | |
in_chart: true | |
legend_value: false | |
- entity: sensor.nordpool_kwh_se4_sek_2_00_0 | |
attribute: max | |
type: line | |
color: red | |
opacity: 0.2 | |
float_precision: 2 | |
stroke_width: 2 | |
name: Dagens högsta | |
group_by: | |
duration: 1d | |
offset: +1h | |
show: | |
in_chart: true | |
legend_value: false | |
- entity: sensor.nordpool_kwh_se4_sek_2_00_0 | |
type: line | |
float_precision: 2 | |
opacity: 1 | |
stroke_width: 2 | |
color: '#ebff0a' | |
name: Idag | |
unit: SEK/kWh | |
show: | |
in_chart: true | |
in_brush: false | |
in_header: false | |
legend_value: false | |
extremas: false | |
header_color_threshold: true | |
data_generator: | | |
return entity.attributes.raw_today.map((start, index) => { | |
return [new Date(start["start"]).getTime(), entity.attributes.raw_today[index]["value"]]; | |
}); | |
color_threshold: | |
- value: 0 | |
color: '#209c05' | |
- value: 1 | |
color: '#86e62c' | |
- value: 2 | |
color: '#ebff0a' | |
- value: 3 | |
color: '#f2ae02' | |
- value: 4 | |
color: '#ff0a0a' | |
- entity: sensor.nordpool_kwh_se4_sek_2_00_0 | |
name: Just nu | |
color: orange | |
type: column | |
show: | |
in_chart: false | |
float_precision: 2 | |
- entity: sensor.nordpool_kwh_se4_sek_2_00_0 | |
name: Imorgon | |
color: black | |
type: line | |
float_precision: 2 | |
opacity: 0.4 | |
stroke_width: 2 | |
show: | |
in_header: false | |
legend_value: false | |
extremas: false | |
header_color_threshold: true | |
offset: +24h | |
data_generator: | | |
return entity.attributes.raw_tomorrow.map((start, index) => { | |
return [new Date(start["start"]).getTime(), entity.attributes.raw_tomorrow[index]["value"]]; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment