1
0

Add notification for printing first layer

This commit is contained in:
Przemek Grondek 2023-12-11 01:00:22 +01:00
parent 1726171d59
commit 63bf1c937c

View File

@ -19,6 +19,32 @@
- service: light.turn_off
entity_id: light.3d_printer_light
- id: prusa_mk39_first_layer
alias: '[Prusa MK3.9] First layer'
mode: single
trigger:
- platform: numeric_state
entity_id:
- sensor.prusa_mk39_z_height
above: 0.05
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"
- id: 3dprinter_notify
alias: '[3D Printer] Notify'
mode: single