5 files
This commit is contained in:
1 parent
df9bc2ed01
commit
1d36a93b36
5 files changed
+1533
-3
No files matched your search
@@ -555,7 +555,7 @@
|
||||
"icon": "{% set st = states('sensor.sparkx_i7_print_status') %}{% if st in ['printing', 'paused'] %}mdi:printer-3d-nozzle{% else %}mdi:calendar-today{% endif %}",
|
||||
"multiline_secondary": true,
|
||||
"name": "Filament Used",
|
||||
"primary": "{% set st = states('sensor.sparkx_i7_print_status') %}{% if st in ['printing', 'paused'] %}{{ states('sensor.sparkx_i7_filament_weight_estimated') | round(1) }} g{% else %}No active job{% endif %}",
|
||||
"primary": "{% set st = states('sensor.sparkx_i7_print_status') %}{% if st in ['printing', 'paused'] %}{{ states('sensor.sparkx_i7_filament_weight_estimated') | round(1) }} g{% else %}Last job: {{ states('input_number.sparkx_i7_last_job_filament_weight') | round(1) }} g{% endif %}",
|
||||
"secondary": "{% set st = states('sensor.sparkx_i7_print_status') %}{% if st in ['printing', 'paused'] %}{{ states('sensor.sparkx_i7_used_material_length') | round(0) }} cm this job{% else %}{{ states('sensor.sparkx_i7_filament_weight_daily') | round(1) }} g · {{ states('sensor.sparkx_i7_filament_cost_daily') | round(2) }} $ today{% endif %}",
|
||||
"type": "custom:mushroom-template-card"
|
||||
},
|
||||
@@ -581,13 +581,16 @@
|
||||
"type": "custom:mushroom-template-card"
|
||||
},
|
||||
{
|
||||
"entity": "sensor.sparkx_i7_filament_cost",
|
||||
"entity": "input_number.sparkx_i7_last_job_cost",
|
||||
"grid_options": {
|
||||
"columns": 3
|
||||
},
|
||||
"icon": "mdi:cash",
|
||||
"name": "Job Cost (total)",
|
||||
"type": "tile"
|
||||
"type": "custom:mushroom-template-card",
|
||||
"multiline_secondary": true,
|
||||
"primary": "{% set st = states('sensor.sparkx_i7_print_status') %}{% if st in ['printing', 'paused'] %}{{ states('sensor.sparkx_i7_filament_cost') | round(2) }} ${% else %}{{ states('input_number.sparkx_i7_last_job_cost') | round(2) }} ${% endif %}",
|
||||
"secondary": "{% set st = states('sensor.sparkx_i7_print_status') %}{% if st in ['printing', 'paused'] %}this job (live){% else %}last job{% endif %}"
|
||||
},
|
||||
{
|
||||
"entity": "sensor.sparkx_i7_filament_cost_daily",
|
||||
|
||||
Reference in new issue
Block a user