summary when entity is already in same state

This commit is contained in:
darthsandmann 2022-08-09 18:30:51 +02:00
parent 776d3871b5
commit bcda160690

View File

@ -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