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