Advertisement
-Teme-

Nordpool 48hrs with average

Oct 16th, 2022
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.77 KB | None | 0 0
  1. type: custom:apexcharts-card
  2. header:
  3.   title: Electricity average and hourly price for 48hrs
  4.   show: true
  5.   show_states: false
  6. graph_span: 2d
  7. span:
  8.   start: day
  9. update_interval: 30min
  10. now:
  11.   show: true
  12.   label: Now
  13. apex_config:
  14.   grid:
  15.     show: true
  16.   legend:
  17.     show: false
  18. experimental:
  19.   color_threshold: true
  20. yaxis:
  21.   - id: price_chart
  22.     min: ~0
  23.     opposite: true
  24.     decimals: 3
  25.     apex_config:
  26.       tickAmount: 10
  27.       labels:
  28.         formatter: |
  29.          EVAL:v => `c ${v.toFixed(2)}`
  30.   - id: average
  31.     min: 0
  32.     apex_config:
  33.       tickAmount: 10
  34.       labels:
  35.         formatter: |
  36.          EVAL:v => `${v.toFixed(2)} c`
  37. series:
  38.   - entity: sensor.nordpool_kwh_fi_eur_3_095_024
  39.     yaxis_id: price_chart
  40.     type: column
  41.     unit: Cent
  42.     float_precision: 3
  43.     color_threshold:
  44.       - value: 0
  45.         color: green
  46.       - value: 20
  47.         color: orange
  48.       - value: 35
  49.         color: red
  50.     data_generator: |
  51.      return entity.attributes.raw_today.map((start, index) => {
  52.         return [new Date(start["start"]).getTime(), entity.attributes.raw_today[index]["value"]];
  53.       });
  54.     extend_to: false
  55.   - entity: sensor.nordpool_kwh_fi_eur_3_095_024
  56.     yaxis_id: price_chart
  57.     type: column
  58.     unit: Cent
  59.     float_precision: 3
  60.     color_threshold:
  61.       - value: 0
  62.         color: green
  63.       - value: 20
  64.         color: orange
  65.       - value: 35
  66.         color: red
  67.     data_generator: |
  68.      return entity.attributes.raw_tomorrow.map((start, index) => {
  69.         return [new Date(start["start"]).getTime(), entity.attributes.raw_tomorrow[index]["value"]];
  70.       });
  71.   - entity: sensor.nordpool_kwh_fi_eur_3_095_024
  72.     attribute: average
  73.     yaxis_id: average
  74.     type: line
  75. view_layout:
  76.   position: main
  77.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement