From 387a810e9d12a9b0f86e4cf262c0ae6e90c626f0 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Wed, 24 Jan 2024 23:01:20 +0100 Subject: [PATCH] Fix 3d printer auto off --- configuration/automations/3d-printer.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/configuration/automations/3d-printer.yaml b/configuration/automations/3d-printer.yaml index f35bbc0..bd7a3d7 100644 --- a/configuration/automations/3d-printer.yaml +++ b/configuration/automations/3d-printer.yaml @@ -7,9 +7,14 @@ below: 30 for: '00:30:00' condition: - - condition: state - entity_id: sensor.prusa_mk39 - state: idle + - condition: or + conditions: + - condition: state + entity_id: sensor.prusa_mk39 + state: finished + - condition: state + entity_id: sensor.prusa_mk39 + state: idle action: - service: switch.turn_off target: