Add Vacation Package

This commit is contained in:
2022-11-23 09:46:02 -07:00
parent 7745da43fd
commit e234f0ffe7
2 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
# Vacation Package
This package contains automations and helpers for vacation mode.

View File

@@ -0,0 +1,47 @@
# Vacation Package
# -----------------------------------------------------------------------------
# Vacation Automations
automation:
- alias: Vacation - Turn On Dining and Kitchen Lights at Sunset
trigger:
- platform: sun
event: sunset
offset: '-00:30:00'
# TODO: Add Conditions
action:
- delay: "00:{{ range(0,59)|random|int }}:00"
- service: light.turn_on
target:
entity_id: light.dining_room_light
- service: light.turn_on
target:
entity_id: light.kitchen_light
- alias: Vacation - Turn On Living Room Lights after Dinner
trigger:
- platform: time
at: '18:30:00'
# TODO: Add Conditions
action:
- delay: "00:{{ range(0,59)|random|int }}:00"
- service: light.turn_off
target:
entity_id: light.dining_room_light
- service: light.turn_off
target:
entity_id: light.kitchen_light
- service: light.turn_on
target:
entity_id: light.living_room_light
- alias: Vacation - Turn Off Living Room Lights at Bedtime
trigger:
- platform: time
at: '20:30:00'
# TODO: Add Conditions
action:
- delay: "00:{{ range(0,59)|random|int }}:00"
- service: light.turn_off
target:
entity_id: light.living_room_light