Nordpool / ApexCharts Card for Tablets

This is what I’m using at the moment. Colors are nice :grinning:

type: custom:apexcharts-card
experimental:
  color_threshold: true
all_series_config:
  color_threshold:
    - value: 2
      color: 0fff00
    - value: 5
      color: 0bb303
    - value: 10
      color: ff8b55
    - value: 15
      color: ffa200
    - value: 20
      color: ff0000
hours_12: false
header:
  show: true
  title: Pörssisähkön hinta
  show_states: true
  floating: false
  colorize_states: true
now:
  show: true
  color: '#ff0000'
  label: Nyt
graph_span: 24h
span:
  start: hour
yaxis:
  - min: 3
    decimals: 1
    apex_config:
      tickAmount: 5
series:
  - entity: sensor.nordpool_kwh_fi_eur_2_10_024
    name: Tänään
    unit: c/kWh
    data_generator: |
      return entity.attributes.raw_today.map((entry) => {
        return [new Date(entry.start), entry.value];
      });
    type: column
    show:
      legend_value: false
      in_header: true
      header_color_threshold: true
    extend_to: end
  - entity: sensor.nordpool_kwh_fi_eur_2_10_024
    name: Huomenna
    unit: c/kWh
    data_generator: |
      return entity.attributes.raw_tomorrow.map((entry) => {
        return [new Date(entry.start), entry.value];
      });
    type: column
    show:
      legend_value: false
      in_header: false

1 Like