50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
# 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
|