From a98f9a24e5d84594e2ad1e88566520028d28ad9c Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 20 Mar 2023 14:58:20 -0400 Subject: [PATCH] Update K's wakeup script --- packages/kallen.yaml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/packages/kallen.yaml b/packages/kallen.yaml index 038a5ed..0cce7f8 100644 --- a/packages/kallen.yaml +++ b/packages/kallen.yaml @@ -195,11 +195,20 @@ script: - service: input_boolean.turn_off target: entity_id: input_boolean.white_noise_kallen_bedroom - - if: - - condition: state - entity_id: input_boolean.kallen_school_today - state: 'on' - then: - - service: light.turn_on - target: - entity_id: light.kallen_bedroom_lights \ No newline at end of file + - choose: + - conditions: + - condition: state + entity_id: input_boolean.kallen_school_today + state: 'on' + sequence: + - service: light.turn_on + target: + entity_id: light.kallen_bedroom_lights + - conditions: + - condition: state + entity_id: input_boolean.kallen_school_today + state: 'off' + sequence: + - service: input_boolean.turn_on + target: + entity_id: input_boolean.kallen_awake \ No newline at end of file