From acfcbc1ee7b418e110363fc44cf3534304efbc25 Mon Sep 17 00:00:00 2001 From: "J.P. Krauss" Date: Sat, 4 Jan 2025 11:41:02 -0800 Subject: [PATCH] fix: Use safe garage door close script in security automations --- packages/security/security.yaml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/security/security.yaml b/packages/security/security.yaml index 4c3a169..5be576f 100644 --- a/packages/security/security.yaml +++ b/packages/security/security.yaml @@ -848,9 +848,7 @@ automation: - conditions: "{{ wait.remaining > 0 and 'event' in wait.trigger and wait.trigger.event.data.action == action_close }}" sequence: - alias: Close garage door - action: switch.turn_on - target: - entity_id: switch.garage_door_relay_1 + action: script.close_garage_door - conditions: "{{ wait.remaining > 0 and 'entity_id' in wait.trigger and wait.trigger.entity_id == 'alarm_control_panel.ha_alarm' }}" sequence: @@ -870,9 +868,7 @@ automation: - conditions: "{{ 'remaining' not in wait or not wait.remaining }}" sequence: - alias: Close garage door - action: switch.turn_on - target: - entity_id: switch.garage_door_relay_1 + action: script.close_garage_door - alias: Notify the event timed out action: notify.security data: