Part 2
- type: custom:stack-in-card
cards:
- type: custom:layout-card
layout_type: custom:grid-layout
layout:
grid-template-columns: 42px auto
margin: '-4px -4px -8px -4px;'
cards:
- type: custom:mushroom-template-card
entity: sensor.desktop_space_used_percent
icon: mdi:harddisk
badge_icon: |-
{% if states(entity) in ['unavailable','unknown'] %}
mdi:help
{% endif %}
badge_color: |-
{% if states(entity) in ['unavailable','unknown'] %}
orange
{% endif %}
icon_color: |-
{% if states(entity) in ['unavailable','unknown'] %}
disabled
{% elif states(entity) | int < 40 %}
green
{% elif states(entity) | int < 72 %}
orange
{% else %}
red
{% endif %}
card_mod:
style: |
ha-card {
background: none;
--ha-card-box-shadow: 0px;
}
- type: custom:bar-card
entity: sensor.desktop_space_used_percent
height: 42px
entity_row: true
name: '1TB '
severity:
- from: '0'
to: '40'
color: rgb(var(--mush-rgb-green))
- from: '40'
to: '72'
color: rgb(var(--mush-rgb-orange))
- from: '72'
to: '100'
color: rgb(var(--mush-rgb-red))
positions:
icon: 'off'
indicator: 'off'
card_mod:
style: |
ha-card {
{% if states('sensor.desktop_space_used_percent') in ['unavailable','unknown'] %}
display: none;
{% endif %}
padding: 12px;
margin-left: 12px;
--bar-card-border-radius: 12px;
--mush-rgb-red: 244, 67, 54;
--mush-rgb-pink: 233, 30, 99;
--mush-rgb-purple: 156, 39, 176;
--mush-rgb-deep-purple: 103, 58, 183;
--mush-rgb-indigo: 63, 81, 181;
--mush-rgb-blue: 33, 150, 243;
--mush-rgb-light-blue: 3, 169, 244;
--mush-rgb-cyan: 0, 188, 212;
--mush-rgb-teal: 0, 150, 136;
--mush-rgb-green: 76, 175, 80;
--mush-rgb-light-green: 139, 195, 74;
--mush-rgb-lime: 205, 220, 57;
--mush-rgb-yellow: 255, 235, 59;
--mush-rgb-amber: 255, 193, 7;
--mush-rgb-orange: 255, 152, 0;
--mush-rgb-deep-orange: 255, 87, 34;
--mush-rgb-brown: 121, 85, 72;
--mush-rgb-grey: 158, 158, 158;
--mush-rgb-blue-grey: 96, 125, 139;
--mush-rgb-black: 0, 0, 0;
--mush-rgb-white: 255, 255, 255;
}
bar-card-value {
margin: 12px;
font-size: 12px;
font-weight: bolder;
}
bar-card-name {
margin: 12px;
font-size: 12px;
font-weight: bolder;
}
bar-card-backgroundbar {
opacity: 0.2;
filter: brightness(1);
}
card_mod:
style: |
ha-card {
margin-top: -8px;
}
- type: custom:stack-in-card
cards:
- type: custom:mushroom-template-card
primary: CPU Temperature
secondary: |-
{% if is_state(entity, 'unavailable') %}
Unavailable
{% else %}
{{ states(entity) }}°C
{% endif %}
badge_icon: |-
{% if is_state(entity, 'unavailable') %}
mdi:help
{% endif %}
badge_color: |-
{% if is_state(entity, 'unavailable') %}
orange
{% endif %}
icon_color: >-
{{ 'blue' if not is_state(entity, 'unavailable') else
'disabled' }}
icon: mdi:thermometer
entity: sensor.desktop_cputemp
tap_action:
action: more-info
card_mod:
style: |
:host {
--mush-card-primary-font-size: 12px;
--mush-card-secondary-font-size: 11px;
}
- type: custom:mini-graph-card
entities:
- entity: sensor.desktop_cputemp
points_per_hour: 30
line_width: 2
show:
icon: false
labels: false
name: false
points: false
state: false
color_thresholds:
- color: '#0da035'
value: 40
- color: '#e0b400'
value: 60
- color: '#e45e65'
value: 80
card_mod:
style: |
ha-card {
margin-top: -22px;
}
- type: custom:layout-card
layout_type: grid
layout:
width: 100%
grid-template-columns: 2fr 2fr
grid-template-rows: auto
margin: '-4px -4px -4px -4px'
padding: 0px
cards:
- type: custom:stack-in-card
cards:
- type: custom:mushroom-template-card
primary: RAM Usage
secondary: |-
{% if is_state(entity, 'unavailable') %}
Unavailable
{% else %}
{{ states(entity) }}%
{% endif %}
badge_icon: |-
{% if is_state(entity, 'unavailable') %}
mdi:help
{% endif %}
badge_color: |-
{% if is_state(entity, 'unavailable') %}
orange
{% endif %}
icon_color: >-
{{ 'blue' if not is_state(entity, 'unavailable') else
'disabled' }}
icon: mdi:memory
entity: sensor.desktop_memoryusage
tap_action:
action: more-info
card_mod:
style: |
ha-card {
--card-primary-font-size: 12px;
--card-secondary-font-size: 11px;
}
- type: custom:mini-graph-card
entities:
- entity: sensor.desktop_memoryusage
points_per_hour: 30
line_width: 2
show:
icon: false
labels: false
name: false
points: false
state: false
color_thresholds:
- color: '#0da035'
value: -1
- color: '#e0b400'
value: 60
- color: '#e45e65'
value: 80
card_mod:
style: |
ha-card {
margin-top: -20px;
}
- type: custom:stack-in-card
cards:
- type: custom:mushroom-template-card
primary: CPU Usage
secondary: |-
{% if is_state(entity, 'unavailable') %}
Unavailable
{% else %}
{{ states(entity) }}%
{% endif %}
badge_icon: |-
{% if is_state(entity, 'unavailable') %}
mdi:help
{% endif %}
badge_color: |-
{% if is_state(entity, 'unavailable') %}
orange
{% endif %}
icon_color: >-
{{ 'blue' if not is_state(entity, 'unavailable') else
'disabled' }}
icon: mdi:cpu-64-bit
entity: sensor.desktop_cpuload
tap_action:
action: more-info
card_mod:
style: |
ha-card {
--card-primary-font-size: 12px;
--card-secondary-font-size: 11px;
}
- type: custom:mini-graph-card
entities:
- entity: sensor.desktop_cpuload
points_per_hour: 30
line_width: 2
show:
icon: false
labels: false
name: false
points: false
state: false
color_thresholds:
- color: '#0da035'
value: -1
- color: '#e0b400'
value: 45
- color: '#e45e65'
value: 65
card_mod:
style: |
ha-card {
margin-top: -20px;
}
- type: custom:layout-card
layout_type: grid
layout:
width: 100%
grid-template-columns: 2fr 2fr
grid-template-rows: auto
margin: 0px -4px 0px -4px
padding: 0px
cards:
- type: custom:stack-in-card
cards:
- type: custom:mushroom-template-card
primary: GPU Usage
secondary: |-
{% if is_state(entity, 'unavailable') %}
Unavailable
{% else %}
{{ states(entity) }}%
{% endif %}
badge_icon: |-
{% if is_state(entity, 'unavailable') %}
mdi:help
{% endif %}
badge_color: |-
{% if is_state(entity, 'unavailable') %}
orange
{% endif %}
icon_color: >-
{{ 'blue' if not is_state(entity, 'unavailable') else
'disabled' }}
icon: mdi:expansion-card-variant
entity: sensor.desktop_gpuload
tap_action:
action: more-info
card_mod:
style: |
ha-card {
--card-primary-font-size: 12px;
--card-secondary-font-size: 11px;
}
- type: custom:mini-graph-card
entities:
- entity: sensor.desktop_gpuload
points_per_hour: 30
line_width: 2
show:
icon: false
labels: false
name: false
points: false
state: false
color_thresholds:
- color: '#0da035'
value: -1
- color: '#e0b400'
value: 60
- color: '#e45e65'
value: 80
card_mod:
style: |
ha-card {
margin-top: -20px;
}
- type: custom:stack-in-card
cards:
- type: custom:mushroom-template-card
primary: GPU Temp
secondary: |-
{% if is_state(entity, 'unavailable') %}
Unavailable
{% else %}
{{ states(entity) }}%
{% endif %}
badge_icon: |-
{% if is_state(entity, 'unavailable') %}
mdi:help
{% endif %}
badge_color: |-
{% if is_state(entity, 'unavailable') %}
orange
{% endif %}
icon_color: >-
{{ 'blue' if not is_state(entity, 'unavailable') else
'disabled' }}
icon: mdi:thermometer
entity: sensor.desktop_gputemperature
tap_action:
action: more-info
card_mod:
style: |
ha-card {
--card-primary-font-size: 12px;
--card-secondary-font-size: 11px;
}
- type: custom:mini-graph-card
entities:
- entity: sensor.desktop_cpuload
points_per_hour: 30
line_width: 2
show:
icon: false
labels: false
name: false
points: false
state: false
color_thresholds:
- color: '#0da035'
value: -1
- color: '#e0b400'
value: 45
- color: '#e45e65'
value: 65
card_mod:
style: |
ha-card {
margin-top: -20px;
}