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 }}" - conditions: "{{ wait.remaining > 0 and 'event' in wait.trigger and wait.trigger.event.data.action == action_close }}"
sequence: sequence:
- alias: Close garage door - alias: Close garage door
action: switch.turn_on action: script.close_garage_door
target:
entity_id: switch.garage_door_relay_1
- conditions: "{{ wait.remaining > 0 and 'entity_id' in wait.trigger and wait.trigger.entity_id == 'alarm_control_panel.ha_alarm' }}" - conditions: "{{ wait.remaining > 0 and 'entity_id' in wait.trigger and wait.trigger.entity_id == 'alarm_control_panel.ha_alarm' }}"
sequence: sequence:
@@ -870,9 +868,7 @@ automation:
- conditions: "{{ 'remaining' not in wait or not wait.remaining }}" - conditions: "{{ 'remaining' not in wait or not wait.remaining }}"
sequence: sequence:
- alias: Close garage door - alias: Close garage door
action: switch.turn_on action: script.close_garage_door
target:
entity_id: switch.garage_door_relay_1
- alias: Notify the event timed out - alias: Notify the event timed out
action: notify.security action: notify.security
data: data: