Removing parallel scenes because they didn't help anything

This commit is contained in:
mike 2023-12-27 20:59:20 -08:00
parent 2cab185ac6
commit 467fcd30e3

View File

@ -327,13 +327,11 @@ action:
entity_id: !input motion_sensor
state: "on"
then:
- parallel:
- alias: "Activate the ON scene"
service: scene.turn_on
target:
entity_id: !input scene_on
else:
- parallel:
- alias: "Activate the OFF scene"
service: scene.turn_on
target:
@ -346,7 +344,6 @@ action:
- condition: template
value_template: "{{ disabled_scene == 'on' }}"
then:
- parallel:
- service: scene.turn_on
target:
entity_id: !input scene_on
@ -358,7 +355,6 @@ action:
- condition: template
value_template: "{{ disabled_scene == 'off' }}"
then:
- parallel:
- service: scene.turn_on
target:
entity_id: !input scene_off
@ -370,7 +366,6 @@ action:
- condition: template
value_template: "{{ disabled_scene == 'notice' }}"
then:
- parallel:
- service: scene.turn_on
target:
entity_id: !input scene_notice
@ -382,7 +377,6 @@ action:
- condition: template
value_template: "{{ disabled_scene == 'warning' }}"
then:
- parallel:
- service: scene.turn_on
target:
entity_id: !input scene_warning
@ -423,7 +417,6 @@ action:
name: "Motion On"
message: "Motion was detected."
- parallel:
- alias: "Activate the ON scene"
service: scene.turn_on
target:
@ -486,11 +479,12 @@ action:
data:
name: "Begin notice period"
message: "Begin notice period; Waiting while motion is still off."
- parallel:
- alias: "Activate Scene: Notice"
service: scene.turn_on
target:
entity_id: !input scene_notice
- alias: "Delay during the notice period"
wait_template: "{{ states[motion_sensor].state == 'on' or (enabled_helper != None and is_state('enabled_helper', 'off') ) }}"
timeout: "{{ notice_seconds }}"
@ -510,11 +504,12 @@ action:
entity_id: !input motion_sensor
state: "on"
then:
- parallel:
- alias: "Activate Scene: On"
service: scene.turn_on
target:
entity_id: !input scene_on
- alias: "Increase countdown timer when user interrupts the notice period."
service: input_number.set_value
data:
@ -567,11 +562,12 @@ action:
data:
name: "Begin warning period"
message: "Begin warning period; Waiting while motion is still off."
- parallel:
- alias: "Activate Scene: Warning"
service: scene.turn_on
target:
entity_id: !input scene_warning
- alias: "Delay during the warning period"
wait_template: "{{ states[motion_sensor].state == 'on' or (enabled_helper != None and is_state('enabled_helper', 'off') ) }}"
timeout: "{{ warning_seconds }}"
@ -593,16 +589,18 @@ action:
entity_id: !input motion_sensor
state: "on"
then:
- parallel:
- alias: "Activate Scene: On"
service: scene.turn_on
target:
entity_id: !input scene_on
- alias: "Double countdown timer when user interrupts the warning period."
service: input_number.set_value
data:
entity_id: !input delay_seconds_helper
value: "{{ states[delay_seconds_helper].state | int * delay_seconds_multiplier }}"
- alias: "Limit delay seconds to its defined maximum"
if:
- condition: template
@ -620,6 +618,7 @@ action:
data:
name: "Limiting delay seconds"
message: "Delay limited to max: {{ states[delay_seconds_helper].state }}"
- alias: "Log new delay seconds"
if:
- condition: template
@ -672,7 +671,6 @@ action:
name: "Won't run on-before-off"
message: "Won't run on-before-off because seconds was less than 1"
- parallel:
- alias: "Activate Scene: Off (Done)"
service: scene.turn_on
target: