save lights before turn off
This commit is contained in:
		@@ -175,6 +175,13 @@ script:
 | 
			
		||||
          - service: scene.turn_on
 | 
			
		||||
            target:
 | 
			
		||||
              entity_id: scene.light_bright
 | 
			
		||||
      - delay:
 | 
			
		||||
          hours: 0
 | 
			
		||||
          minutes: 0
 | 
			
		||||
          seconds: 2
 | 
			
		||||
          milliseconds: 0
 | 
			
		||||
      - service: script.light_store_save
 | 
			
		||||
 | 
			
		||||
    mode: single
 | 
			
		||||
  #----------------------------------------------------------------------------------#
 | 
			
		||||
  # Down
 | 
			
		||||
@@ -182,6 +189,7 @@ script:
 | 
			
		||||
  pos_down:
 | 
			
		||||
    alias: pos_down
 | 
			
		||||
    sequence:
 | 
			
		||||
      - service: script.light_store_save
 | 
			
		||||
      # 0,0
 | 
			
		||||
      - if:
 | 
			
		||||
          - condition: and
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user