Remove prep 1/2 terminology in favor of notice/warning

This commit is contained in:
mike 2023-12-08 18:37:24 -08:00
parent 9b9d5a3466
commit 0f41bf3f6a

View File

@ -69,7 +69,7 @@ blueprint:
notice_seconds: notice_seconds:
name: "Notice seconds" name: "Notice seconds"
description: "The number of seconds to wait in the Prep1 (Notice) scene." description: "The number of seconds to wait in the Notice scene."
default: 15 default: 15
selector: selector:
number: number:
@ -81,7 +81,7 @@ blueprint:
warning_seconds: warning_seconds:
name: "Warning seconds" name: "Warning seconds"
description: "The number of seconds to wait in the Prep2 (Warning) scene." description: "The number of seconds to wait in the Warning scene."
default: 15 default: 15
selector: selector:
number: number:
@ -99,16 +99,16 @@ blueprint:
domain: scene domain: scene
scene_off_prep_1: scene_notice:
name: "Off Prep Scene 1 (Notice)" name: "Notice Scene"
description: "The first scene to activate when motion is no longer detected (notice phase)." description: "The first scene to activate when motion is no longer detected (notice phase)."
selector: selector:
entity: entity:
domain: scene domain: scene
scene_off_prep_2: scene_warning:
name: "Off Prep Scene 2 (Warning)" name: "Warning Scene"
description: "The second scene to activate when motion is no longer detected (warning phase)." description: "The second scene to activate when motion is no longer detected (warning phase)."
selector: selector:
entity: entity:
@ -371,7 +371,7 @@ action:
- parallel: - parallel:
- service: scene.turn_on - service: scene.turn_on
target: target:
entity_id: !input scene_off_prep_1 entity_id: !input scene_notice
- stop: "" - stop: ""
# In warning mode, just activate the WARNING scene # In warning mode, just activate the WARNING scene
@ -383,7 +383,7 @@ action:
- parallel: - parallel:
- service: scene.turn_on - service: scene.turn_on
target: target:
entity_id: !input scene_off_prep_2 entity_id: !input scene_warning
- stop: "" - stop: ""
# Don't do anything after processing the enabled_helper triggers # Don't do anything after processing the enabled_helper triggers
@ -475,10 +475,10 @@ action:
name: "Begin notice period" name: "Begin notice period"
message: "Begin notice period; Waiting while motion is still off." message: "Begin notice period; Waiting while motion is still off."
- parallel: - parallel:
- alias: "Activate Scene: Off Prep 1 (Notice)" - alias: "Activate Scene: Notice"
service: scene.turn_on service: scene.turn_on
target: target:
entity_id: !input scene_off_prep_1 entity_id: !input scene_notice
- alias: "Delay during the notice period" - alias: "Delay during the notice period"
wait_template: "{{ states[motion_sensor].state == 'on' }}" wait_template: "{{ states[motion_sensor].state == 'on' }}"
timeout: "{{ notice_seconds }}" timeout: "{{ notice_seconds }}"
@ -545,10 +545,10 @@ action:
name: "Begin warning period" name: "Begin warning period"
message: "Begin warning period; Waiting while motion is still off." message: "Begin warning period; Waiting while motion is still off."
- parallel: - parallel:
- alias: "Activate Scene: Off Prep 2 (Warning)" - alias: "Activate Scene: Warning"
service: scene.turn_on service: scene.turn_on
target: target:
entity_id: !input scene_off_prep_2 entity_id: !input scene_warning
- alias: "Delay during the warning period" - alias: "Delay during the warning period"
wait_template: "{{ states[motion_sensor].state == 'on' }}" wait_template: "{{ states[motion_sensor].state == 'on' }}"
timeout: "{{ warning_seconds }}" timeout: "{{ warning_seconds }}"