All,
So this automation works when someone is leaving home but not in the way I would like. I would only like it to trigger when someone is actually leaving home not when someone leaves another zone. Any ideas?
alias: Anyone Leaving Home
description: ""
triggers:
- trigger: state
entity_id:
- person.hy
- person.hr
- person.ryan
- person.jen
to: not_home
conditions: []
actions:
- action: notify.mobile_app_rk_12_2
metadata: {}
data:
message: "{{ trigger.to_state.name }} is leaving home"
- action: notify.mobile_app_jennifers_iphone_2
metadata: {}
data:
message: "{{ trigger.to_state.name }} is leaving home"
mode: single