Disclaimer
I no longer use this card, I’m posting it here for facebook post requesting the config. I believe the card still works, however, users may need to use card-loader with this configuration now.
If anyone wants to know more about the card, please feel free to ask.
Card Preview
Card Code
- id: nuc_status
type: custom:config-template-card
variables:
- states['sensor.current_version'].state
- states['sensor.disk_use_total'].state
- states['sensor.disk_use_home'].state
entities:
- sensor.current_version
- sensor.disk_free_home
- sensor.disk_use_home
card:
type: 'custom:hui-entities-card'
show_header_toggle: off
style: |
ha-card { border-radius: 20px; }
entities:
- type: section
label: "${ 'NUC i5 --- Ubuntu 18.04.1 LTS --- HA ' + vars[0] }"
- type: custom:hui-vertical-stack-card
cards:
- type: horizontal-stack
cards:
- type: picture
style: |
ha-card {
--paper-card-background-color: 'rgba(0, 0, 0, 0.0)';
--ha-card-background: "rgba(0, 0, 0, 0.0)";
--ha-card-box-shadow: 'none';
}
image: /local/images/devices/nuc_5.png
- type: 'custom:button-card'
layout: icon_name_state2nd
show_icon: true
show_state: true
styles:
grid:
- grid-template-columns: 50px auto
icon:
- padding: 0px 20px
- height: 30px
- width: 30px
card:
- --ha-card-background: "rgba(0, 0, 0, 0.0)"
- --ha-card-box-shadow: 'none'
state:
- padding: 0px 20px
- justify-self: start
- font-family: Roboto, sans-serif
- font-size: 15px
name:
- padding: 0px 20px
- justify-self: start
- color: var(--secondary-text-color)
entity: sensor.nuc_uptime
name: Uptime
icon: mdi:clock-outline
- type: custom:bar-card
title_position: inside
show_icon: true
align: split
columns: 1
max: 100
unit_of_measurement: "%"
severity:
- value: 50
color: "#3498db"
- value: 75
color: "#f39c12"
- value: 100
color: "#e45e65"
style: |
ha-card {
--paper-card-background-color: 'rgba(0, 0, 0, 0.0)';
--ha-card-background: "rgba(0, 0, 0, 0.0)";
--ha-card-box-shadow: 'none';
}
entity: sensor.disk_use_percent_home
title: "${ 'Disk (' + vars[2] + 'Gb/' + vars[1] + 'Gb)' }"
- type: horizontal-stack
cards:
- type: custom:bar-card
title_position: inside
show_icon: true
align: split
columns: 1
max: 100
unit_of_measurement: "%"
severity:
- value: 50
color: "#3498db"
- value: 75
color: "#f39c12"
- value: 100
color: "#e45e65"
style: |
ha-card {
--paper-card-background-color: 'rgba(0, 0, 0, 0.0)';
--ha-card-background: "rgba(0, 0, 0, 0.0)";
--ha-card-box-shadow: 'none';
}
entity: sensor.memory_use_percent
title: RAM
- type: custom:bar-card
title_position: inside
show_icon: true
align: split
columns: 1
max: 100
unit_of_measurement: "%"
severity:
- value: 50
color: "#3498db"
- value: 75
color: "#f39c12"
- value: 100
color: "#e45e65"
style: |
ha-card {
--paper-card-background-color: 'rgba(0, 0, 0, 0.0)';
--ha-card-background: "rgba(0, 0, 0, 0.0)";
--ha-card-box-shadow: 'none';
}
entity: sensor.processor_use
title: CPU
- type: custom:mini-graph-card
height: 20
line_width: 2
font_size: 70
hours_to_show: 168
points_per_hour: 1
show:
extrema: true
fill: true
style: |
ha-card {
--ha-card-background: "rgba(0, 0, 0, 0.0)";
--ha-card-box-shadow: 'none';
border-radius: 5px;
}
entities:
- sensor.cpu_temperature
name: Temperature
color_thresholds:
- value: 90
color: "#3498db"
- value: 120
color: "#f39c12"
- value: 150
color: "#E45E65"