I have not tried that yet… I will this evening and post a reply. Thanks!
I may be just being dense but that is literally exactly the way it is supposed to work with the automation as you have it written above.
You don’t have your girlfriends phone status in the automation anywhere so why would you think that the status of her phone would make any difference at all. The automation is only conditioned on the status of your phone.
Then you need to find out which device is hers from the list of the device_trackers you posted above and then add that to your conditions too.
I’m going to assume it is called “device_tracker.jorgie” since that is what you posted above. So the automation would be:
- alias: Sensor Board-1 PIR
trigger:
platform: mqtt
topic: "SB-1_pir"
condition:
- condition: state
entity_id: device_tracker.iphone7plus
state: not_home
- condition: state
entity_id: device_tracker.jorgie
state: not_home
action:
service: notify.ios_iphone7plus
data:
message: SB-1 PIR has detected motion
data:
push:
badge: 0
sound: #""
That will make it so that both phones need to be “not_home” before the notification is sent.
Sorry I can’t test the configuration you sent me earlier. I decided to update to 0.88.0 and it didn’t update.
I’m trying again (20 minutes) still no success…
No problem. I’ll probably still be here when it’s fixed.