From bcda1606905528a4f9c5a08deeff6e1876e63a04 Mon Sep 17 00:00:00 2001 From: darthsandmann Date: Tue, 9 Aug 2022 18:30:51 +0200 Subject: [PATCH] summary when entity is already in same state --- packages/button/button_logic.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/button/button_logic.yaml b/packages/button/button_logic.yaml index f39c464..540e0e5 100644 --- a/packages/button/button_logic.yaml +++ b/packages/button/button_logic.yaml @@ -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