When enabled helper goes OFF, reset the countdown timer
This commit is contained in:
		@@ -128,7 +128,7 @@ blueprint:
 | 
			
		||||
        When activating a scene, try this many times in a row.
 | 
			
		||||
        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.
 | 
			
		||||
      
 | 
			
		||||
 | 
			
		||||
      default: 1
 | 
			
		||||
      selector:
 | 
			
		||||
        number:
 | 
			
		||||
@@ -309,6 +309,14 @@ action:
 | 
			
		||||
              name: "Debug: Disabled scene"
 | 
			
		||||
              message: "Disabled scene is currently set to: {{ disabled_scene }}"
 | 
			
		||||
 | 
			
		||||
      # If the enabled helper is OFF, we should start by resetting
 | 
			
		||||
      # the countdown timer to default
 | 
			
		||||
      - alias: "Reset countdown timer when enabled helper is switched OFF."
 | 
			
		||||
        service: input_number.set_value
 | 
			
		||||
        data:
 | 
			
		||||
          entity_id: !input delay_seconds_helper
 | 
			
		||||
          value: "{{ delay_seconds_default }}"
 | 
			
		||||
 | 
			
		||||
      # In "auto" mode, activate the ON or OFF scene based on whether motion is currently detected
 | 
			
		||||
      # Also use "auto" mode if motion activation is ENABLED.
 | 
			
		||||
      - alias: "auto mode: Activate ON scene, if motion is currently detected, otherwise activate the OFF scene"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user