64 lines
1.5 KiB
YAML
64 lines
1.5 KiB
YAML
- id: prusa_mini_door_open
|
|
alias: '[Prusa Mini] Door open'
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.prusa_mini_door_window_door_is_open
|
|
from: "off"
|
|
to: "on"
|
|
action:
|
|
- service: light.turn_on
|
|
target:
|
|
entity_id: light.prusa_mini_light_light
|
|
|
|
- id: prusa_mini_door_close
|
|
alias: '[Prusa Mini] Door close'
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.prusa_mini_door_window_door_is_open
|
|
from: "on"
|
|
to: "off"
|
|
action:
|
|
- service: light.turn_off
|
|
target:
|
|
entity_id: light.prusa_mini_light_light
|
|
|
|
- id: prusa_mini_notify
|
|
alias: '[Prusa Mini] Notify finished'
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id: sensor.prusamini
|
|
from: printing
|
|
to: idle
|
|
- platform: state
|
|
entity_id: sensor.prusamini
|
|
from: printing
|
|
to: finished
|
|
action:
|
|
- service: notify.mobile_app_iphone
|
|
data:
|
|
message: 3D printer has finished
|
|
title: Prusa Mini
|
|
data:
|
|
url: "/lovelace-tablet/3d-printer"
|
|
|
|
- id: prusa_mini_pause_notify
|
|
alias: '[Prusa Mini] Notify paused print'
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id: sensor.prusamini
|
|
from: printing
|
|
to: paused
|
|
action:
|
|
- service: notify.mobile_app_iphone
|
|
data:
|
|
title: Prusa Mini
|
|
message: 3D Print has been paused
|
|
data:
|
|
url: "/lovelace-tablet/3d-printer"
|