Add Holiday Automations
This commit is contained in:
49
packages/holiday/holiday.yaml
Normal file
49
packages/holiday/holiday.yaml
Normal 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
|
||||
Reference in New Issue
Block a user