From 070c4b941a4b7ffb75a13e0e19c3e50e7097fd33 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 23 Jan 2023 16:50:47 -0500 Subject: [PATCH] Improved "skip_away" ios notification #32 --- packages/presence.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/packages/presence.yaml b/packages/presence.yaml index 1da3a79..fcac27a 100644 --- a/packages/presence.yaml +++ b/packages/presence.yaml @@ -382,18 +382,23 @@ script: title: "Everyone Left" message: "Away mode arming in 1 minute" data: + tag: skip-away actions: - action: "SKIP_AWAY" title: Skip Away Mode icon: mdi:debug-step-over - - wait_template: "{{ is_state('input_boolean.away_mode_skipped','on') }}" + - wait_template: "{{ is_state('input_boolean.away_mode_skipped','on') or is_state('group.family','home') }}" continue_on_timeout: true timeout: minutes: 1 + - service: notify.all_ios + data: + message: "clear_notification" + data: + tag: skip-away - if: - - condition: state - entity_id: input_boolean.away_mode_skipped - state: "on" + - condition: template + value_template: "{{ is_state('input_boolean.away_mode_skipped','on') or is_state('group.family','home') }}" then: - stop: Away Mode Skipped - service: light.turn_off