3 files
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:47:57.827554+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
@@ -22,12 +22,12 @@
|
||||
},
|
||||
"0xffffb40e0607af27": {
|
||||
"state": "ON",
|
||||
"voltage": 119.1,
|
||||
"voltage": 118.6,
|
||||
"ac_frequency": 60,
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"countdown_to_turn_on": 0,
|
||||
"power": 1.9,
|
||||
"power": 2.1,
|
||||
"current": 0.09,
|
||||
"energy": 54.02,
|
||||
"power_factor": 0.17,
|
||||
@@ -47,8 +47,8 @@
|
||||
"countdown_to_turn_off": 0,
|
||||
"voltage": 118.1,
|
||||
"countdown_to_turn_on": 0,
|
||||
"energy": 103.67,
|
||||
"power_factor": 0.9,
|
||||
"energy": 103.68,
|
||||
"power_factor": 0.89,
|
||||
"ac_frequency": 60,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
@@ -58,7 +58,7 @@
|
||||
"latest_release_notes": null
|
||||
},
|
||||
"linkquality": 145,
|
||||
"power": 85.7,
|
||||
"power": 85,
|
||||
"current": 0.83,
|
||||
"power_on_behavior": "on"
|
||||
},
|
||||
@@ -77,8 +77,8 @@
|
||||
"voltage": 116.9,
|
||||
"state": "ON",
|
||||
"ac_frequency": 60,
|
||||
"energy": 210.4,
|
||||
"power": 113.3,
|
||||
"energy": 210.41,
|
||||
"power": 105.5,
|
||||
"current": 0.99,
|
||||
"power_factor": 0.94,
|
||||
"update": {
|
||||
@@ -98,7 +98,7 @@
|
||||
"voltage": 118.6,
|
||||
"energy": 100.68,
|
||||
"state": "ON",
|
||||
"power": 10.4,
|
||||
"power": 10.6,
|
||||
"current": 0.32,
|
||||
"ac_frequency": 60,
|
||||
"power_factor": 0.51,
|
||||
|
||||
Reference in New Issue
Block a user