2024-01-29 00:20:09 +00:00
|
|
|
- id: prusa_mk39_off
|
|
|
|
alias: '[Prusa MK3.9] Turn off'
|
2021-01-11 23:54:15 +00:00
|
|
|
mode: single
|
|
|
|
trigger:
|
2022-04-02 14:43:24 +00:00
|
|
|
- platform: numeric_state
|
2022-01-04 23:19:58 +00:00
|
|
|
entity_id: sensor.3d_printer_electric_consumption_w
|
2021-04-12 15:32:28 +00:00
|
|
|
below: 30
|
2024-01-29 00:20:09 +00:00
|
|
|
for: '00:15:00'
|
2021-01-11 23:54:15 +00:00
|
|
|
condition:
|
2024-01-24 22:01:20 +00:00
|
|
|
- condition: or
|
|
|
|
conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: sensor.prusa_mk39
|
|
|
|
state: finished
|
|
|
|
- condition: state
|
|
|
|
entity_id: sensor.prusa_mk39
|
|
|
|
state: idle
|
2021-01-11 23:54:15 +00:00
|
|
|
action:
|
|
|
|
- service: switch.turn_off
|
2021-10-14 23:16:41 +00:00
|
|
|
target:
|
|
|
|
entity_id:
|
|
|
|
- switch.3d_printer
|
|
|
|
- switch.3d_printer_enclosure_fan_on_off
|
2021-10-08 08:27:01 +00:00
|
|
|
- service: light.turn_off
|
|
|
|
entity_id: light.3d_printer_light
|
2021-05-10 10:24:31 +00:00
|
|
|
|
2023-12-11 00:00:22 +00:00
|
|
|
- id: prusa_mk39_first_layer
|
|
|
|
alias: '[Prusa MK3.9] First layer'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: numeric_state
|
|
|
|
entity_id:
|
|
|
|
- sensor.prusa_mk39_z_height
|
2023-12-13 00:02:11 +00:00
|
|
|
above: 0.25
|
2023-12-11 00:00:22 +00:00
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: sensor.prusa_mk39
|
|
|
|
state: printing
|
|
|
|
action:
|
|
|
|
- service: camera.snapshot
|
|
|
|
data:
|
|
|
|
filename: /config/www/cctv/3d_printer.jpg
|
|
|
|
target:
|
|
|
|
entity_id: camera.3d_printer
|
|
|
|
- service: notify.home_assistant
|
|
|
|
data:
|
|
|
|
message: "Prusa MK3.9 First Layer"
|
|
|
|
target: [ "1070521797688180796" ]
|
|
|
|
data:
|
|
|
|
images:
|
|
|
|
- "/config/www/cctv/3d_printer.jpg"
|
|
|
|
|
2024-01-29 00:20:09 +00:00
|
|
|
- id: prusa_mk39_notify_finished
|
|
|
|
alias: '[Prusa MK3.9] Notify Finished'
|
2021-09-22 00:10:18 +00:00
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
2023-11-06 21:15:01 +00:00
|
|
|
entity_id: sensor.prusa_mk39
|
2023-11-16 17:38:10 +00:00
|
|
|
from: printing
|
2024-01-29 00:20:09 +00:00
|
|
|
to: finished
|
2021-09-22 00:10:18 +00:00
|
|
|
action:
|
2022-10-19 20:25:52 +00:00
|
|
|
- service: notify.mobile_app_iphone
|
2021-09-22 00:10:18 +00:00
|
|
|
data:
|
|
|
|
message: 3D printer has finished
|
2023-02-05 02:44:34 +00:00
|
|
|
data:
|
|
|
|
entity_id: camera.3d_printer
|
|
|
|
url: "/lovelace-tablet/3d-printer"
|
2023-02-02 02:03:34 +00:00
|
|
|
- service: camera.snapshot
|
|
|
|
data:
|
|
|
|
filename: /config/www/cctv/3d_printer.jpg
|
|
|
|
target:
|
2023-02-05 02:44:34 +00:00
|
|
|
entity_id: camera.3d_printer
|
2023-02-02 02:03:34 +00:00
|
|
|
- service: notify.home_assistant
|
|
|
|
data:
|
|
|
|
message: "3D Printer has finished"
|
|
|
|
target: [ "1070521797688180796" ]
|
|
|
|
data:
|
|
|
|
images:
|
|
|
|
- "/config/www/cctv/3d_printer.jpg"
|
2021-09-22 00:10:18 +00:00
|
|
|
|
2024-01-29 00:20:09 +00:00
|
|
|
- id: prusa_mk39_button
|
|
|
|
alias: '[Prusa MK3.9] button'
|
2021-05-18 07:37:48 +00:00
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- device_id: a2ac0fa69738b8e7c5c1b8b8bcf8cdc2
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_short_press
|
|
|
|
subtype: remote_button_short_press
|
|
|
|
action:
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
2021-10-14 23:16:41 +00:00
|
|
|
entity_id: switch.3d_printer
|
2021-05-18 07:37:48 +00:00
|
|
|
state: 'off'
|
|
|
|
sequence:
|
|
|
|
- service: switch.turn_on
|
|
|
|
target:
|
2021-10-14 23:16:41 +00:00
|
|
|
entity_id: switch.3d_printer
|
2021-10-08 08:27:01 +00:00
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.3d_printer_light
|
2021-05-18 07:37:48 +00:00
|
|
|
- conditions:
|
|
|
|
- condition: state
|
2021-10-14 23:16:41 +00:00
|
|
|
entity_id: switch.3d_printer
|
2021-05-18 07:37:48 +00:00
|
|
|
state: 'on'
|
2023-11-06 21:17:35 +00:00
|
|
|
- condition: state
|
2023-11-06 21:15:01 +00:00
|
|
|
entity_id: sensor.prusa_mk39
|
2023-11-16 17:38:10 +00:00
|
|
|
state: idle
|
2021-05-18 07:37:48 +00:00
|
|
|
- condition: numeric_state
|
2022-01-04 23:19:58 +00:00
|
|
|
entity_id: sensor.3d_printer_electric_consumption_w
|
2021-05-18 07:37:48 +00:00
|
|
|
below: '30'
|
|
|
|
sequence:
|
|
|
|
- service: switch.turn_off
|
|
|
|
target:
|
2021-10-14 23:16:41 +00:00
|
|
|
entity_id:
|
|
|
|
- switch.3d_printer
|
|
|
|
- switch.3d_printer_enclosure_fan_on_off
|
2021-10-08 08:27:01 +00:00
|
|
|
- service: light.turn_off
|
|
|
|
entity_id: light.3d_printer_light
|
2021-09-28 22:55:05 +00:00
|
|
|
|
2023-12-13 00:00:18 +00:00
|
|
|
- id: prusa_mk39_fan_on
|
|
|
|
alias: '[Prusa MK3.9] Fan on'
|
2022-08-06 22:40:27 +00:00
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
2023-11-06 21:15:01 +00:00
|
|
|
entity_id: sensor.prusa_mk39
|
2023-11-16 17:38:10 +00:00
|
|
|
from: idle
|
|
|
|
to: printing
|
2022-08-06 22:40:27 +00:00
|
|
|
condition:
|
2023-12-13 00:00:18 +00:00
|
|
|
- condition: or
|
|
|
|
conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: sensor.prusa_mk39_material
|
|
|
|
state: PLA
|
|
|
|
- condition: state
|
|
|
|
entity_id: sensor.prusa_mk39_material
|
|
|
|
state: PETG
|
2022-08-06 22:40:27 +00:00
|
|
|
action:
|
|
|
|
- service: switch.turn_on
|
|
|
|
target:
|
|
|
|
entity_id: switch.3d_printer_enclosure_fan_on_off
|
|
|
|
|
2024-06-26 17:35:20 +00:00
|
|
|
- id: prusa_mk39_nevermore_on
|
|
|
|
alias: '[Prusa MK3.9] Nevermore on'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id:
|
|
|
|
- sensor.prusa_mk39
|
|
|
|
to: printing
|
|
|
|
condition:
|
|
|
|
- condition: or
|
|
|
|
conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: sensor.prusa_mk39_material
|
|
|
|
state: ABS
|
|
|
|
- condition: state
|
|
|
|
entity_id: sensor.prusa_mk39_material
|
|
|
|
state: ASA
|
|
|
|
- condition: state
|
|
|
|
entity_id: sensor.prusa_mk39_material
|
|
|
|
state: PC
|
|
|
|
- condition: state
|
|
|
|
entity_id: sensor.prusa_mk39_material
|
|
|
|
state: PCTG
|
|
|
|
action:
|
|
|
|
- service: fan.turn_on
|
|
|
|
target:
|
|
|
|
entity_id: fan.esp_3dprinter_controller_mk4_nevermore
|
|
|
|
data:
|
|
|
|
|
2023-12-13 00:00:18 +00:00
|
|
|
- id: prusa_mk39_fan_off
|
|
|
|
alias: '[Prusa MK3.9] Fan off'
|
2022-08-06 22:40:27 +00:00
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
2023-12-13 00:00:18 +00:00
|
|
|
entity_id: sensor.prusa_mk39
|
|
|
|
from: printing
|
|
|
|
to: idle
|
2022-08-06 22:40:27 +00:00
|
|
|
action:
|
|
|
|
- service: switch.turn_off
|
|
|
|
target:
|
|
|
|
entity_id: switch.3d_printer_enclosure_fan_on_off
|
2022-11-16 23:30:00 +00:00
|
|
|
|
2024-01-29 00:20:09 +00:00
|
|
|
- id: prusa_mk39_pause_notify
|
|
|
|
alias: '[Prusa MK3.9] Notify about paused print'
|
2023-11-06 21:15:01 +00:00
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: sensor.prusa_mk39
|
2024-01-29 00:20:09 +00:00
|
|
|
from: printing
|
|
|
|
to: paused
|
2023-11-06 21:15:01 +00:00
|
|
|
action:
|
|
|
|
- service: notify.mobile_app_iphone
|
|
|
|
data:
|
|
|
|
title: Prusa MK3.9
|
2023-02-05 02:44:34 +00:00
|
|
|
message: 3D Print has been paused
|
|
|
|
data:
|
|
|
|
entity_id: camera.3d_printer
|
|
|
|
url: "/lovelace-tablet/3d-printer"
|