Created
September 13, 2022 12:53
-
-
Save nord-/3d340962d67eff79fa5cdeefdde3f4e9 to your computer and use it in GitHub Desktop.
Display NordPool hourly prices in a nice ApexChart
This file contains 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 | |
experimental: | |
color_threshold: true | |
header: | |
show: false | |
title: Nordpool Pris | |
show_states: false | |
graph_span: 2d | |
span: | |
start: day | |
series: | |
- entity: sensor.nordpool_kwh_se3_sek_3_095_0 | |
name: Idag | |
stroke_width: 2 | |
color: deepskyblue | |
float_precision: 2 | |
data_generator: | | |
return entity.attributes.raw_today | |
.concat(entity.attributes.raw_tomorrow).map((p) => { | |
return [new Date(p.start), p.value*1.25]; | |
}); | |
curve: stepline | |
show: | |
legend_value: false | |
in_header: false | |
color_threshold: | |
- value: 0 | |
color: green | |
- value: 0.5 | |
color: lightgreen | |
- value: 0.8 | |
color: yellow | |
- value: 1 | |
color: orange | |
- value: 1.3 | |
color: red | |
now: | |
show: true | |
color: '#ff0000' | |
label: Nu | |
apex_config: | |
yaxis: | |
min: 0 | |
decimalsInFloat: 2 |
Author
nord-
commented
Sep 13, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment