.storage/lovelace.sparkx_i7

This commit is contained in:
Home Assistant Version Control
2026-09-25 12:04:58 +00:00
parent c3add50318
commit 16d70a96fb
+22 -4
View File
@@ -45,12 +45,30 @@
"type": "picture-entity"
},
{
"cards": [
{
"grid_options": {
"columns": 6
},
"image_entity": "image.sparkx_i7_current_print_preview",
"show_name": false,
"type": "picture"
},
{
"entity": "sensor.sparkx_i7_active_filament_slot",
"icon": "mdi:palette",
"icon_color": "{% set color = state_attr('sensor.sparkx_i7_active_filament_slot', 'color') | default('') | string %}{% set core = color | replace('#', '') %}{% if core | length >= 6 %}#{{ core[-6:] }}{% else %}var(--primary-text-color){% endif %}",
"multiline_secondary": true,
"name": "Active Color",
"primary": "{% set slot = states('sensor.sparkx_i7_active_filament_slot') %}{% if 'Slot 1' in slot %}{{ states('sensor.sparkx_i7_slot_1_color_name') }}{% elif 'Slot 2' in slot %}{{ states('sensor.sparkx_i7_slot_2_color_name') }}{% elif 'Slot 3' in slot %}{{ states('sensor.sparkx_i7_slot_3_color_name') }}{% elif 'Slot 4' in slot %}{{ states('sensor.sparkx_i7_slot_4_color_name') }}{% elif slot == 'External' %}{{ states('sensor.sparkx_i7_external_color_name') }}{% else %}Unknown{% endif %}",
"secondary": "{% set slot = states('sensor.sparkx_i7_active_filament_slot') %}{{ slot }}{% if state_attr('sensor.sparkx_i7_active_filament_slot', 'filament') %} · {{ state_attr('sensor.sparkx_i7_active_filament_slot', 'filament') }}{% endif %}",
"type": "custom:mushroom-template-card"
}
],
"grid_options": {
"columns": 6
"columns": "full"
},
"image_entity": "image.sparkx_i7_current_print_preview",
"show_name": false,
"type": "picture"
"type": "horizontal-stack"
},
{
"entity": "sensor.sparkx_i7_print_status",