From 0f41bf3f6a7e841f3f59ec27bef1980125fff8d9 Mon Sep 17 00:00:00 2001 From: mike Date: Fri, 8 Dec 2023 18:37:24 -0800 Subject: [PATCH] Remove prep 1/2 terminology in favor of notice/warning --- motion-activated-light.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/motion-activated-light.yaml b/motion-activated-light.yaml index 8d13261..04de4d7 100644 --- a/motion-activated-light.yaml +++ b/motion-activated-light.yaml @@ -69,7 +69,7 @@ blueprint: 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 selector: number: @@ -81,7 +81,7 @@ blueprint: 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 selector: number: @@ -99,16 +99,16 @@ blueprint: domain: scene - scene_off_prep_1: - name: "Off Prep Scene 1 (Notice)" + scene_notice: + name: "Notice Scene" description: "The first scene to activate when motion is no longer detected (notice phase)." selector: entity: domain: scene - scene_off_prep_2: - name: "Off Prep Scene 2 (Warning)" + scene_warning: + name: "Warning Scene" description: "The second scene to activate when motion is no longer detected (warning phase)." selector: entity: @@ -371,7 +371,7 @@ action: - parallel: - service: scene.turn_on target: - entity_id: !input scene_off_prep_1 + entity_id: !input scene_notice - stop: "" # In warning mode, just activate the WARNING scene @@ -383,7 +383,7 @@ action: - parallel: - service: scene.turn_on target: - entity_id: !input scene_off_prep_2 + entity_id: !input scene_warning - stop: "" # Don't do anything after processing the enabled_helper triggers @@ -475,10 +475,10 @@ action: name: "Begin notice period" message: "Begin notice period; Waiting while motion is still off." - parallel: - - alias: "Activate Scene: Off Prep 1 (Notice)" + - alias: "Activate Scene: Notice" service: scene.turn_on target: - entity_id: !input scene_off_prep_1 + entity_id: !input scene_notice - alias: "Delay during the notice period" wait_template: "{{ states[motion_sensor].state == 'on' }}" timeout: "{{ notice_seconds }}" @@ -545,10 +545,10 @@ action: name: "Begin warning period" message: "Begin warning period; Waiting while motion is still off." - parallel: - - alias: "Activate Scene: Off Prep 2 (Warning)" + - alias: "Activate Scene: Warning" service: scene.turn_on target: - entity_id: !input scene_off_prep_2 + entity_id: !input scene_warning - alias: "Delay during the warning period" wait_template: "{{ states[motion_sensor].state == 'on' }}" timeout: "{{ warning_seconds }}"