Untitled

mail@pastecode.io avatar
unknown
yaml
a year ago
1.8 kB
1
Indexable
Never
type: custom:apexcharts-card
graph_span: 48h
span:
  start: day
  offset: +0H
header:
  title: Timpriser
  show: true
  show_states: true
  colorize_states: true
hours_12: false
stacked: false
now:
  show: true
  label: Nu
  color: red
series:
  - entity: sensor.nordpool
    name: Idag
    opacity: 0.3
    type: area
    stroke_width: 0.7
    extend_to: false
    curve: stepline
    data_generator: |
      var a = entity.attributes.raw_today.map((start, index) => {
        return [new Date(start["start"]).getTime(), entity.attributes.raw_today[index]["value"]];
      });
      return a;
    show:
      extremas: true
      header_color_threshold: true
      name_in_header: true
      in_header: raw
  - entity: sensor.nordpool
    name: Imorgon
    opacity: 0.3
    type: area
    stroke_width: 0.7
    curve: stepline
    data_generator: |
      return entity.attributes.raw_tomorrow.map((start, index) => {

        return [new Date(start["start"]).getTime(), entity.attributes.raw_tomorrow[index]["value"]];

      });
    show:
      extremas: true
      header_color_threshold: true
      in_header: false
apex_config:
  legend:
    show: false
    floating: true
    offsetY: 25
  yaxis:
    opposite: false
    reversed: false
    logarithmic: false
    decimalsInFloat: 2
    labels:
      show: true
    tooltip:
      enabled: true
    crosshairs:
      show: true
  xaxis:
    labels:
      show: true
      rotate: -45
      rotateAlways: true
    logarithmic: true
  stroke:
    show: true
    dashArray:
      - 0
      - 0
      - 2
      - 2
  plotOptions:
    candlestick:
      colors:
        upward: '#00B746'
        downward: '#EF403C'
  markers:
    size:
      - 2
      - 1
      - 0
      - 0
  grid:
    show: true
    strokeDashArray: 1
    position: front
    xaxis:
      lines:
        show: true