Skip to content

Instantly share code, notes, and snippets.

@nicopasla
Created March 15, 2025 11:38
Show Gist options
  • Select an option

  • Save nicopasla/21ef9daca907ab7ebdfb60c6a1aab4e4 to your computer and use it in GitHub Desktop.

Select an option

Save nicopasla/21ef9daca907ab7ebdfb60c6a1aab4e4 to your computer and use it in GitHub Desktop.
Home Assistant UV Index Gauge Card

Home Assistant UV Index Gauge Card

Circular gauge showing the UV Index

type: custom:modern-circular-gauge
entity: sensor.home_current_uv_index
secondary:
  entity: sensor.home_current_uv_index
  show_unit: false
  show_state: true
needle: true
smooth_segments: true
adaptive_icon_color: true
segments:
  - from: 0
    color:
      - 78
      - 180
      - 0
    label: Low
  - from: 2
    color:
      - 160
      - 206
      - 0
    label: Low
  - from: 3
    color:
      - 247
      - 228
      - 0
    label: Moderate
  - from: 4
    color:
      - 248
      - 182
      - 0
    label: Moderate
  - from: 5
    color:
      - 248
      - 135
      - 64
    label: Moderate
  - from: 6
    color:
      - 248
      - 89
      - 0
    label: High
  - from: 7
    color:
      - 232
      - 44
      - 14
    label: High
  - from: 8
    color:
      - 216
      - 0
      - 29
    label: Very high
  - from: 9
    color:
      - 255
      - 0
      - 153
    label: Very high
  - from: 10
    color:
      - 181
      - 76
      - 255
    label: Very high
  - from: 11
    color:
      - 153
      - 140
      - 255
    label: Extreme
header_position: top
show_header: false
show_icon: true
grid_options:
  columns: 6
  rows: 3
max: 12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment