Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: custom:vertical-stack-in-card
- title: 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
- max: 3.5
- 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_se3_sek_3_10_025_med_moms
- type: column
- color: orange
- float_precision: 2
- 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_se3_sek_3_10_025_med_moms
- name: Timpris just nu
- color: orange
- type: column
- show:
- in_chart: false
- float_precision: 2
- - entity: sensor.nordpool_kwh_se3_sek_3_10_025_med_moms
- attribute: average
- type: column
- color: white
- float_precision: 2
- stroke_width: 2
- name: Dagens Snittpris
- group_by:
- duration: 1d
- show:
- in_chart: false
- legend_value: false
- - entity: sensor.nordpool_kwh_se3_sek_3_10_025_med_moms
- attribute: max
- type: column
- color: red
- float_precision: 2
- stroke_width: 2
- name: Dagens högsta pris
- group_by:
- duration: 1d
- show:
- in_chart: false
- legend_value: false
- - entity: sensor.nordpool_kwh_se3_sek_3_10_025_med_moms
- attribute: min
- type: column
- color: green
- float_precision: 2
- stroke_width: 2
- name: Dagens lägsta pris
- group_by:
- duration: 1d
- show:
- in_chart: false
- legend_value: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement