Remove commented code
This commit is contained in:
parent
4f860d66c7
commit
5be661029b
|
|
@ -54,23 +54,12 @@ blueprint:
|
||||||
selector:
|
selector:
|
||||||
entity:
|
entity:
|
||||||
domain: binary_sensor
|
domain: binary_sensor
|
||||||
# has_woken_up:
|
|
||||||
# name: Person has woken up
|
|
||||||
# description: Everything that can have a state on/off
|
|
||||||
# selector:
|
|
||||||
# entity:
|
|
||||||
# domain: binary_sensor
|
|
||||||
sleep_mode:
|
sleep_mode:
|
||||||
name: Sleep Mode
|
name: Sleep Mode
|
||||||
description: Switch to turn off before the alarm
|
description: Switch to turn off before the alarm
|
||||||
selector:
|
selector:
|
||||||
entity:
|
entity:
|
||||||
domain: switch
|
domain: switch
|
||||||
# presence:
|
|
||||||
# name: presence
|
|
||||||
# selector:
|
|
||||||
# entity:
|
|
||||||
# domain: input_boolean
|
|
||||||
additional_section:
|
additional_section:
|
||||||
name: Additional Actions
|
name: Additional Actions
|
||||||
description: Additional actions before and after the lights turn on
|
description: Additional actions before and after the lights turn on
|
||||||
|
|
@ -94,9 +83,7 @@ variables:
|
||||||
binary_condition: !input binary_condition
|
binary_condition: !input binary_condition
|
||||||
presence_condition: !input presence_condition
|
presence_condition: !input presence_condition
|
||||||
target_light: !input target_light
|
target_light: !input target_light
|
||||||
# has_woken_up: !input has_woken_up
|
|
||||||
sleep_mode: !input sleep_mode
|
sleep_mode: !input sleep_mode
|
||||||
# presence: !input presence
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: template
|
- platform: template
|
||||||
|
|
@ -118,19 +105,11 @@ condition:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >
|
value_template: >
|
||||||
{{ states(presence_condition) in ['Home', 'home'] }}
|
{{ states(presence_condition) in ['Home', 'home'] }}
|
||||||
# - condition: state
|
|
||||||
# entity_id: !input has_woken_up
|
|
||||||
# state: 'off'
|
|
||||||
# for:
|
|
||||||
# hours: 8
|
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- sequence: !input before_wake_up
|
- sequence: !input before_wake_up
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
entity_id: !input 'sleep_mode'
|
entity_id: !input 'sleep_mode'
|
||||||
# - service: input_boolean.turn_on
|
|
||||||
# target:
|
|
||||||
# entity_id: !input 'presence'
|
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: !input 'target_light'
|
entity_id: !input 'target_light'
|
||||||
data:
|
data:
|
||||||
|
|
@ -140,14 +119,10 @@ action:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: !input alarmed_turned_off
|
entity_id: !input alarmed_turned_off
|
||||||
to: "on"
|
to: "on"
|
||||||
# - wait_template: "{{ is_state(has_woken_up, 'on') }}"
|
|
||||||
- delay:
|
- delay:
|
||||||
minutes: !input turn_off_delay
|
minutes: !input turn_off_delay
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id: !input 'target_light'
|
entity_id: !input 'target_light'
|
||||||
data:
|
data:
|
||||||
transition: 60
|
transition: 60
|
||||||
- sequence: !input after_wake_up
|
- sequence: !input after_wake_up
|
||||||
# - service: input_boolean.turn_off
|
|
||||||
# target:
|
|
||||||
# entity_id: !input 'presence'
|
|
||||||
Loading…
Reference in a new issue