Switch senes to parallel to avoid lag, probably

This commit is contained in:
mike 2023-10-20 23:51:25 -07:00
parent 045e87fe73
commit f5b49149e9

View File

@ -137,16 +137,11 @@ action:
name: "Motion On"
message: "Motion was detected."
- parallel:
- alias: "Activate the ON scene"
service: scene.turn_on
target:
entity_id: !input scene_on
- delay:
seconds: 1
- alias: "Activate the ON scene again, after a delay (to help laggy setups)"
service: scene.turn_on
target:
entity_id: !input scene_on
# Take actions based on Motion being undetected
@ -181,6 +176,7 @@ action:
data:
name: "Begin notice period"
message: "Begin notice period; Waiting while motion is still off."
- parallel:
- alias: "Activate Scene: Off Prep 1 (Notice)"
service: scene.turn_on
target:
@ -193,6 +189,7 @@ action:
entity_id: !input motion_sensor
state: "on"
then:
- parallel:
- alias: "Activate Scene: On"
service: scene.turn_on
target:
@ -213,6 +210,7 @@ action:
data:
name: "Begin warning period"
message: "Begin warning period; Waiting while motion is still off."
- parallel:
- alias: "Activate Scene: Off Prep 2 (Warning)"
service: scene.turn_on
target:
@ -225,6 +223,7 @@ action:
entity_id: !input motion_sensor
state: "on"
then:
- parallel:
- alias: "Activate Scene: On"
service: scene.turn_on
target:
@ -241,6 +240,7 @@ action:
message: "Warning period has finished and motion is still off."
- parallel:
- alias: "Activate Scene: Off (Done)"
service: scene.turn_on
target: