diff --git a/packages/vacation/vacation.yaml b/packages/vacation/vacation.yaml index fd2ea8e..b211edb 100644 --- a/packages/vacation/vacation.yaml +++ b/packages/vacation/vacation.yaml @@ -1,8 +1,41 @@ # Vacation Package +# ----------------------------------------------------------------------------- +# Vacation Helpers +input_boolean: + vacation_mode: + name: Vacation Mode + default: false + # ----------------------------------------------------------------------------- # Vacation Automations automation: + - alias: Vacation - Turn On Vacation Mode + trigger: + - platform: state + entity_id: input_select.house_presence_state + to: 'Extended Away' + - platform: state + entity_id: alarm.alarm_control_panel + to: armed_vacation + action: + - service: input_boolean.turn_on + target: + entity_id: input_boolean.vacation_mode + + - alias: Vacation - Turn Off Vacation Mode + trigger: + - platform: state + entity_id: input_select.house_presence_state + to: 'Just Arrived' + - platform: state + entity_id: input_select.house_presence_state + to: 'Home' + action: + - service: input_boolean.turn_off + target: + entity_id: input_boolean.vacation_mode + - alias: Vacation - Turn On Dining and Kitchen Lights at Sunset trigger: - platform: sun