.storage/lovelace.sparkx_i7, zigbee2mqtt/state.json

This commit is contained in:
Home Assistant Version Control
2026-09-25 12:04:03 +00:00
parent 1f977aa61d
commit c3add50318
2 changed files with 51 additions and 33 deletions
+23 -5
View File
@@ -777,13 +777,31 @@
"type": "heading"
},
{
"entity": "sensor.sparkx_i7_active_filament_slot",
"cards": [
{
"entity": "sensor.sparkx_i7_active_filament_slot",
"grid_options": {
"columns": 6
},
"icon": "mdi:swap-horizontal",
"name": "Active Slot",
"type": "tile"
},
{
"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"
},
"icon": "mdi:swap-horizontal",
"name": "Active Slot",
"type": "tile"
"type": "horizontal-stack"
},
{
"grid_options": {