1
0
ansible-home-assistant/configuration/automations/3d-printer-mini.yaml

51 lines
1.3 KiB
YAML

- id: 3dprinter_mini_notify
alias: '[3D Printer][Prusa Mini] Notify finished'
mode: single
trigger:
- platform: state
entity_id: sensor.prusamini
from: printing
to: idle
action:
- service: notify.mobile_app_iphone
data:
message: 3D printer has finished
title: Prusa Mini
data:
entity_id: camera.3d_printer
url: "/lovelace-tablet/3d-printer"
- id: 3dprinter_mini_pause_notify
alias: '[3D Printer][Prusa Mini] Notify paused print'
mode: single
trigger:
- platform: state
entity_id: sensor.prusamini_nozzle_temperature
to: "0"
condition:
- condition: numeric_state
entity_id: sensor.prusamini_heatbed_target_temperature
above: 0
action:
- service: notify.mobile_app_iphone
data:
title: Prusa Mini
message: 3D Print has been paused
data:
url: "/lovelace-tablet/3d-printer"
- id: 3dprinter_pause_notify_2
alias: '[3D Printer] Notify about paused print (test)'
mode: single
trigger:
- platform: state
entity_id: sensor.prusamini
to: "Paused"
action:
- service: notify.mobile_app_iphone
data:
title: Prusa Mini
message: 3D Print has been paused
data:
url: "/lovelace-tablet/3d-printer"