Merge branch 'main' of https://git.asymworks.com/jkrauss/home-assistant
This commit is contained in:
@@ -1,5 +1,13 @@
|
|||||||
# Holiday Package
|
# Holiday Package
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
# Holiday State Helpers
|
||||||
|
input_boolean:
|
||||||
|
holiday_override_lights_night:
|
||||||
|
name: Always Turn On Holiday Lights at Night
|
||||||
|
holiday_override_lights_morning:
|
||||||
|
name: Always Turn On Holiday Lights in the Morning
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Holiday Sensors
|
# Holiday Sensors
|
||||||
template:
|
template:
|
||||||
@@ -41,7 +49,11 @@ automation:
|
|||||||
- platform: sun
|
- platform: sun
|
||||||
event: sunset
|
event: sunset
|
||||||
condition:
|
condition:
|
||||||
- "{{ is_state('binary_sensor.is_christmas_season', 'on') }}"
|
- alias: Christmas Season or Light Override Enabled
|
||||||
|
condition: or
|
||||||
|
conditions:
|
||||||
|
- "{{ is_state('binary_sensor.is_christmas_season', 'on') }}"
|
||||||
|
- "{{ is_state('input_boolean.holiday_override_lights_night', 'on') }}"
|
||||||
action:
|
action:
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
target:
|
target:
|
||||||
@@ -55,7 +67,11 @@ automation:
|
|||||||
- platform: sun
|
- platform: sun
|
||||||
event: sunset
|
event: sunset
|
||||||
condition:
|
condition:
|
||||||
- "{{ is_state('binary_sensor.is_christmas_season', 'on') }}"
|
- alias: Christmas Season or Light Override Enabled
|
||||||
|
condition: or
|
||||||
|
conditions:
|
||||||
|
- "{{ is_state('binary_sensor.is_christmas_season', 'on') }}"
|
||||||
|
- "{{ is_state('input_boolean.holiday_override_lights_night', 'on') }}"
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
@@ -70,7 +86,11 @@ automation:
|
|||||||
- platform: time
|
- platform: time
|
||||||
at: '04:30:00'
|
at: '04:30:00'
|
||||||
condition:
|
condition:
|
||||||
- "{{ is_state('binary_sensor.is_christmas_season', 'on') }}"
|
- alias: Christmas Season or Light Override Enabled
|
||||||
|
condition: or
|
||||||
|
conditions:
|
||||||
|
- "{{ is_state('binary_sensor.is_christmas_season', 'on') }}"
|
||||||
|
- "{{ is_state('input_boolean.holiday_override_lights_morning', 'on') }}"
|
||||||
action:
|
action:
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
target:
|
target:
|
||||||
@@ -84,7 +104,11 @@ automation:
|
|||||||
- platform: time
|
- platform: time
|
||||||
at: '04:30:00'
|
at: '04:30:00'
|
||||||
condition:
|
condition:
|
||||||
- "{{ is_state('binary_sensor.is_christmas_season', 'on') }}"
|
- alias: Christmas Season or Light Override Enabled
|
||||||
|
condition: or
|
||||||
|
conditions:
|
||||||
|
- "{{ is_state('binary_sensor.is_christmas_season', 'on') }}"
|
||||||
|
- "{{ is_state('input_boolean.holiday_override_lights_morning', 'on') }}"
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
|
|||||||
@@ -680,7 +680,7 @@ automation:
|
|||||||
|
|
||||||
- alias: Process callback
|
- alias: Process callback
|
||||||
choose:
|
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:
|
sequence:
|
||||||
- alias: Notify that the event was ignored
|
- alias: Notify that the event was ignored
|
||||||
action: notify.security
|
action: notify.security
|
||||||
@@ -692,14 +692,14 @@ automation:
|
|||||||
|first|default({'attributes':{'friendly_name':'Automation'}})
|
|first|default({'attributes':{'friendly_name':'Automation'}})
|
||||||
%}Open garage door ignored by {{ person.attributes.friendly_name }}
|
%}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:
|
sequence:
|
||||||
- alias: Close garage door
|
- alias: Close garage door
|
||||||
action: switch.turn_on
|
action: switch.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id: switch.garage_door_relay_1
|
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:
|
sequence:
|
||||||
- alias: Notify the event was cancelled
|
- alias: Notify the event was cancelled
|
||||||
action: notify.security
|
action: notify.security
|
||||||
@@ -771,7 +771,7 @@ automation:
|
|||||||
|
|
||||||
- alias: Process callback
|
- alias: Process callback
|
||||||
choose:
|
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:
|
sequence:
|
||||||
- alias: Notify that the event was ignored
|
- alias: Notify that the event was ignored
|
||||||
action: notify.security
|
action: notify.security
|
||||||
@@ -783,14 +783,14 @@ automation:
|
|||||||
|first|default({'attributes':{'friendly_name':'Automation'}})
|
|first|default({'attributes':{'friendly_name':'Automation'}})
|
||||||
%}Unlocked front door ignored by {{ person.attributes.friendly_name }}
|
%}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:
|
sequence:
|
||||||
- alias: Lock front door
|
- alias: Lock front door
|
||||||
action: lock.lock
|
action: lock.lock
|
||||||
target:
|
target:
|
||||||
entity_id: lock.front_door_lock_doorlock
|
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:
|
sequence:
|
||||||
- alias: Notify the event was cancelled
|
- alias: Notify the event was cancelled
|
||||||
action: notify.security
|
action: notify.security
|
||||||
|
|||||||
Reference in New Issue
Block a user