From b68cea5d62a96166bcda8fee8761a36e6072014b Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Fri, 17 Nov 2023 19:34:56 +0100 Subject: [PATCH] Add Prusa MINI notifications --- .../automations/3d-printer-mini.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 configuration/automations/3d-printer-mini.yaml diff --git a/configuration/automations/3d-printer-mini.yaml b/configuration/automations/3d-printer-mini.yaml new file mode 100644 index 0000000..7536011 --- /dev/null +++ b/configuration/automations/3d-printer-mini.yaml @@ -0,0 +1,50 @@ +- 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"