Compare commits

..

No commits in common. "576857a310d013bf27204bef85d183652447ab57" and "ecd3435bb2ecdb3f85a3cda37189a3b74349d1a6" have entirely different histories.

View file

@ -18,14 +18,6 @@ blueprint:
number:
min: 0
max: 30
turn_off_delay:
name: Lights turn off delay
description: Belay before the lights turn off after waking up
default: 10
selector:
number:
min: 0
max: 30
binary_condition:
name: Alarm today
description: Trigger the alarm today ?
@ -64,21 +56,11 @@ blueprint:
selector:
entity:
domain: switch
# presence:
# name: presence
# selector:
# entity:
# domain: input_boolean
before_wake_up:
name: Before wake up action
description: Actions before the lights turn on
presence:
name: presence
selector:
action:
after_wake_up:
name: After wake up action
description: Actions after the lights turn on
selector:
action:
entity:
domain: input_boolean
trigger_variables:
alarm_time: !input alarm_time
@ -90,7 +72,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
@ -119,12 +101,11 @@ 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:
@ -136,12 +117,11 @@ action:
to: "on"
# - wait_template: "{{ is_state(has_woken_up, 'on') }}"
- delay:
minutes: !input turn_off_delay
minutes: 10
- service: light.turn_off
entity_id: !input 'target_light'
data:
transition: 60
- sequence: !input after_wake_up
# - service: input_boolean.turn_off
# target:
# entity_id: !input 'presence'
- service: input_boolean.turn_off
target:
entity_id: !input 'presence'