.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
+18
View File
@@ -44,6 +44,8 @@
"show_state": true, "show_state": true,
"type": "picture-entity" "type": "picture-entity"
}, },
{
"cards": [
{ {
"grid_options": { "grid_options": {
"columns": 6 "columns": 6
@@ -52,6 +54,22 @@
"show_name": false, "show_name": false,
"type": "picture" "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": "full"
},
"type": "horizontal-stack"
},
{ {
"entity": "sensor.sparkx_i7_print_status", "entity": "sensor.sparkx_i7_print_status",
"grid_options": { "grid_options": {