fix: Use safe garage door close script in security automations

This commit is contained in:
2025-01-04 11:41:02 -08:00
parent 2decb4cf94
commit acfcbc1ee7

View File

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