diff --git a/packages/vacation/README.md b/packages/vacation/README.md new file mode 100644 index 0000000..a5456de --- /dev/null +++ b/packages/vacation/README.md @@ -0,0 +1,3 @@ +# Vacation Package + +This package contains automations and helpers for vacation mode. diff --git a/packages/vacation/vacation.yaml b/packages/vacation/vacation.yaml new file mode 100644 index 0000000..de6240a --- /dev/null +++ b/packages/vacation/vacation.yaml @@ -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