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