everything in lovelace is done by the frontend, so nothing to think about there.
BTW, if you want to make a flex grid, just use horizontal and vertical stack cards in the entities card. Thatâs what I do. You can make all sorts of cards
thatâs a entities card with 2 button cards, 3 bar cards and 1 sensor card using horizontal and vertical stacks.
No need to adjust this card to accomidate.
hereâs the full config
- type: 'custom:hui-entities-card'
show_header_toggle: off
style: |
ha-card { border-radius: 20px; }
entities:
- type: section
label: Synology DS216J
- 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/synology_ds216j_2.png
- type: 'custom:button-card'
layout: icon_name_state2nd
show_icon: true
show_state: true
size: 100%
styles:
grid:
- grid-template-columns: 1fr 2fr
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.synology_uptime
name: Uptime
icon: mdi:clock-outline
- type: custom:config-template-card
variables:
- states['sensor.synology_dsm_total_size_volume_1'].state
- states['sensor.synology_dsm_used_space_volume_1'].state
entities:
- sensor.synology_dsm_total_size_volume_1
- sensor.synology_dsm_used_space_volume_1
card:
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.synology_dsm_volume_used_volume_1
title: "${ 'Disk (' + vars[1] + '/' + vars[0] + ')' }"
- 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.synology_dsm_memory_usage_real
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.synology_dsm_cpu_load_total
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.synology_dsm_temperature_sda
- sensor.synology_dsm_temperature_sdb
name: Temperature
color_thresholds:
- value: 90
color: "#3498db"
- value: 95
color: "#f39c12"
- value: 100
color: "#E45E65"