Hello
I’ve created an automation that should run when our android phones aren’t home. Their presence is detected as it should (home/away).
But when the device S9 leaves home, the automation is triggered even tho the S10 is still home. It should not do that.
Now I’m pretty sure I’m misunderstanding something here but i can’t pin it down. All help is appreciated.
Thank you.
id: '1641390464890'
alias: Sluk huset indendørs når vi forlader hjemmet
description: ''
trigger:
- platform: device
device_id: ff5578aca08bdc5d61c5a89dc850aac8
domain: device_tracker
entity_id: device_tracker.thranes_s10
type: leaves
zone: zone.home_2
- platform: device
device_id: 4c9400c44f365d38b9fc356149399706
domain: device_tracker
entity_id: device_tracker.josefine_s9
type: leaves
zone: zone.home_2
condition:
condition: and
conditions:
- condition: device
device_id: 4c9400c44f365d38b9fc356149399706
domain: device_tracker
entity_id: device_tracker.josefine_s9
type: is_not_home
- condition: device
device_id: ff5578aca08bdc5d61c5a89dc850aac8
domain: device_tracker
entity_id: device_tracker.thranes_s10
type: is_not_home
action:
- scene: scene.alt_lys_indendors
- service: media_player.media_stop
target:
device_id:
- 40dad393588cb629d0f204d0ba65d0b6
- 76b8c26216dd7d4f47a61631ed5fb78c
- 59f66c8b4df17d8a2f95ff15bb4e4b97
- ad1b683e51e48f79342d2d682c1c91cc
- eea6114d69d5a774ca6f049a2d979570
- 2e52d6e8b0f504dfb43e164394128163
mode: single