Add Vacation Mode Switch
This commit is contained in:
@@ -1,8 +1,41 @@
|
|||||||
# Vacation Package
|
# Vacation Package
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
# Vacation Helpers
|
||||||
|
input_boolean:
|
||||||
|
vacation_mode:
|
||||||
|
name: Vacation Mode
|
||||||
|
default: false
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user