Add wait variables
This commit is contained in:
@@ -510,10 +510,8 @@ script:
|
|||||||
message: "clear_notification"
|
message: "clear_notification"
|
||||||
tag: skip-away
|
tag: skip-away
|
||||||
- if:
|
- if:
|
||||||
- condition: template
|
- "{{ not wait.completed }}"
|
||||||
value_template: "{{ is_state('input_boolean.away_mode_skipped','on') or is_state('group.adults','home') }}"
|
|
||||||
then:
|
then:
|
||||||
- stop: Away Mode Skipped
|
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
target:
|
target:
|
||||||
area_id:
|
area_id:
|
||||||
@@ -576,6 +574,8 @@ script:
|
|||||||
target:
|
target:
|
||||||
entity_id: media_player.living_room_tv
|
entity_id: media_player.living_room_tv
|
||||||
- service: script.security_arm_away
|
- service: script.security_arm_away
|
||||||
|
else:
|
||||||
|
- stop: Away Mode Skipped
|
||||||
mode: single
|
mode: single
|
||||||
icon: mdi:shield-lock
|
icon: mdi:shield-lock
|
||||||
family_is_home_day:
|
family_is_home_day:
|
||||||
|
|||||||
@@ -293,7 +293,7 @@ going_upstairs:
|
|||||||
to: 'on'
|
to: 'on'
|
||||||
timeout:
|
timeout:
|
||||||
hours: 0
|
hours: 0
|
||||||
minutes: 5
|
minutes: 20
|
||||||
seconds: 0
|
seconds: 0
|
||||||
milliseconds: 0
|
milliseconds: 0
|
||||||
alias: Wait until the door opens
|
alias: Wait until the door opens
|
||||||
@@ -304,7 +304,7 @@ going_upstairs:
|
|||||||
alias: Turn off the lights
|
alias: Turn off the lights
|
||||||
- wait_template: '{{ is_state(''binary_sensor.upstairs_bathroom_occupied'',''on'')
|
- wait_template: '{{ is_state(''binary_sensor.upstairs_bathroom_occupied'',''on'')
|
||||||
or is_state(''input_boolean.goodnight'',''on'') }}'
|
or is_state(''input_boolean.goodnight'',''on'') }}'
|
||||||
timeout: 00:10:00
|
timeout: '{{ wait.remaining }}'
|
||||||
alias: Wait until I'm in the bathroom or in bed
|
alias: Wait until I'm in the bathroom or in bed
|
||||||
- if:
|
- if:
|
||||||
- condition: state
|
- condition: state
|
||||||
|
|||||||
Reference in New Issue
Block a user