From cb20c222d33b60b5cb730a53410f1abbd63fc1b0 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Thu, 2 Feb 2023 03:03:34 +0100 Subject: [PATCH] Add 3d printer notifications to discord --- configuration/automations/3d-printer.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/configuration/automations/3d-printer.yaml b/configuration/automations/3d-printer.yaml index de44905..9611d3a 100644 --- a/configuration/automations/3d-printer.yaml +++ b/configuration/automations/3d-printer.yaml @@ -37,10 +37,27 @@ - platform: state entity_id: sensor.octoprint_job_percentage to: '100.0' + - platform: state + entity_id: + - sensor.octoprint_target_bed_temp + to: "0" action: - service: notify.mobile_app_iphone data: message: 3D printer has finished + entity_id: camera.3d_printer + - service: camera.snapshot + data: + filename: /config/www/cctv/3d_printer.jpg + target: + entity_id: camera.hallway + - service: notify.home_assistant + data: + message: "3D Printer has finished" + target: [ "1070521797688180796" ] + data: + images: + - "/config/www/cctv/3d_printer.jpg" - id: 3dprinter-button alias: '[3D Printer] button'