marlar

Nordpool apexhart-card

Jan 8th, 2022 (edited)
1,106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.04 KB | None | 0 0
  1. type: custom:apexcharts-card
  2. experimental:
  3.   color_threshold: true
  4. apex_config:
  5.   chart:
  6.     height: 350px
  7. graph_span: 48h
  8. hours_12: false
  9. header:
  10.   title: Elpriser pr. time (kr/kWh)
  11.   standard_format: true
  12.   show_states: true
  13.   show: true
  14. span:
  15.   start: day
  16. now:
  17.   show: true
  18.   label: Nu
  19.   color: lightblue
  20. yaxis:
  21.   - min: 0
  22.     decimals: 2
  23. series:
  24.   - entity: sensor.nordpool_kwh_dk2_dkk_2_00_025
  25.     name: Inkl. afgifter
  26.     type: column
  27.     curve: stepline
  28.     color: orange
  29.     stroke_width: 2
  30.     float_precision: 2
  31.     extend_to_end: false
  32.     show:
  33.       in_header: raw
  34.       extremas: true
  35.       legend_value: false
  36.       header_color_threshold: true
  37.     data_generator: >
  38.      return
  39.       entity.attributes.raw_today.concat(entity.attributes.raw_tomorrow).map((entry)
  40.       => {
  41.         return [new Date(entry.start), entry.value];
  42.       });
  43.     color_threshold:
  44.       - value: 0
  45.         color: 74dc74
  46.         opacity: 0
  47.       - value: 3
  48.         color: ffeb00
  49.       - value: 3.5
  50.         color: ff0000
  51.  
Add Comment
Please, Sign In to add comment