From 9c84f301d6a27a13481113fe4e14a7365409ee7e Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 13 Jul 2023 02:36:34 -0400 Subject: [PATCH] Tweak basement off automation --- scripts.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/scripts.yaml b/scripts.yaml index 19069a5..cc6b45e 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -613,8 +613,22 @@ basement_shutdown: target: entity_id: - script.asus_laptop_shutdown - - script.kallen_desktop_shutdown alias: Shut down the laptop + - if: + - condition: state + entity_id: input_boolean.kallen_computer_updates + state: 'off' + then: + - service: script.kallen_desktop_shutdown + data: {} + else: + - service: script.kallen_desktop_lock + data: {} + - service: input_boolean.turn_off + data: {} + target: + entity_id: input_boolean.kallen_computer_updates + alias: Turn off Kallen Desktop unless updates are scheduled - service: script.text_notify data: type: alert