diff --git a/alarm_clock.yaml b/alarm_clock.yaml index 17d6433..3f6095b 100644 --- a/alarm_clock.yaml +++ b/alarm_clock.yaml @@ -56,11 +56,21 @@ blueprint: selector: entity: domain: switch - presence: - name: presence + # presence: + # name: presence + # selector: + # entity: + # domain: input_boolean + before_wake_up: + name: Before wake up action + description: Actions before the lights turn on selector: - entity: - domain: input_boolean + action: + after_wake_up: + name: After wake up action + description: Actions after the lights turn on + selector: + action: trigger_variables: alarm_time: !input alarm_time @@ -72,7 +82,7 @@ variables: target_light: !input target_light # has_woken_up: !input has_woken_up sleep_mode: !input sleep_mode - presence: !input presence + # presence: !input presence trigger: - platform: template @@ -101,11 +111,12 @@ condition: # hours: 8 action: + - sequence: !input before_wake_up - service: switch.turn_off entity_id: !input 'sleep_mode' - - service: input_boolean.turn_on - target: - entity_id: !input 'presence' + # - service: input_boolean.turn_on + # target: + # entity_id: !input 'presence' - service: light.turn_on entity_id: !input 'target_light' data: @@ -122,6 +133,7 @@ action: entity_id: !input 'target_light' data: transition: 60 - - service: input_boolean.turn_off - target: - entity_id: !input 'presence' \ No newline at end of file + - sequence: !input after_wake_up + # - service: input_boolean.turn_off + # target: + # entity_id: !input 'presence' \ No newline at end of file