1
0

Setup prusa mini lights

This commit is contained in:
Przemek Grondek 2024-05-19 15:47:35 +02:00
parent 713cc83484
commit 7096529d1e
2 changed files with 30 additions and 0 deletions

View File

@ -1,3 +1,31 @@
- 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 - id: prusa_mini_notify
alias: '[Prusa Mini] Notify finished' alias: '[Prusa Mini] Notify finished'
mode: single mode: single

View File

@ -181,3 +181,5 @@ devices:
id: '2963910c6c3798aab228abe14ed46ba8' id: '2963910c6c3798aab228abe14ed46ba8'
- name: 'Bathroom music button' - name: 'Bathroom music button'
id: 'ea9059ad2df037a012ab01a575108dc5' id: 'ea9059ad2df037a012ab01a575108dc5'
- name: 'Prusa MINI'
id: '1a9044fa5e6d0ed3870b8b99c5ee9bd1'