summary when entity is already in same state
This commit is contained in:
		@@ -95,6 +95,13 @@ script:
 | 
			
		||||
                entity_id: input_number.pos_right
 | 
			
		||||
                state: "0.0"
 | 
			
		||||
        then:
 | 
			
		||||
          - if:
 | 
			
		||||
              - condition:
 | 
			
		||||
                  - condition: state
 | 
			
		||||
                    entity_id: light.all_lights
 | 
			
		||||
                    state: "on"
 | 
			
		||||
            then:
 | 
			
		||||
              - service: script.summary_notification
 | 
			
		||||
          - service: light.turn_on
 | 
			
		||||
            target:
 | 
			
		||||
              entity_id: light.all_lights
 | 
			
		||||
@@ -186,6 +193,13 @@ script:
 | 
			
		||||
                entity_id: input_number.pos_right
 | 
			
		||||
                state: "0.0"
 | 
			
		||||
        then:
 | 
			
		||||
          - if:
 | 
			
		||||
              - condition:
 | 
			
		||||
                  - condition: state
 | 
			
		||||
                    entity_id: light.all_lights
 | 
			
		||||
                    state: "off"
 | 
			
		||||
            then:
 | 
			
		||||
              - service: script.summary_notification
 | 
			
		||||
          - service: light.turn_off
 | 
			
		||||
            target:
 | 
			
		||||
              entity_id: light.all_lights
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user