automations.yaml
This commit is contained in:
@@ -4807,6 +4807,8 @@
|
||||
{% for p in (state_attr('sensor.sparkx_i7_expected_material_length','material') | default('', true) | string).split(';') %}{% set q = p | trim %}{% if q not in ['','none','unknown','unavailable'] %}{% set mc.list = mc.list + [q] %}{% endif %}{% endfor %}
|
||||
{% set single = (gc.list | length) == 1 %}
|
||||
{% set gcol = gc.list[0] if single else '' %}
|
||||
{% set aslot = (states('sensor.sparkx_i7_active_filament_slot') | default('', true) | string).split('_')[-1] %}
|
||||
{% set aslot = aslot if aslot in ['1','2','3','4'] else '' %}
|
||||
{% set rem_g = ([((job_g | float) - (used_g | float)), 0] | max) | round(1) %}
|
||||
{% set ns = namespace(cover=[], below=[], short=[], ok=[], missing=[], loaded=[], match_label='', match_rem=0) %}
|
||||
{% for n in ['1','2','3','4'] %}
|
||||
|
||||
Reference in New Issue
Block a user