Add Vacation Package
This commit is contained in:
3
packages/vacation/README.md
Normal file
3
packages/vacation/README.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# Vacation Package
|
||||||
|
|
||||||
|
This package contains automations and helpers for vacation mode.
|
||||||
47
packages/vacation/vacation.yaml
Normal file
47
packages/vacation/vacation.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user