Tweak basement off automation

This commit is contained in:
2023-07-13 02:36:34 -04:00
parent fd21e00650
commit 9c84f301d6

View File

@ -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