feat: Force holiday light turn-on outside of Christmas Season
This commit is contained in:
@@ -680,7 +680,7 @@ automation:
|
||||
|
||||
- alias: Process callback
|
||||
choose:
|
||||
- conditions: "{{ wait.remaining > 0 and wait.trigger.event.data.action == action_ignore }}"
|
||||
- conditions: "{{ wait.remaining > 0 and 'event' in wait.trigger and wait.trigger.event.data.action == action_ignore }}"
|
||||
sequence:
|
||||
- alias: Notify that the event was ignored
|
||||
action: notify.security
|
||||
@@ -692,14 +692,14 @@ automation:
|
||||
|first|default({'attributes':{'friendly_name':'Automation'}})
|
||||
%}Open garage door ignored by {{ person.attributes.friendly_name }}
|
||||
|
||||
- conditions: "{{ wait.remaining > 0 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:
|
||||
- alias: Close garage door
|
||||
action: switch.turn_on
|
||||
target:
|
||||
entity_id: switch.garage_door_relay_1
|
||||
|
||||
- conditions: "{{ wait.remaining > 0 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:
|
||||
- alias: Notify the event was cancelled
|
||||
action: notify.security
|
||||
@@ -771,7 +771,7 @@ automation:
|
||||
|
||||
- alias: Process callback
|
||||
choose:
|
||||
- conditions: "{{ wait.remaining > 0 and wait.trigger.event.data.action == action_ignore }}"
|
||||
- conditions: "{{ wait.remaining > 0 and 'event' in wait.trigger and wait.trigger.event.data.action == action_ignore }}"
|
||||
sequence:
|
||||
- alias: Notify that the event was ignored
|
||||
action: notify.security
|
||||
@@ -783,14 +783,14 @@ automation:
|
||||
|first|default({'attributes':{'friendly_name':'Automation'}})
|
||||
%}Unlocked front door ignored by {{ person.attributes.friendly_name }}
|
||||
|
||||
- conditions: "{{ wait.remaining > 0 and wait.trigger.event.data.action == action_lock }}"
|
||||
- conditions: "{{ wait.remaining > 0 and 'event' in wait.trigger and wait.trigger.event.data.action == action_lock }}"
|
||||
sequence:
|
||||
- alias: Lock front door
|
||||
action: lock.lock
|
||||
target:
|
||||
entity_id: lock.front_door_lock_doorlock
|
||||
|
||||
- conditions: "{{ wait.remaining > 0 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:
|
||||
- alias: Notify the event was cancelled
|
||||
action: notify.security
|
||||
|
||||
Reference in New Issue
Block a user