Switch senes to parallel to avoid lag, probably
This commit is contained in:
parent
045e87fe73
commit
f5b49149e9
@ -137,16 +137,11 @@ action:
|
|||||||
name: "Motion On"
|
name: "Motion On"
|
||||||
message: "Motion was detected."
|
message: "Motion was detected."
|
||||||
|
|
||||||
|
- parallel:
|
||||||
- alias: "Activate the ON scene"
|
- alias: "Activate the ON scene"
|
||||||
service: scene.turn_on
|
service: scene.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id: !input scene_on
|
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
|
# Take actions based on Motion being undetected
|
||||||
@ -181,6 +176,7 @@ action:
|
|||||||
data:
|
data:
|
||||||
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:
|
||||||
- alias: "Activate Scene: Off Prep 1 (Notice)"
|
- alias: "Activate Scene: Off Prep 1 (Notice)"
|
||||||
service: scene.turn_on
|
service: scene.turn_on
|
||||||
target:
|
target:
|
||||||
@ -193,6 +189,7 @@ action:
|
|||||||
entity_id: !input motion_sensor
|
entity_id: !input motion_sensor
|
||||||
state: "on"
|
state: "on"
|
||||||
then:
|
then:
|
||||||
|
- parallel:
|
||||||
- alias: "Activate Scene: On"
|
- alias: "Activate Scene: On"
|
||||||
service: scene.turn_on
|
service: scene.turn_on
|
||||||
target:
|
target:
|
||||||
@ -213,6 +210,7 @@ action:
|
|||||||
data:
|
data:
|
||||||
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:
|
||||||
- alias: "Activate Scene: Off Prep 2 (Warning)"
|
- alias: "Activate Scene: Off Prep 2 (Warning)"
|
||||||
service: scene.turn_on
|
service: scene.turn_on
|
||||||
target:
|
target:
|
||||||
@ -225,6 +223,7 @@ action:
|
|||||||
entity_id: !input motion_sensor
|
entity_id: !input motion_sensor
|
||||||
state: "on"
|
state: "on"
|
||||||
then:
|
then:
|
||||||
|
- parallel:
|
||||||
- alias: "Activate Scene: On"
|
- alias: "Activate Scene: On"
|
||||||
service: scene.turn_on
|
service: scene.turn_on
|
||||||
target:
|
target:
|
||||||
@ -241,6 +240,7 @@ action:
|
|||||||
message: "Warning period has finished and motion is still off."
|
message: "Warning period has finished and motion is still off."
|
||||||
|
|
||||||
|
|
||||||
|
- parallel:
|
||||||
- alias: "Activate Scene: Off (Done)"
|
- alias: "Activate Scene: Off (Done)"
|
||||||
service: scene.turn_on
|
service: scene.turn_on
|
||||||
target:
|
target:
|
||||||
|
Loading…
Reference in New Issue
Block a user