.storage/lovelace.3d_printer_cellphone
This commit is contained in:
1 parent
aa6e9f845b
commit
272ead9af3
1 file changed
+27
@@ -45,6 +45,33 @@
|
|||||||
"icon": "mdi:water-percent",
|
"icon": "mdi:water-percent",
|
||||||
"name": "Humidity",
|
"name": "Humidity",
|
||||||
"type": "tile"
|
"type": "tile"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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": "full"
|
||||||
|
},
|
||||||
|
"type": "horizontal-stack"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user