3 files
This commit is contained in:
1 parent
95734c2f81
commit
2fbfb98bd6
3 files changed
+103
-16
No files matched your search
@@ -4663,3 +4663,86 @@
|
||||
value: '{{ new_slot }}'
|
||||
mode: queued
|
||||
max: 10
|
||||
- id: '1791614551915'
|
||||
alias: Set printer variables on start up.
|
||||
description: Populate total filament, jobs and print time helpers when the printer
|
||||
starts or finishes a print.
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id: sensor.sparkx_moonraker_printer_state
|
||||
to: ready
|
||||
for:
|
||||
hours: 0
|
||||
minutes: 1
|
||||
seconds: 0
|
||||
- trigger: state
|
||||
entity_id: sensor.sparkx_moonraker_current_print_state
|
||||
from: printing
|
||||
for:
|
||||
hours: 0
|
||||
minutes: 1
|
||||
seconds: 0
|
||||
conditions: []
|
||||
actions:
|
||||
- action: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.total_filament
|
||||
data:
|
||||
value: '{{ states.sensor.sparkx_moonraker_totals_filament_used.state_with_unit
|
||||
}}'
|
||||
- action: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.total_jobs
|
||||
data:
|
||||
value: '{{ states.sensor.sparkx_moonraker_totals_jobs.state_with_unit }}'
|
||||
- action: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.total_time
|
||||
data:
|
||||
value: '{{ states.sensor.sparkx_moonraker_totals_print_time.state_with_unit
|
||||
}}'
|
||||
mode: single
|
||||
- id: '1791614551936'
|
||||
alias: Reload Printer data
|
||||
description: Reloads the Moonraker integration config entry when the printer comes
|
||||
back online or finishes a print.
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id: sensor.sparkx_moonraker_printer_state
|
||||
from: unavailable
|
||||
- trigger: state
|
||||
entity_id: sensor.sparkx_moonraker_current_print_state
|
||||
from: printing
|
||||
conditions: []
|
||||
actions:
|
||||
- action: homeassistant.reload_config_entry
|
||||
target:
|
||||
device_id: 25c093d2f351247a4f5a15b41e9f8078
|
||||
mode: single
|
||||
- id: '1791614551939'
|
||||
alias: Printer finished
|
||||
description: Sets the job filament helper and notifies when the print reaches 98%
|
||||
completion.
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id: sensor.sparkx_moonraker_progress
|
||||
to: '98'
|
||||
conditions: []
|
||||
actions:
|
||||
- action: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.job_filament
|
||||
data:
|
||||
value: '{{ states.sensor.sparkx_moonraker_filament_used.state_with_unit }}'
|
||||
- action: notify.franco
|
||||
data:
|
||||
message: TTS
|
||||
title: Printing complete
|
||||
data:
|
||||
tts_text: Print job is complete
|
||||
- action: notify.franco
|
||||
data:
|
||||
title: "\U0001F5A8 Printer finished"
|
||||
message: Printer job has finished
|
||||
data: {}
|
||||
mode: single
|
||||
Reference in new issue
Block a user