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,74 +510,74 @@ 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: - basement_studio
- basement_studio - furnace_room
- furnace_room - kallen_bedroom
- kallen_bedroom - living_room
- living_room - master_bedroom
- master_bedroom - mud_room
- mud_room - emma_bedroom
- emma_bedroom - upstairs_hallway
- upstairs_hallway - dining_room
- dining_room - downstairs_bathroom
- downstairs_bathroom - upstairs_bathroom
- upstairs_bathroom - service: input_boolean.turn_off
- service: input_boolean.turn_off target:
target: entity_id:
entity_id: - input_boolean.tina_desk_lights
- input_boolean.tina_desk_lights - input_boolean.white_noise_emma_bedroom
- input_boolean.white_noise_emma_bedroom - service: fan.turn_off
- service: fan.turn_off target:
target: area_id:
area_id: - basement_studio
- basement_studio - kallen_bedroom
- kallen_bedroom - master_bedroom
- master_bedroom - emma_bedroom
- emma_bedroom - delay:
- delay: seconds: 5
seconds: 5 - service: switch.turn_on
- service: switch.turn_on target:
target: entity_id:
entity_id: - switch.adaptive_lighting_basement_studio
- switch.adaptive_lighting_basement_studio - switch.adaptive_lighting_living_room
- switch.adaptive_lighting_living_room - switch.adaptive_lighting_downstairs_bathroom
- switch.adaptive_lighting_downstairs_bathroom - switch.adaptive_lighting_dining_room_lamp
- switch.adaptive_lighting_dining_room_lamp - switch.adaptive_lighting_tina_lamp
- switch.adaptive_lighting_tina_lamp - switch.adaptive_lighting_mud_room
- switch.adaptive_lighting_mud_room - switch.adaptive_lighting_upstairs_hallway
- switch.adaptive_lighting_upstairs_hallway - switch.adaptive_lighting_upstairs_bathroom
- switch.adaptive_lighting_upstairs_bathroom - switch.adaptive_lighting_master_bedroom
- switch.adaptive_lighting_master_bedroom - switch.adaptive_lighting_kallen_bedroom
- switch.adaptive_lighting_kallen_bedroom - switch.adaptive_lighting_emma_bedroom
- switch.adaptive_lighting_emma_bedroom - service: input_text.set_value
- service: input_text.set_value target:
target: entity_id:
entity_id: - input_text.basement_studio_selected_scene
- input_text.basement_studio_selected_scene - input_text.living_room_selected_scene
- input_text.living_room_selected_scene - input_text.downstairs_bathroom_selected_scene
- input_text.downstairs_bathroom_selected_scene - input_text.mud_room_selected_scene
- input_text.mud_room_selected_scene - input_text.tina_lamp_selected_scene
- input_text.tina_lamp_selected_scene - input_text.upstairs_hallway_selected_scene
- input_text.upstairs_hallway_selected_scene - input_text.upstairs_bathroom_selected_scene
- input_text.upstairs_bathroom_selected_scene - input_text.master_bedroom_selected_scene
- input_text.master_bedroom_selected_scene - input_text.kallen_bedroom_selected_scene
- input_text.kallen_bedroom_selected_scene - input_text.emma_bedroom_selected_scene
- input_text.emma_bedroom_selected_scene - input_text.dining_room_lamp_selected_scene
- input_text.dining_room_lamp_selected_scene data:
data: value: Adaptive
value: Adaptive - service: media_player.turn_off
- service: media_player.turn_off 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:
mode: single - stop: Away Mode Skipped
icon: mdi:shield-lock mode: single
icon: mdi:shield-lock
family_is_home_day: family_is_home_day:
alias: Family Is Home Day alias: Family Is Home Day
sequence: sequence:

View File

@ -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