/
/
/
1# Glances - Dashboard Overview Tile for {{ ha_display_name }}
2# Add to the horizontal-stack cards array in the overview section
3
4 - type: custom:mushroom-template-card
5 primary: {{ ha_display_name }}
6 secondary: >-
7 {{ '{%' }} if states('sensor.{{ ha_entity_prefix }}_cpu_usage') not in ['unknown', 'unavailable'] {{ '%}' }}
8 CPU: {{ '{{' }} states('sensor.{{ ha_entity_prefix }}_cpu_usage') | float(0) | round(1) {{ '}}' }}% |
9 Mem: {{ '{{' }} states('sensor.{{ ha_entity_prefix }}_memory_usage') | float(0) | round(1) {{ '}}' }}%
10 {{ '{%' }} else {{ '%}' }}
11 System Offline
12 {{ '{%' }} endif {{ '%}' }}
13 icon: {{ ha_host_icon }}
14 icon_color: >-
15 {{ '{%' }} if states('sensor.{{ ha_entity_prefix }}_cpu_usage') not in ['unknown', 'unavailable'] {{ '%}' }}
16 green
17 {{ '{%' }} else {{ '%}' }}
18 red
19 {{ '{%' }} endif {{ '%}' }}
20 layout: vertical
21