.ha_mcp/backups/automation.automation.sparkx_i7_deduct_filament_in_spoolman_on_print_complete.20261008_174935.yaml, .ha_mcp/logs/mcp_usage.jsonl
This commit is contained in:
+57
@@ -0,0 +1,57 @@
|
|||||||
|
# ha_mcp_backup
|
||||||
|
schema_version: 1
|
||||||
|
domain: automation
|
||||||
|
entity_id: automation.sparkx_i7_deduct_filament_in_spoolman_on_print_complete
|
||||||
|
captured: '2026-10-08T17:49:35.306437+00:00'
|
||||||
|
tool: ha_config_set_automation
|
||||||
|
config:
|
||||||
|
id: '1791477238729'
|
||||||
|
alias: SparkX i7 - Deduct filament in Spoolman on print complete
|
||||||
|
triggers:
|
||||||
|
- trigger: state
|
||||||
|
entity_id: sensor.sparkx_i7_print_status
|
||||||
|
from: printing
|
||||||
|
to: completed
|
||||||
|
conditions:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sensor.sparkx_i7_filament_weight_estimated
|
||||||
|
above: 0
|
||||||
|
actions:
|
||||||
|
- variables:
|
||||||
|
weight: '{{ states(''sensor.sparkx_i7_filament_weight_estimated'') | float(0)
|
||||||
|
}}'
|
||||||
|
spool_id: '{{ states(''input_text.sparkx_i7_print_spool_latch'') | int(0) }}'
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
condition: template
|
||||||
|
value_template: '{{ spool_id > 0 }}'
|
||||||
|
sequence:
|
||||||
|
- action: spoolman.use_spool_filament
|
||||||
|
data:
|
||||||
|
id: '{{ spool_id | int(0) }}'
|
||||||
|
use_weight: '{{ weight | float(0) }}'
|
||||||
|
- action: input_text.set_value
|
||||||
|
target:
|
||||||
|
entity_id: input_text.sparkx_i7_print_spool_latch
|
||||||
|
data:
|
||||||
|
value: ''
|
||||||
|
- conditions:
|
||||||
|
condition: template
|
||||||
|
value_template: '{{ spool_id <= 0 }}'
|
||||||
|
sequence:
|
||||||
|
- action: notify.persistent_notification
|
||||||
|
data:
|
||||||
|
title: Spoolman deduction skipped
|
||||||
|
message: "Print completed: {{ weight }} g used, but no Spoolman spool was\
|
||||||
|
\ latched for this print \u2014 nothing deducted."
|
||||||
|
- action: notify.mobile_app_francos_ipad
|
||||||
|
data:
|
||||||
|
title: Spoolman deduction skipped
|
||||||
|
message: "Print completed: {{ weight }} g used, but no Spoolman spool was\
|
||||||
|
\ latched for this print \u2014 nothing deducted."
|
||||||
|
- action: notify.mobile_app_sm_f956w
|
||||||
|
data:
|
||||||
|
title: Spoolman deduction skipped
|
||||||
|
message: "Print completed: {{ weight }} g used, but no Spoolman spool was\
|
||||||
|
\ latched for this print \u2014 nothing deducted."
|
||||||
|
mode: single
|
||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user