From 86a9d4b0c373ccfe1ef3deef16c84292ca25b4ba Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Wed, 16 Nov 2022 01:27:05 +0100 Subject: [PATCH] Fix coffee machine automation --- configuration/automations/calendar.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/configuration/automations/calendar.yaml b/configuration/automations/calendar.yaml index f7312ba..d934bd2 100644 --- a/configuration/automations/calendar.yaml +++ b/configuration/automations/calendar.yaml @@ -7,10 +7,16 @@ entity_id: calendar.automations_wakeup offset: '-16:00:0' action: - - wait_for_trigger: - - platform: numeric_state - entity_id: sensor.coffee_machine_electrical_measurement - below: '4' + - choose: + - conditions: + - platform: numeric_state + entity_id: sensor.coffee_machine_electrical_measurement + below: 4 + sequence: + - wait_for_trigger: + - platform: numeric_state + entity_id: sensor.coffee_machine_electrical_measurement + below: '4' - service: switch.turn_off target: entity_id: switch.coffee_machine_on_off