Add Holiday Automations

This commit is contained in:
2022-11-26 16:12:21 -08:00
parent 41e84335d5
commit d1591f7a2a
3 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
# Holiday Package
This package contains automations related to the holidays, such as Christmas Light schedules. It expects the entities `swtich.christmas_lights_front` and `switch.christmas_lights_pergola` to exist.

View File

@@ -0,0 +1,49 @@
# Holiday Package
# -----------------------------------------------------------------------------
# Holiday Sensors
# -----------------------------------------------------------------------------
# Holiday Automations
automation:
- alias: Holiday - Turn On Christmas Lights at Sunset
trigger:
- platform: sun
event: sunset
# TODO: Add Conditions
action:
- service: light.turn_on
target:
entity_id: switch.christmas_lights_front
- alias: Holiday - Turn On Christmas Lights in Morning
trigger:
- platform: time
at: '04:30:00'
# TODO: Add Conditions
action:
- service: light.turn_on
target:
entity_id: switch.christmas_lights_front
- alias: Holiday - Turn Off Christmas Lights at Midnight
trigger:
- platform: time
at: '00:00:00'
# TODO: Add Conditions
action:
- service: light.turn_off
target:
entity_id: switch.christmas_lights_front
- alias: Holiday - Turn Off Christmas Lights at Sunrise
trigger:
- platform: sun
event: sunrise
offset: '-00:30:00'
# TODO: Add Conditions
action:
- service: light.turn_off
target:
entity_id: switch.christmas_lights_front