Update variables
This commit is contained in:
parent
5be661029b
commit
47e191f22f
|
|
@ -80,10 +80,7 @@ trigger_variables:
|
||||||
time_offset: !input time_offset
|
time_offset: !input time_offset
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
binary_condition: !input binary_condition
|
|
||||||
presence_condition: !input presence_condition
|
presence_condition: !input presence_condition
|
||||||
target_light: !input target_light
|
|
||||||
sleep_mode: !input sleep_mode
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: template
|
- platform: template
|
||||||
|
|
@ -109,9 +106,9 @@ condition:
|
||||||
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: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: !input 'target_light'
|
entity_id: !input target_light
|
||||||
data:
|
data:
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
transition: "{{ time_offset * 60 }}"
|
transition: "{{ time_offset * 60 }}"
|
||||||
|
|
@ -122,7 +119,7 @@ action:
|
||||||
- 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
|
||||||
Loading…
Reference in a new issue