Add Holiday Automations
This commit is contained in:
@@ -34,3 +34,6 @@ binary_sensor:
|
|||||||
name: Night
|
name: Night
|
||||||
after: "21:00"
|
after: "21:00"
|
||||||
before: "04:00"
|
before: "04:00"
|
||||||
|
|
||||||
|
- platform: workday
|
||||||
|
country: US
|
||||||
|
|||||||
3
packages/holiday/README.md
Normal file
3
packages/holiday/README.md
Normal 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.
|
||||||
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