This commit is contained in:
Home Assistant Version Control
2026-10-12 16:33:17 +00:00
parent 1c1eaa75b3
commit adbee2d864
3 changed files with 175 additions and 3 deletions
+3 -3
View File
@@ -4432,7 +4432,7 @@
> 0 and ns.id == '''' %}{% set ns.id = states(b ~ ''_id'') %}{% endif %}{%
endif %}{% endfor %}{{ ns.id }}'
- variables:
helper_idx: '{{ old_slot.split('' '')[-1] if old_slot.split('' '')[-1] in [''1'',
helper_idx: '{{ old_slot.split(''_'')[-1] if old_slot.split(''_'')[-1] in [''1'',
''2'', ''3'', ''4''] else '''' }}'
- variables:
nonhelper_g: '{{ final_grams if (final_grams | float > 0) and (spool_id not
@@ -4530,12 +4530,12 @@
target:
entity_id: input_number.sparkx_i7_last_job_filament_weight
data:
value: '{{ final_grams }}'
value: '{{ summary_total }}'
- action: input_number.set_value
target:
entity_id: input_number.sparkx_i7_last_job_cost
data:
value: '{{ ((final_grams | float) * (states(''input_number.filament_price_per_kg'')
value: '{{ ((summary_total | float) * (states(''input_number.filament_price_per_kg'')
| float(25)) / 1000) | round(2) }}'
- action: input_number.set_value
target: