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