From 3258cd7922ec63fcd407e64ce1239ca589af8809 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Wed, 9 Jul 2025 16:58:39 -0400 Subject: [PATCH] Switch to Gauge Card Pro for computer stats displays --- main_dashboard.yaml | 1045 ++++++++++++++++++++++++++++++------------- 1 file changed, 737 insertions(+), 308 deletions(-) diff --git a/main_dashboard.yaml b/main_dashboard.yaml index f0e6563..c69c56e 100644 --- a/main_dashboard.yaml +++ b/main_dashboard.yaml @@ -3857,84 +3857,248 @@ views: cards: - type: heading heading: Kallen Desktop - - type: horizontal-stack - cards: - - type: gauge - entity: sensor.kallen_desktop_cpu_usage - unit: '%' - min: 0 - max: 100 - needle: true - segments: - - from: 0 - color: var(--success-color) - - from: 75 - color: var(--warning-color) - - from: 90 - color: var(--error-color) - label: ALERT - name: CPU Usage - - type: gauge - entity: sensor.kallen_desktop_memory_usage - name: RAM Usage - unit: '%' - min: 0 - max: 100 - needle: true - segments: - - from: 0 - color: var(--success-color) - - from: 75 - color: var(--warning-color) - - from: 90 - color: var(--error-color) - label: ALERT + - type: heading + icon: mdi:gauge + heading: Performance + heading_style: subtitle visibility: - - condition: state - entity: binary_sensor.kallen_desktop_on - state: 'on' + - condition: and + conditions: + - condition: state + entity: binary_sensor.kallen_desktop_on + state: 'on' + - condition: or + conditions: + - condition: and + conditions: + - condition: state + entity: sensor.kallen_desktop_cpu_usage + state_not: unavailable + - condition: state + entity: sensor.kallen_desktop_cpu_usage + state_not: unknown + - condition: and + conditions: + - condition: state + entity: sensor.kallen_desktop_cpu_temperature + state_not: unavailable + - condition: state + entity: sensor.kallen_desktop_cpu_temperature + state_not: unavailable - type: horizontal-stack cards: - - type: gauge - entity: sensor.kallen_desktop_cpu_temperature - unit: °C + - type: custom:gauge-card-pro + entity: sensor.kallen_desktop_cpu_usage + segments: + - from: 0 + color: var(--success-color) + - from: 75 + color: var(--warning-color) + - from: 90 + color: var(--error-color) + needle: true + gradient: true + titles: + primary: CPU + entity2: sensor.kallen_desktop_cpu_temperature min: 0 max: 100 - needle: true + inner: + mode: needle + min: 0 + max: 100 + segments: + - from: 0 + color: var(--success-color) + - from: 80 + color: var(--warning-color) + - from: 95 + color: var(--error-color) + gradient: true + gradient_resolution: high + gradient_resolution: high + value_texts: + primary: | + {% if states(entity) | int >= 90 %} + ALERT + {% else %} + {{ states(entity) | int }} + {% endif %} + secondary: | + {% if states(entity2) | int >= 95 %} + ALERT + {% else %} + {{ states(entity2) | int }} + {% endif %} + - type: custom:gauge-card-pro + entity: sensor.kallen_desktop_gpu_core_load segments: - from: 0 color: var(--success-color) - from: 80 color: var(--warning-color) - - from: 95 + - from: 90 color: var(--error-color) - label: ALERT - name: CPU Temp - - type: gauge - entity: sensor.kallen_desktop_gpu_temperature - name: GPU Temp - unit: °C + needle: true + gradient: true + titles: + primary: GPU + entity2: sensor.kallen_desktop_gpu_temperature min: 0 max: 100 - needle: true + inner: + mode: needle + min: 0 + max: 100 + segments: + - from: 0 + color: var(--success-color) + - from: 75 + color: var(--warning-color) + - from: 85 + color: var(--error-color) + gradient: true + gradient_resolution: high + gradient_resolution: high + value_texts: + primary: | + {% if states(entity) | int >= 90 %} + ALERT + {% else %} + {{ states(entity) | int }} + {% endif %} + secondary: | + {% if states(entity2) | int >= 85 %} + ALERT + {% else %} + {{ states(entity2) | int }} + {% endif %} + visibility: + - condition: and + conditions: + - condition: state + entity: binary_sensor.kallen_desktop_on + state: 'on' + - condition: or + conditions: + - condition: and + conditions: + - condition: state + entity: sensor.kallen_desktop_cpu_usage + state_not: unavailable + - condition: state + entity: sensor.kallen_desktop_cpu_usage + state_not: unknown + - condition: and + conditions: + - condition: state + entity: sensor.kallen_desktop_cpu_temperature + state_not: unavailable + - condition: state + entity: sensor.kallen_desktop_cpu_temperature + state_not: unknown + - condition: and + conditions: + - condition: state + entity: sensor.kallen_desktop_gpu_core_load + state_not: unavailable + - condition: state + entity: sensor.kallen_desktop_gpu_core_load + state_not: unavailable + - condition: and + conditions: + - condition: state + entity: sensor.kallen_desktop_gpu_temperature + state_not: unavailable + - condition: state + entity: sensor.kallen_desktop_gpu_temperature + state_not: unavailable + - type: horizontal-stack + cards: + - type: custom:gauge-card-pro + entity: sensor.kallen_desktop_memory_usage segments: - from: 0 color: var(--success-color) - - from: 88 + - from: 80 color: var(--warning-color) - - from: 95 + - from: 90 color: var(--error-color) - label: ALERT + needle: true + gradient: true + titles: + primary: RAM + gradient_resolution: high + value_texts: + primary: | + {% if states(entity) | int >= 90 %} + ALERT + {% else %} + {{ states(entity) | int }} + {% endif %} + - type: custom:gauge-card-pro + entity: sensor.kallen_desktop_gpu_vram_usage + segments: + - from: 0 + color: var(--success-color) + - from: 80 + color: var(--warning-color) + - from: 90 + color: var(--error-color) + needle: true + gradient: true + titles: + primary: VRAM + gradient_resolution: high + value_texts: + primary: | + {% if states(entity) | int >= 90 %} + ALERT + {% else %} + {{ states(entity) | int }} + {% endif %} visibility: - - condition: state - entity: binary_sensor.kallen_desktop_on - state: 'on' + - condition: and + conditions: + - condition: state + entity: binary_sensor.kallen_desktop_on + state: 'on' + - condition: or + conditions: + - condition: and + conditions: + - condition: state + entity: sensor.kallen_desktop_memory_usage + state_not: unavailable + - condition: state + entity: sensor.kallen_desktop_memory_usage + state_not: unknown + - condition: and + conditions: + - condition: state + entity: sensor.kallen_desktop_gpu_vram_usage + state_not: unavailable + - condition: state + entity: sensor.kallen_desktop_gpu_vram_usage + state_not: unavailable + - type: heading + icon: mdi:power + heading: Running + heading_style: subtitle - type: entities entities: - entity: binary_sensor.kallen_desktop_on name: Status show_header_toggle: false state_color: true + - type: heading + icon: mdi:chart-bar + heading: Stats + heading_style: subtitle + visibility: + - condition: state + entity: binary_sensor.kallen_desktop_on + state: 'on' - type: entities entities: - entity: sensor.kallen_desktop_power @@ -3949,10 +4113,6 @@ views: name: System Uptime - entity: sensor.kallen_desktop_system_idle_time name: Idle Time - - entity: sensor.kallen_desktop_gpu_core_load - name: GPU Core Load - - entity: sensor.kallen_desktop_gpu_memory_used - name: GPU VRAM Used - entity: sensor.kallen_desktop_memory_used name: Memory Used - entity: sensor.kallen_desktop_virtual_memory_usage @@ -3971,6 +4131,14 @@ views: - condition: state entity: binary_sensor.kallen_desktop_on state: 'on' + - type: heading + icon: mdi:harddisk + heading: Drive Temps + heading_style: subtitle + visibility: + - condition: state + entity: binary_sensor.kallen_desktop_on + state: 'on' - type: custom:battery-state-card icon: mdi:harddisk color_thresholds: @@ -4002,6 +4170,10 @@ views: - condition: state entity: binary_sensor.kallen_desktop_on state: 'on' + - type: heading + icon: mdi:swap-horizontal + heading: Controls + heading_style: subtitle - type: entities entities: - entity: script.kallen_desktop_refresh @@ -4343,80 +4515,108 @@ views: cards: - type: horizontal-stack cards: - - type: gauge + - type: custom:gauge-card-pro entity: sensor.tony_desktop_power - name: Tony Desktop - unit: W - min: 0 - max: 750 - needle: true segments: - from: 0 color: var(--success-color) - label: 'Off' - - from: 10 - color: var(--success-color) - from: 500 color: var(--warning-color) - from: 650 color: var(--error-color) - label: ALERT - - type: gauge + min: 0 + max: 750 + needle: true + gradient: true + titles: + primary: Tony Desktop + value_texts: + primary: | + {% if states(entity) | int < 10 %} + Off + {% elif states(entity) | int >= 650 %} + ALERT + {% else %} + {{ states(entity) | int }} + {% endif %} + gradient_resolution: high + - type: custom:gauge-card-pro entity: sensor.tina_desktop_power - name: Tina Desktop - unit: W - min: 0 - max: 750 - needle: true segments: - from: 0 color: var(--success-color) - label: 'Off' - - from: 10 - color: var(--success-color) - from: 500 color: var(--warning-color) - from: 650 color: var(--error-color) - label: ALERT + min: 0 + max: 750 + needle: true + gradient: true + titles: + primary: Tina Desktop + value_texts: + primary: | + {% if states(entity) | int < 10 %} + Off + {% elif states(entity) | int >= 650 %} + ALERT + {% else %} + {{ states(entity) | int }} + {% endif %} + gradient_resolution: high - type: horizontal-stack cards: - - type: gauge + - type: custom:gauge-card-pro entity: sensor.kallen_desktop_power - name: Kallen Desktop - unit: W - min: 0 - max: 500 - needle: true segments: - from: 0 color: var(--success-color) - label: 'Off' - - from: 10 - color: var(--success-color) - from: 350 color: var(--warning-color) - from: 450 color: var(--error-color) - label: ALERT - - type: gauge - entity: sensor.basement_server_power - name: Basement Server - unit: W min: 0 - max: 650 + max: 500 needle: true + gradient: true + titles: + primary: Kallen Desktop + value_texts: + primary: | + {% if states(entity) | int < 10 %} + Off + {% elif states(entity) | int >= 450 %} + ALERT + {% else %} + {{ states(entity) | int }} + {% endif %} + gradient_resolution: high + - type: custom:gauge-card-pro + entity: sensor.basement_server_power segments: - from: 0 color: var(--success-color) - label: 'Off' - - from: 10 - color: var(--success-color) - from: 400 color: var(--warning-color) - from: 550 color: var(--error-color) - label: ALERT + min: 0 + max: 650 + needle: true + gradient: true + titles: + primary: Basement Server + value_texts: + primary: | + {% if states(entity) | int < 10 %} + Off + {% elif states(entity) | int >= 550 %} + ALERT + {% else %} + {{ states(entity) | int }} + {% endif %} + gradient_resolution: high - type: grid cards: - type: heading @@ -4451,12 +4651,8 @@ views: state_not: unavailable - type: horizontal-stack cards: - - type: gauge + - type: custom:gauge-card-pro entity: sensor.tony_asus_cpu_usage - unit: '%' - min: 0 - max: 100 - needle: true segments: - from: 0 color: var(--success-color) @@ -4464,79 +4660,83 @@ views: color: var(--warning-color) - from: 90 color: var(--error-color) - label: ALERT - name: CPU Usage - - type: gauge - entity: sensor.tony_desktop_memory_usage - name: RAM Usage - unit: '%' + needle: true + gradient: true + titles: + primary: CPU + entity2: sensor.tony_desktop_cpu_temperature min: 0 max: 100 - needle: true - segments: - - from: 0 - color: var(--success-color) - - from: 75 - color: var(--warning-color) - - from: 90 - color: var(--error-color) - label: ALERT - visibility: - - condition: and - conditions: - - condition: state - entity: binary_sensor.tony_desktop_on - state: 'on' - - condition: or - conditions: - - condition: and - conditions: - - condition: state - entity: sensor.tony_asus_cpu_usage - state_not: unavailable - - condition: state - entity: sensor.tony_asus_cpu_usage - state_not: unknown - - condition: and - conditions: - - condition: state - entity: sensor.tony_desktop_memory_usage - state_not: unavailable - - condition: state - entity: sensor.tony_desktop_memory_usage - state_not: unavailable - - type: horizontal-stack - cards: - - type: gauge - entity: sensor.tony_desktop_cpu_temperature - unit: °C - min: 0 - max: 100 - needle: true + inner: + mode: needle + min: 0 + max: 100 + segments: + - from: 0 + color: var(--success-color) + - from: 80 + color: var(--warning-color) + - from: 95 + color: var(--error-color) + gradient: true + gradient_resolution: high + gradient_resolution: high + value_texts: + primary: | + {% if states(entity) | int >= 90 %} + ALERT + {% else %} + {{ states(entity) | int }} + {% endif %} + secondary: | + {% if states(entity2) | int >= 95 %} + ALERT + {% else %} + {{ states(entity2) | int }} + {% endif %} + - type: custom:gauge-card-pro + entity: sensor.tony_desktop_gpu_core_load segments: - from: 0 color: var(--success-color) - from: 80 color: var(--warning-color) - - from: 95 + - from: 90 color: var(--error-color) - label: ALERT - name: CPU Temp - - type: gauge - entity: sensor.tony_desktop_gpu_temperature - name: GPU Temp - unit: °C + needle: true + gradient: true + titles: + primary: GPU + entity2: sensor.tony_desktop_gpu_temperature min: 0 max: 100 - needle: true - segments: - - from: 0 - color: var(--success-color) - - from: 88 - color: var(--warning-color) - - from: 95 - color: var(--error-color) - label: ALERT + inner: + mode: needle + min: 0 + max: 100 + segments: + - from: 0 + color: var(--success-color) + - from: 75 + color: var(--warning-color) + - from: 85 + color: var(--error-color) + gradient: true + gradient_resolution: high + gradient_resolution: high + value_texts: + primary: | + {% if states(entity) | int >= 90 %} + ALERT + {% else %} + {{ states(entity) | int }} + {% endif %} + secondary: | + {% if states(entity2) | int >= 85 %} + ALERT + {% else %} + {{ states(entity2) | int }} + {% endif %} visibility: - condition: and conditions: @@ -4556,10 +4756,94 @@ views: - condition: and conditions: - condition: state - entity: sensor.tony_desktop_memory_usage + entity: sensor.tony_desktop_cpu_temperature state_not: unavailable - condition: state - entity: sensor.tony_desktop_memory_usage + entity: sensor.tony_desktop_cpu_temperature + state_not: unknown + - condition: and + conditions: + - condition: state + entity: sensor.tony_desktop_gpu_core_load + state_not: unavailable + - condition: state + entity: sensor.tony_desktop_gpu_core_load + state_not: unavailable + - condition: and + conditions: + - condition: state + entity: sensor.tony_desktop_gpu_temperature + state_not: unavailable + - condition: state + entity: sensor.tony_desktop_gpu_temperature + state_not: unavailable + - type: horizontal-stack + cards: + - type: custom:gauge-card-pro + entity: sensor.tony_asus_memory_usage + segments: + - from: 0 + color: var(--success-color) + - from: 80 + color: var(--warning-color) + - from: 90 + color: var(--error-color) + needle: true + gradient: true + titles: + primary: RAM + gradient_resolution: high + value_texts: + primary: | + {% if states(entity) | int >= 90 %} + ALERT + {% else %} + {{ states(entity) | int }} + {% endif %} + - type: custom:gauge-card-pro + entity: sensor.tony_desktop_gpu_vram_usage + segments: + - from: 0 + color: var(--success-color) + - from: 80 + color: var(--warning-color) + - from: 90 + color: var(--error-color) + needle: true + gradient: true + titles: + primary: VRAM + gradient_resolution: high + value_texts: + primary: | + {% if states(entity) | int >= 90 %} + ALERT + {% else %} + {{ states(entity) | int }} + {% endif %} + visibility: + - condition: and + conditions: + - condition: state + entity: binary_sensor.tony_desktop_on + state: 'on' + - condition: or + conditions: + - condition: and + conditions: + - condition: state + entity: sensor.tony_asus_memory_usage + state_not: unavailable + - condition: state + entity: sensor.tony_asus_memory_usage + state_not: unknown + - condition: and + conditions: + - condition: state + entity: sensor.tony_desktop_gpu_vram_usage + state_not: unavailable + - condition: state + entity: sensor.tony_desktop_gpu_vram_usage state_not: unavailable - type: heading icon: mdi:power @@ -4593,10 +4877,6 @@ views: name: System Uptime - entity: sensor.tony_asus_system_idle_time name: Idle Time - - entity: sensor.tony_desktop_gpu_core_load - name: GPU Core Load - - entity: sensor.tony_desktop_gpu_memory_used - name: GPU VRAM Used - entity: sensor.tony_asus_memory_used name: Memory Used - entity: sensor.tony_desktop_virtual_memory_usage @@ -4706,12 +4986,8 @@ views: state_not: unavailable - type: horizontal-stack cards: - - type: gauge + - type: custom:gauge-card-pro entity: sensor.xia_desktop_cpu_usage - unit: '%' - min: 0 - max: 100 - needle: true segments: - from: 0 color: var(--success-color) @@ -4719,79 +4995,83 @@ views: color: var(--warning-color) - from: 90 color: var(--error-color) - label: ALERT - name: CPU Usage - - type: gauge - entity: sensor.xia_desktop_memory_usage - name: RAM Usage - unit: '%' + needle: true + gradient: true + titles: + primary: CPU + entity2: sensor.tina_desktop_cpu_temperature min: 0 max: 100 - needle: true - segments: - - from: 0 - color: var(--success-color) - - from: 75 - color: var(--warning-color) - - from: 90 - color: var(--error-color) - label: ALERT - visibility: - - condition: and - conditions: - - condition: state - entity: binary_sensor.tina_desktop_on - state: 'on' - - condition: or - conditions: - - condition: and - conditions: - - condition: state - entity: sensor.xia_desktop_cpu_usage - state_not: unavailable - - condition: state - entity: sensor.xia_desktop_cpu_usage - state_not: unknown - - condition: and - conditions: - - condition: state - entity: sensor.tina_desktop_memory_usage - state_not: unavailable - - condition: state - entity: sensor.tina_desktop_memory_usage - state_not: unavailable - - type: horizontal-stack - cards: - - type: gauge - entity: sensor.tina_desktop_cpu_temperature - unit: °C - min: 0 - max: 100 - needle: true + inner: + mode: needle + min: 0 + max: 100 + segments: + - from: 0 + color: var(--success-color) + - from: 80 + color: var(--warning-color) + - from: 95 + color: var(--error-color) + gradient: true + gradient_resolution: high + gradient_resolution: high + value_texts: + primary: | + {% if states(entity) | int >= 90 %} + ALERT + {% else %} + {{ states(entity) | int }} + {% endif %} + secondary: | + {% if states(entity2) | int >= 95 %} + ALERT + {% else %} + {{ states(entity2) | int }} + {% endif %} + - type: custom:gauge-card-pro + entity: sensor.tina_desktop_gpu_core_load segments: - from: 0 color: var(--success-color) - from: 80 color: var(--warning-color) - - from: 95 + - from: 90 color: var(--error-color) - label: ALERT - name: CPU Temp - - type: gauge - entity: sensor.tina_desktop_gpu_temperature - name: GPU Temp - unit: °C + needle: true + gradient: true + titles: + primary: GPU + entity2: sensor.tina_desktop_gpu_temperature min: 0 max: 100 - needle: true - segments: - - from: 0 - color: var(--success-color) - - from: 88 - color: var(--warning-color) - - from: 95 - color: var(--error-color) - label: ALERT + inner: + mode: needle + min: 0 + max: 100 + segments: + - from: 0 + color: var(--success-color) + - from: 75 + color: var(--warning-color) + - from: 85 + color: var(--error-color) + gradient: true + gradient_resolution: high + gradient_resolution: high + value_texts: + primary: | + {% if states(entity) | int >= 90 %} + ALERT + {% else %} + {{ states(entity) | int }} + {% endif %} + secondary: | + {% if states(entity2) | int >= 85 %} + ALERT + {% else %} + {{ states(entity2) | int }} + {% endif %} visibility: - condition: and conditions: @@ -4808,6 +5088,82 @@ views: - condition: state entity: sensor.xia_desktop_cpu_usage state_not: unknown + - condition: and + conditions: + - condition: state + entity: sensor.tina_desktop_cpu_temperature + state_not: unavailable + - condition: state + entity: sensor.tina_desktop_cpu_temperature + state_not: unknown + - condition: and + conditions: + - condition: state + entity: sensor.tina_desktop_gpu_core_load + state_not: unavailable + - condition: state + entity: sensor.tina_desktop_gpu_core_load + state_not: unavailable + - condition: and + conditions: + - condition: state + entity: sensor.tina_desktop_gpu_temperature + state_not: unavailable + - condition: state + entity: sensor.tina_desktop_gpu_temperature + state_not: unavailable + - type: horizontal-stack + cards: + - type: custom:gauge-card-pro + entity: sensor.tina_desktop_memory_usage + segments: + - from: 0 + color: var(--success-color) + - from: 80 + color: var(--warning-color) + - from: 90 + color: var(--error-color) + needle: true + gradient: true + titles: + primary: RAM + gradient_resolution: high + value_texts: + primary: | + {% if states(entity) | int >= 90 %} + ALERT + {% else %} + {{ states(entity) | int }} + {% endif %} + - type: custom:gauge-card-pro + entity: sensor.tina_desktop_gpu_vram_usage + segments: + - from: 0 + color: var(--success-color) + - from: 80 + color: var(--warning-color) + - from: 90 + color: var(--error-color) + needle: true + gradient: true + titles: + primary: VRAM + gradient_resolution: high + value_texts: + primary: | + {% if states(entity) | int >= 90 %} + ALERT + {% else %} + {{ states(entity) | int }} + {% endif %} + visibility: + - condition: and + conditions: + - condition: state + entity: binary_sensor.tina_desktop_on + state: 'on' + - condition: or + conditions: - condition: and conditions: - condition: state @@ -4815,6 +5171,14 @@ views: state_not: unavailable - condition: state entity: sensor.tina_desktop_memory_usage + state_not: unknown + - condition: and + conditions: + - condition: state + entity: sensor.tina_desktop_gpu_vram_usage + state_not: unavailable + - condition: state + entity: sensor.tina_desktop_gpu_vram_usage state_not: unavailable - type: heading icon: mdi:power @@ -4848,10 +5212,6 @@ views: name: System Uptime - entity: sensor.xia_desktop_system_idle_time name: Idle Time - - entity: sensor.tina_desktop_gpu_core_load - name: GPU Core Load - - entity: sensor.tina_desktop_gpu_memory_used - name: GPU VRAM Used - entity: sensor.xia_desktop_memory_used name: Memory Used - entity: sensor.tina_desktop_virtual_memory_usage @@ -4954,12 +5314,8 @@ views: state_not: unavailable - type: horizontal-stack cards: - - type: gauge + - type: custom:gauge-card-pro entity: sensor.asus_laptop_cpu_usage - unit: '%' - min: 0 - max: 100 - needle: true segments: - from: 0 color: var(--success-color) @@ -4967,92 +5323,169 @@ views: color: var(--warning-color) - from: 90 color: var(--error-color) - label: ALERT - name: CPU Usage - - type: gauge - entity: sensor.asus_laptop_memory_usage - name: RAM Usage - unit: '%' + needle: true + gradient: true + titles: + primary: CPU + entity2: sensor.asus_laptop_cpu_temperature min: 0 max: 100 - needle: true - segments: - - from: 0 - color: var(--success-color) - - from: 75 - color: var(--warning-color) - - from: 90 - color: var(--error-color) - label: ALERT - visibility: - - condition: or - conditions: - - condition: and - conditions: - - condition: state - entity: sensor.asus_laptop_cpu_usage - state_not: unavailable - - condition: state - entity: sensor.asus_laptop_cpu_usage - state_not: unknown - - condition: and - conditions: - - condition: state - entity: sensor.asus_laptop_memory_usage - state_not: unavailable - - condition: state - entity: sensor.asus_laptop_memory_usage - state_not: unavailable - - type: horizontal-stack - cards: - - type: gauge - entity: sensor.asus_laptop_cpu_temperature - unit: °C - min: 0 - max: 100 - needle: true + inner: + mode: needle + min: 0 + max: 100 + segments: + - from: 0 + color: var(--success-color) + - from: 80 + color: var(--warning-color) + - from: 95 + color: var(--error-color) + gradient: true + gradient_resolution: high + gradient_resolution: high + value_texts: + primary: | + {% if states(entity) | int >= 90 %} + ALERT + {% else %} + {{ states(entity) | int }} + {% endif %} + secondary: | + {% if states(entity2) | int >= 95 %} + ALERT + {% else %} + {{ states(entity2) | int }} + {% endif %} + - type: custom:gauge-card-pro + entity: sensor.asus_laptop_gpu_core_load segments: - from: 0 color: var(--success-color) - from: 80 color: var(--warning-color) - - from: 95 + - from: 90 color: var(--error-color) - label: ALERT - name: CPU Temp - - type: gauge - entity: sensor.asus_laptop_gpu_temperature - name: GPU Temp - unit: °C + needle: true + gradient: true + titles: + primary: GPU + entity2: sensor.asus_laptop_gpu_temperature min: 0 max: 100 - needle: true + inner: + mode: needle + min: 0 + max: 100 + segments: + - from: 0 + color: var(--success-color) + - from: 75 + color: var(--warning-color) + - from: 85 + color: var(--error-color) + gradient: true + gradient_resolution: high + gradient_resolution: high + value_texts: + primary: | + {% if states(entity) | int >= 90 %} + ALERT + {% else %} + {{ states(entity) | int }} + {% endif %} + secondary: | + {% if states(entity2) | int >= 85 %} + ALERT + {% else %} + {{ states(entity2) | int }} + {% endif %} + visibility: + - condition: and + conditions: + - condition: state + entity: binary_sensor.tina_desktop_on + state: 'on' + - condition: or + conditions: + - condition: and + conditions: + - condition: state + entity: sensor.xia_desktop_cpu_usage + state_not: unavailable + - condition: state + entity: sensor.xia_desktop_cpu_usage + state_not: unknown + - condition: and + conditions: + - condition: state + entity: sensor.tina_desktop_gpu_core_load + state_not: unavailable + - condition: state + entity: sensor.tina_desktop_gpu_core_load + state_not: unavailable + - type: horizontal-stack + cards: + - type: custom:gauge-card-pro + entity: sensor.asus_laptop_memory_usage segments: - from: 0 color: var(--success-color) - - from: 88 + - from: 80 color: var(--warning-color) - - from: 95 + - from: 90 color: var(--error-color) - label: ALERT + needle: true + gradient: true + titles: + primary: RAM + gradient_resolution: high + value_texts: + primary: | + {% if states(entity) | int >= 90 %} + ALERT + {% else %} + {{ states(entity) | int }} + {% endif %} + - type: custom:gauge-card-pro + entity: sensor.asus_laptop_gpu_vram_usage + segments: + - from: 0 + color: var(--success-color) + - from: 80 + color: var(--warning-color) + - from: 90 + color: var(--error-color) + needle: true + gradient: true + titles: + primary: VRAM + gradient_resolution: high + value_texts: + primary: | + {% if states(entity) | int >= 90 %} + ALERT + {% else %} + {{ states(entity) | int }} + {% endif %} visibility: - condition: or conditions: - condition: and conditions: - condition: state - entity: sensor.asus_laptop_cpu_usage + entity: sensor.asus_laptop_memory_usage state_not: unavailable - condition: state - entity: sensor.asus_laptop_cpu_usage + entity: sensor.asus_laptop_memory_usage state_not: unknown - condition: and conditions: - condition: state - entity: sensor.asus_laptop_memory_usage + entity: sensor.asus_laptop_gpu_vram_usage state_not: unavailable - condition: state - entity: sensor.asus_laptop_memory_usage + entity: sensor.asus_laptop_gpu_vram_usage state_not: unavailable - type: heading icon: mdi:chart-bar @@ -5079,10 +5512,6 @@ views: name: System Uptime - entity: sensor.asus_laptop_system_idle_time name: Idle Time - - entity: sensor.asus_laptop_gpu_core_load - name: GPU Core Load - - entity: sensor.asus_laptop_gpu_memory_used - name: GPU VRAM Used - entity: sensor.asus_laptop_memory_used name: Memory Used - entity: sensor.asus_laptop_virtual_memory_usage