Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: vertical-stack
- title: SE1 Dagens & Morgondagens (inkl moms)
- cards:
- - type: custom:vertical-stack-in-card
- title: SE1 Dagens timpris
- style: |
- ha-card {
- box-shadow: 2px;
- background: transparent:
- margin: 15px:
- }
- cards:
- - type: custom:apexcharts-card
- now:
- show: true
- label: JUST NU
- graph_span: 24h
- apex_config:
- chart:
- height: 300px
- legend:
- showForSingleSeries: true
- plotOptions:
- bar:
- borderRadius: 2
- yaxis:
- min: 0
- decimalsInFloat: 2
- tickAmount: 10
- forceNiceScale: true
- xaxis:
- labels:
- datetimeFormatter:
- hour: HH
- all_series_config:
- show:
- offset_in_name: false
- header:
- title: ' '
- show: true
- show_states: true
- colorize_states: true
- span:
- start: day
- offset: +0h
- series:
- - entity: sensor.nordpool_kwh_se1_sek_3_10_025_med_moms
- type: column
- color: orange
- float_precision: 3
- stroke_width: 2
- name: Dagens timpris
- show:
- in_header: false
- legend_value: false
- extremas: true
- data_generator: |
- return entity.attributes.raw_today.map((start, index) => {
- return [new Date(start["start"]).getTime(), entity.attributes.raw_today[index]["value"]];
- });
- - entity: sensor.nordpool_kwh_se1_sek_3_10_025_med_moms
- name: Timpris just nu
- color: orange
- type: column
- show:
- in_chart: false
- float_precision: 3
- - entity: sensor.nordpool_kwh_se1_sek_3_10_025_med_moms
- attribute: average
- type: column
- float_precision: 3
- stroke_width: 2
- name: Dagens Snittpris
- color: blue
- group_by:
- duration: 1d
- show:
- in_chart: false
- legend_value: false
- - entity: sensor.nordpool_kwh_se1_sek_3_10_025_med_moms
- attribute: max
- type: column
- color: red
- float_precision: 3
- stroke_width: 2
- name: Dagens högsta pris
- group_by:
- duration: 1d
- show:
- in_chart: false
- legend_value: false
- - entity: sensor.nordpool_kwh_se1_sek_3_10_025_med_moms
- attribute: min
- type: column
- color: green
- float_precision: 3
- stroke_width: 2
- name: Dagens lägsta pris
- group_by:
- duration: 1d
- show:
- in_chart: false
- legend_value: false
- - type: custom:vertical-stack-in-card
- title: SE1 Morgondagens timpris (släpps runt 14)
- style: |
- ha-card {
- box-shadow: 2px;
- background: transparent:
- margin: 15px:
- }
- cards:
- - type: custom:apexcharts-card
- graph_span: 24h
- color_list:
- - var(--primary-color)
- apex_config:
- chart:
- height: 300px
- legend:
- showForSingleSeries: true
- plotOptions:
- bar:
- borderRadius: 2
- xaxis:
- labels:
- datetimeFormatter:
- hour: HH
- yaxis:
- min: 0
- decimalsInFloat: 2
- tickAmount: 10
- forceNiceScale: true
- all_series_config:
- show:
- offset_in_name: false
- header:
- title: ' '
- show: true
- show_states: true
- colorize_states: true
- span:
- start: day
- offset: +1d
- series:
- - entity: sensor.nordpool_kwh_se1_sek_3_10_025_med_moms
- type: column
- stroke_width: 2
- float_precision: 3
- name: Morgondagens timpris
- show:
- in_header: false
- legend_value: false
- extremas: true
- data_generator: |
- return entity.attributes.raw_tomorrow.map((start, index) => {
- return [new Date(start["start"]).getTime(), entity.attributes.raw_tomorrow[index]["value"]];
- });
- - entity: sensor.nordpool_kwh_se1_sek_3_10_025_med_moms
- type: column
- stroke_width: 2
- float_precision: 3
- name: Morgondagens snittpris
- color: blue
- show:
- legend_value: false
- in_chart: false
- group_by:
- func: avg
- duration: 1d
- data_generator: |
- return entity.attributes.raw_tomorrow.map((start, index) => {
- return [new Date(start["start"]).getTime(), entity.attributes.raw_tomorrow[index]["value"]];
- });
- - entity: sensor.nordpool_kwh_se1_sek_3_10_025_med_moms
- type: column
- color: red
- stroke_width: 2
- float_precision: 3
- name: Morgondagens högsta pris
- show:
- legend_value: false
- in_chart: false
- group_by:
- func: max
- duration: 1d
- data_generator: |
- return entity.attributes.raw_tomorrow.map((start, index) => {
- return [new Date(start["start"]).getTime(), entity.attributes.raw_tomorrow[index]["value"]];
- });
- - entity: sensor.nordpool_kwh_se1_sek_3_10_025_med_moms
- type: column
- color: green
- stroke_width: 2
- float_precision: 3
- name: Morgondagens lägsta pris
- show:
- legend_value: false
- in_chart: false
- group_by:
- func: min
- duration: 1d
- data_generator: |
- return entity.attributes.raw_tomorrow.map((start, index) => {
- return [new Date(start["start"]).getTime(), entity.attributes.raw_tomorrow[index]["value"]];
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement