Add wait variables

This commit is contained in:
2023-04-25 17:56:24 -04:00
parent 6c8e2f1dd3
commit 6655cf0a9e
2 changed files with 69 additions and 69 deletions

View File

@ -510,10 +510,8 @@ script:
message: "clear_notification"
tag: skip-away
- if:
- condition: template
value_template: "{{ is_state('input_boolean.away_mode_skipped','on') or is_state('group.adults','home') }}"
- "{{ not wait.completed }}"
then:
- stop: Away Mode Skipped
- service: light.turn_off
target:
area_id:
@ -576,6 +574,8 @@ script:
target:
entity_id: media_player.living_room_tv
- service: script.security_arm_away
else:
- stop: Away Mode Skipped
mode: single
icon: mdi:shield-lock
family_is_home_day:

View File

@ -293,7 +293,7 @@ going_upstairs:
to: 'on'
timeout:
hours: 0
minutes: 5
minutes: 20
seconds: 0
milliseconds: 0
alias: Wait until the door opens
@ -304,7 +304,7 @@ going_upstairs:
alias: Turn off the lights
- wait_template: '{{ is_state(''binary_sensor.upstairs_bathroom_occupied'',''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
- if:
- condition: state