automations.yaml

This commit is contained in:
Home Assistant Version Control
2026-10-15 13:11:35 +00:00
parent 2cada56779
commit 09c61b0496
+2
View File
@@ -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'] %}