From cc620be332b9c4f0e22b896bd13330c1caf47171 Mon Sep 17 00:00:00 2001 From: darthsandmann Date: Tue, 9 Aug 2022 22:27:38 +0200 Subject: [PATCH] save lights before turn off --- packages/button/button_logic.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/button/button_logic.yaml b/packages/button/button_logic.yaml index 540e0e5..4d3dc30 100644 --- a/packages/button/button_logic.yaml +++ b/packages/button/button_logic.yaml @@ -175,6 +175,13 @@ script: - service: scene.turn_on target: entity_id: scene.light_bright + - delay: + hours: 0 + minutes: 0 + seconds: 2 + milliseconds: 0 + - service: script.light_store_save + mode: single #----------------------------------------------------------------------------------# # Down @@ -182,6 +189,7 @@ script: pos_down: alias: pos_down sequence: + - service: script.light_store_save # 0,0 - if: - condition: and