Mini Graph Code

 avatar
unknown
plain_text
5 hours ago
1.6 kB
13
Indexable
type: custom:mini-graph-card
name: °C Interna
icon: mdi:home-thermometer
entities:
  - sensor.a4_c1_38_9b_77_6b_776b_temperature
hours_to_show: 24
points_per_hour: 6
aggregate_func: avg
line_width: 6
show:
  icon: true
  name: true
  state: true
  fill: fade
  labels: false
  extrema: true
font_size: 90
color_thresholds_transition: smooth
color_thresholds:
  - value: 20
    color: "#4da6ff"
  - value: 23
    color: "#6dd56d"
  - value: 26
    color: "#ffb347"
  - value: 29
    color: "#ff5252"
card_mod:
  style: |

    ha-card {

      background: transparent !important;

      border: none !important;

      box-shadow: none !important;

      padding: 12px;

      overflow: hidden;

      transition: all 0.3s ease;
    }

    .header {
      padding-bottom: 8px !important;
    }

    .name {
      font-size: 16px !important;
      font-weight: 700 !important;
      color: white !important;
      text-shadow: 0 0 8px rgba(255,255,255,0.15);
    }

    .state {
      font-size: 20px !important;
      font-weight: 700 !important;
      color: white !important;
      text-shadow: 0 0 6px rgba(255,255,255,0.20);
    }

    .icon {
      color: white !important;
      filter: drop-shadow(0 0 10px rgba(255,255,255,0.35));
    }

    svg {
      overflow: visible !important;
    }

    path.line {
      filter: drop-shadow(0 0 8px rgba(255,255,255,0.20));
    }

    .graph {
      margin-top: 6px;
    }

    ha-card:active {
      transform: translateY(3px) scale(0.98);
    }
Editor is loading...