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

36 lines
850 B
YAML
Raw Normal View History

- id: prusa_mini_notify
alias: '[Prusa Mini] Notify finished'
2023-11-17 18:34:56 +00:00
mode: single
trigger:
- platform: state
entity_id: sensor.prusamini
from: printing
to: idle
- platform: state
entity_id: sensor.prusamini
from: printing
to: finished
2023-11-17 18:34:56 +00:00
action:
- service: notify.mobile_app_iphone
data:
message: 3D printer has finished
2023-11-17 18:34:56 +00:00
title: Prusa Mini
data:
url: "/lovelace-tablet/3d-printer"
- id: prusa_mini_pause_notify
alias: '[Prusa Mini] Notify paused print'
2023-11-17 18:34:56 +00:00
mode: single
trigger:
- platform: state
entity_id: sensor.prusamini
from: printing
to: paused
2023-11-17 18:34:56 +00:00
action:
- service: notify.mobile_app_iphone
data:
title: Prusa Mini
message: 3D Print has been paused
data:
url: "/lovelace-tablet/3d-printer"