From fa47020abe37f3e6d1c99ef1e57ba4788bdfb0f3 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 8 Sep 2022 10:08:50 -0400 Subject: [PATCH] Added condition to not run if any person state is unknown #35 --- automations.yaml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/automations.yaml b/automations.yaml index ccb193f..94fb0a7 100644 --- a/automations.yaml +++ b/automations.yaml @@ -162,9 +162,21 @@ event_type: ios.action_fired event_data: actionName: We Are Home - condition: [] + condition: + - condition: not + conditions: + - condition: state + entity_id: person.tony_stork + state: unknown + - condition: state + entity_id: person.christina_stork + state: unknown + - condition: state + entity_id: group.family + state: unknown action: - service: script.family_is_home + data: {} mode: single - id: '1641102018783' alias: Family Has Left @@ -182,8 +194,20 @@ - condition: state entity_id: input_boolean.guest_mode state: 'off' + - condition: not + conditions: + - condition: state + entity_id: person.tony_stork + state: unknown + - condition: state + entity_id: person.christina_stork + state: unknown + - condition: state + entity_id: group.family + state: unknown action: - service: script.family_is_away + data: {} mode: single - id: '1643321652916' alias: Time-Based Presence Simulation