From e49b6a8909a5c15b5906824b1115535d8aaecc08 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sat, 24 Dec 2022 14:03:35 -0500 Subject: [PATCH] Coming home from vacation will disable vacation mode --- packages/presence.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/packages/presence.yaml b/packages/presence.yaml index bc37fb9..f276f43 100644 --- a/packages/presence.yaml +++ b/packages/presence.yaml @@ -429,6 +429,14 @@ script: family_is_home_day: alias: Family Is Home Day sequence: + - if: + - condition: state + entity_id: input_boolean.vacation_mode + state: 'on' + then: + - service: input_boolean.turn_off + target: + entity_id: input_boolean.vacation_mode - service: switch.turn_off target: entity_id: switch.presence_simulation @@ -494,6 +502,14 @@ script: family_is_home_night: alias: Family Is Home Night sequence: + - if: + - condition: state + entity_id: input_boolean.vacation_mode + state: 'on' + then: + - service: input_boolean.turn_off + target: + entity_id: input_boolean.vacation_mode - service: switch.turn_off target: entity_id: switch.presence_simulation