This commit is contained in:
Home Assistant Version Control
2026-09-24 02:45:40 +00:00
parent 4f1a21a74b
commit 06146c02d4
3 changed files with 601 additions and 18 deletions
+17 -18
View File
@@ -702,9 +702,7 @@
"icon": "mdi:water-percent",
"grid_options": {
"columns": 6
},
"icon_color": "{{ states('sensor.sparkx_i7_cfs_box_1_slot_1_color') }}",
"secondary": "{% set col = states('sensor.sparkx_i7_cfs_box_1_slot_1_color') %}{% if col %}{{ col }} · {% endif %}{{ states('sensor.sparkx_i7_cfs_box_1_slot_1_remaining') }}% left"
}
},
{
"type": "custom:mushroom-template-card",
@@ -714,6 +712,18 @@
"icon": "mdi:printer-3d-nozzle",
"name": "Slot 1",
"primary": "{{ states('sensor.sparkx_i7_cfs_box_1_slot_1_filament') }}",
"secondary": "{% set col = states('sensor.sparkx_i7_cfs_box_1_slot_1_color') %}{% if col %}{{ col }} · {% endif %}{{ states('sensor.sparkx_i7_cfs_box_1_slot_1_remaining') }}% left",
"multiline_secondary": true,
"icon_color": "{{ states('sensor.sparkx_i7_cfs_box_1_slot_1_color') }}"
},
{
"type": "custom:mushroom-template-card",
"grid_options": {
"columns": 6
},
"icon": "mdi:printer-3d-nozzle",
"name": "Slot 2",
"primary": "{{ states('sensor.sparkx_i7_cfs_box_1_slot_2_filament') }}",
"secondary": "{% set col = states('sensor.sparkx_i7_cfs_box_1_slot_2_color') %}{% if col %}{{ col }} · {% endif %}{{ states('sensor.sparkx_i7_cfs_box_1_slot_2_remaining') }}% left",
"multiline_secondary": true,
"icon_color": "{{ states('sensor.sparkx_i7_cfs_box_1_slot_2_color') }}"
@@ -724,8 +734,8 @@
"columns": 6
},
"icon": "mdi:printer-3d-nozzle",
"name": "Slot 2",
"primary": "{{ states('sensor.sparkx_i7_cfs_box_1_slot_2_filament') }}",
"name": "Slot 3",
"primary": "{{ states('sensor.sparkx_i7_cfs_box_1_slot_3_filament') }}",
"secondary": "{% set col = states('sensor.sparkx_i7_cfs_box_1_slot_3_color') %}{% if col %}{{ col }} · {% endif %}{{ states('sensor.sparkx_i7_cfs_box_1_slot_3_remaining') }}% left",
"multiline_secondary": true,
"icon_color": "{{ states('sensor.sparkx_i7_cfs_box_1_slot_3_color') }}"
@@ -736,22 +746,11 @@
"columns": 6
},
"icon": "mdi:printer-3d-nozzle",
"name": "Slot 3",
"primary": "{{ states('sensor.sparkx_i7_cfs_box_1_slot_3_filament') }}",
"name": "Slot 4",
"primary": "{{ states('sensor.sparkx_i7_cfs_box_1_slot_4_filament') }}",
"secondary": "{% set col = states('sensor.sparkx_i7_cfs_box_1_slot_4_color') %}{% if col %}{{ col }} · {% endif %}{{ states('sensor.sparkx_i7_cfs_box_1_slot_4_remaining') }}% left",
"multiline_secondary": true,
"icon_color": "{{ states('sensor.sparkx_i7_cfs_box_1_slot_4_color') }}"
},
{
"type": "custom:mushroom-template-card",
"grid_options": {
"columns": 6
},
"icon": "mdi:printer-3d-nozzle",
"name": "Slot 4",
"primary": "{{ states('sensor.sparkx_i7_cfs_box_1_slot_4_filament') }}",
"secondary": "{{ states('sensor.sparkx_i7_cfs_box_1_slot_4_remaining') }}% left",
"multiline_secondary": true
}
]
},