Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: custom:apexcharts-card
- apex_config:
- chart:
- height: 250px
- legend:
- showForSingleSeries: true
- plotOptions:
- bar:
- borderRadius: 0
- yaxis:
- min: 0
- decimalsInFloat: 2
- tickAmount: 10
- forceNiceScale: true
- all_series_config:
- show:
- offset_in_name: false
- header:
- title: Dagens och morgondagens elpriser
- show: true
- show_states: true
- colorize_states: true
- graph_span: 2d
- experimental:
- color_threshold: true
- span:
- start: day
- now:
- show: true
- label: Now
- series:
- - entity: sensor.nordpool_kwh_se3_sek_3_10_025
- name: Idag
- unit: Öre
- data_generator: |
- return entity.attributes.raw_today.map((entry) => {
- return [new Date(entry.start), entry.value * 100];
- });
- type: column
- show:
- legend_value: false
- in_header: false
- color_threshold:
- - value: 5
- color: green
- - value: 150
- color: orange
- - value: 250
- color: red
- - entity: sensor.nordpool_kwh_se3_sek_3_10_025
- name: Imorgon
- unit: Öre
- data_generator: |
- return entity.attributes.raw_tomorrow.map((entry) => {
- return [new Date(entry.start), entry.value * 100];
- });
- type: column
- show:
- legend_value: false
- in_header: false
- - entity: sensor.nordpool_kwh_se3_sek_3_10_025
- attribute: min
- type: column
- color: green
- float_precision: 2
- stroke_width: 2
- name: Dagens lägsta
- group_by:
- duration: 1d
- show:
- in_chart: false
- legend_value: false
- - entity: sensor.nordpool_kwh_se3_sek_3_10_025
- attribute: average
- type: column
- color: black
- float_precision: 2
- stroke_width: 2
- name: Snittpris idag
- group_by:
- duration: 1d
- show:
- in_chart: false
- legend_value: false
- - entity: sensor.nordpool_kwh_se3_sek_3_10_025
- attribute: max
- type: column
- color: red
- float_precision: 2
- stroke_width: 2
- name: Dagens högsta
- group_by:
- duration: 1d
- show:
- in_chart: false
- legend_value: false
- - entity: sensor.nordpool_kwh_se3_sek_3_10_025
- name: Just nu
- color: orange
- type: column
- show:
- in_chart: false
- float_precision: 2
- - entity: sensor.nordpool_kwh_se3_sek_3_10_025
- type: column
- name: nu
- show:
- legend_value: false
- in_header: false
- data_generator: |
- return entity.attributes.raw_today.map((entry) => {
- const nu = new Date()
- const series_entry = new Date(entry.start)
- if(nu.getHours() == series_entry.getHours())
- {return [series_entry, entry.value * 100]}
- return [series_entry,0 ];
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement