From 7096529d1ee67f6d6870c756e9052d33c4ee0857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grondek?= Date: Sun, 19 May 2024 15:47:35 +0200 Subject: [PATCH] Setup prusa mini lights --- .../automations/3d-printer-mini.yaml | 28 +++++++++++++++++++ zha-devices.yml | 2 ++ 2 files changed, 30 insertions(+) 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'