Scene repeating: Make a little zipper via 500ms instead of 1s retries.
This commit is contained in:
parent
65a542484d
commit
1771b154e0
@ -125,7 +125,7 @@ blueprint:
|
|||||||
scene_repeat_count:
|
scene_repeat_count:
|
||||||
name: "Scene repeat/retry count"
|
name: "Scene repeat/retry count"
|
||||||
description: >
|
description: >
|
||||||
Whenever activating a scene, try this many times at 1-second intervals.
|
When activating a scene, try this many times in a row.
|
||||||
This is sometimes useful when the network seems buggy or laggy,
|
This is sometimes useful when the network seems buggy or laggy,
|
||||||
or for certain lights that fail to correctly apply brightness/color when first turning on.
|
or for certain lights that fail to correctly apply brightness/color when first turning on.
|
||||||
|
|
||||||
@ -345,7 +345,7 @@ action:
|
|||||||
target:
|
target:
|
||||||
entity_id: !input scene_on
|
entity_id: !input scene_on
|
||||||
- delay:
|
- delay:
|
||||||
seconds: 1
|
milliseconds: 500
|
||||||
- stop: ""
|
- stop: ""
|
||||||
|
|
||||||
# In OFF mode, just activate the OFF scene
|
# In OFF mode, just activate the OFF scene
|
||||||
@ -361,7 +361,7 @@ action:
|
|||||||
target:
|
target:
|
||||||
entity_id: !input scene_off
|
entity_id: !input scene_off
|
||||||
- delay:
|
- delay:
|
||||||
seconds: 1
|
milliseconds: 500
|
||||||
- stop: ""
|
- stop: ""
|
||||||
|
|
||||||
# In notice mode, just activate the NOTICE scene
|
# In notice mode, just activate the NOTICE scene
|
||||||
@ -377,7 +377,7 @@ action:
|
|||||||
target:
|
target:
|
||||||
entity_id: !input scene_notice
|
entity_id: !input scene_notice
|
||||||
- delay:
|
- delay:
|
||||||
seconds: 1
|
milliseconds: 500
|
||||||
- stop: ""
|
- stop: ""
|
||||||
|
|
||||||
# In warning mode, just activate the WARNING scene
|
# In warning mode, just activate the WARNING scene
|
||||||
@ -393,7 +393,7 @@ action:
|
|||||||
target:
|
target:
|
||||||
entity_id: !input scene_warning
|
entity_id: !input scene_warning
|
||||||
- delay:
|
- delay:
|
||||||
seconds: 1
|
milliseconds: 500
|
||||||
- stop: ""
|
- stop: ""
|
||||||
|
|
||||||
# Don't do anything after processing the enabled_helper triggers
|
# Don't do anything after processing the enabled_helper triggers
|
||||||
@ -440,7 +440,7 @@ action:
|
|||||||
target:
|
target:
|
||||||
entity_id: !input scene_on
|
entity_id: !input scene_on
|
||||||
- delay:
|
- delay:
|
||||||
seconds: 1
|
milliseconds: 500
|
||||||
|
|
||||||
|
|
||||||
# Motion is not detected
|
# Motion is not detected
|
||||||
@ -508,7 +508,7 @@ action:
|
|||||||
target:
|
target:
|
||||||
entity_id: !input scene_notice
|
entity_id: !input scene_notice
|
||||||
- delay:
|
- delay:
|
||||||
seconds: 1
|
milliseconds: 500
|
||||||
|
|
||||||
- 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') ) }}"
|
||||||
@ -596,7 +596,7 @@ action:
|
|||||||
target:
|
target:
|
||||||
entity_id: !input scene_warning
|
entity_id: !input scene_warning
|
||||||
- delay:
|
- delay:
|
||||||
seconds: 1
|
milliseconds: 500
|
||||||
|
|
||||||
- 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') ) }}"
|
||||||
@ -625,7 +625,7 @@ action:
|
|||||||
target:
|
target:
|
||||||
entity_id: !input scene_on
|
entity_id: !input scene_on
|
||||||
- delay:
|
- delay:
|
||||||
seconds: 1
|
milliseconds: 500
|
||||||
|
|
||||||
- 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
|
||||||
@ -711,7 +711,7 @@ action:
|
|||||||
target:
|
target:
|
||||||
entity_id: !input scene_off
|
entity_id: !input scene_off
|
||||||
- delay:
|
- delay:
|
||||||
seconds: 1
|
milliseconds: 500
|
||||||
|
|
||||||
- alias: "Reset countdown timer after turning off lights."
|
- alias: "Reset countdown timer after turning off lights."
|
||||||
service: input_number.set_value
|
service: input_number.set_value
|
||||||
|
Loading…
Reference in New Issue
Block a user