From fdbe8ecb119a2d9f344df74620792e96c5de7a2e Mon Sep 17 00:00:00 2001 From: "J.P. Krauss" Date: Tue, 21 Nov 2023 15:20:02 -0700 Subject: [PATCH] Add Vacation Mode Switch --- packages/vacation/vacation.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/packages/vacation/vacation.yaml b/packages/vacation/vacation.yaml index fd2ea8e..f331707 100644 --- a/packages/vacation/vacation.yaml +++ b/packages/vacation/vacation.yaml @@ -1,8 +1,40 @@ # Vacation Package +# ----------------------------------------------------------------------------- +# Vacation Helpers +input_boolean: + vacation_mode: + name: Vacation Mode + # ----------------------------------------------------------------------------- # 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