.storage/lovelace.sparkx_i7
This commit is contained in:
@@ -44,6 +44,8 @@
|
||||
"show_state": true,
|
||||
"type": "picture-entity"
|
||||
},
|
||||
{
|
||||
"cards": [
|
||||
{
|
||||
"grid_options": {
|
||||
"columns": 6
|
||||
@@ -52,6 +54,22 @@
|
||||
"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": "full"
|
||||
},
|
||||
"type": "horizontal-stack"
|
||||
},
|
||||
{
|
||||
"entity": "sensor.sparkx_i7_print_status",
|
||||
"grid_options": {
|
||||
|
||||
Reference in New Issue
Block a user