Add Vacation Mode Switch

This commit is contained in:
2023-11-21 15:20:02 -07:00
parent cc72610f05
commit fdbe8ecb11

View File

@@ -1,8 +1,40 @@
# Vacation Package # Vacation Package
# -----------------------------------------------------------------------------
# Vacation Helpers
input_boolean:
vacation_mode:
name: Vacation Mode
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Vacation Automations # Vacation Automations
automation: 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 - alias: Vacation - Turn On Dining and Kitchen Lights at Sunset
trigger: trigger:
- platform: sun - platform: sun