Added condition to not run if any person state is unknown #35

This commit is contained in:
2022-09-08 10:08:50 -04:00
parent 19d345f515
commit fa47020abe

View File

@ -162,9 +162,21 @@
event_type: ios.action_fired event_type: ios.action_fired
event_data: event_data:
actionName: We Are Home 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: action:
- service: script.family_is_home - service: script.family_is_home
data: {}
mode: single mode: single
- id: '1641102018783' - id: '1641102018783'
alias: Family Has Left alias: Family Has Left
@ -182,8 +194,20 @@
- condition: state - condition: state
entity_id: input_boolean.guest_mode entity_id: input_boolean.guest_mode
state: 'off' 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: action:
- service: script.family_is_away - service: script.family_is_away
data: {}
mode: single mode: single
- id: '1643321652916' - id: '1643321652916'
alias: Time-Based Presence Simulation alias: Time-Based Presence Simulation