diff --git a/configuration/automations/3d-printer-mini.yaml b/configuration/automations/3d-printer-mini.yaml index 78aa941..c592eda 100644 --- a/configuration/automations/3d-printer-mini.yaml +++ b/configuration/automations/3d-printer-mini.yaml @@ -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 alias: '[Prusa Mini] Notify finished' mode: single diff --git a/zha-devices.yml b/zha-devices.yml index 5f9492e..ca52d78 100644 --- a/zha-devices.yml +++ b/zha-devices.yml @@ -181,3 +181,5 @@ devices: id: '2963910c6c3798aab228abe14ed46ba8' - name: 'Bathroom music button' id: 'ea9059ad2df037a012ab01a575108dc5' + - name: 'Prusa MINI' + id: '1a9044fa5e6d0ed3870b8b99c5ee9bd1'