Last active
February 13, 2023 09:06
-
-
Save moorgrove/d1731d4979907df648f13ee74fdb7b25 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
# See https://gist.github.com/moorgrove/d43b27ee789d4e91f2070953ec00bd58 for gist regarding "config_templates: electricity_price" | |
type: custom:apexcharts-card | |
config_templates: electricity_price | |
now: | |
show: true | |
label: Nu | |
color: '#ffc0cb' | |
header: | |
show: true | |
title: Elpris Import | 10+1 Dagar | |
show_states: false | |
colorize_states: true | |
graph_span: 11d | |
yaxis: | |
- min: ~0 | |
apex_config: | |
forceNiceScale: true | |
span: | |
end: day | |
offset: +1d | |
series: | |
- entity: sensor.nordpool | |
name: Spotpris | |
type: column | |
stroke_width: 2 | |
show: | |
in_header: true | |
name_in_header: true | |
header_color_threshold: true | |
in_chart: true | |
offset_in_name: false | |
- entity: sensor.nordpool | |
name: Idag | |
stroke_width: 2 | |
data_generator: > | |
return entity.attributes.raw_today.map((entry) => { return [new | |
Date(entry.start), entry.value]; }); | |
show: | |
in_header: false | |
name_in_header: false | |
header_color_threshold: true | |
- entity: sensor.nordpool | |
name: Imorgon | |
stroke_width: 2 | |
data_generator: > | |
return entity.attributes.raw_tomorrow.map((entry) => { return [new | |
Date(entry.start), entry.value]; }); | |
show: | |
in_header: false | |
color: '#7D70BA' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment