Presence detection based on ping

Hello forum,
I set two binary sensors for my home phones.

- platform: ping
  host: 192.168.xxx.xxx
  name: myself phone
- platform: ping
  host: 192.168.xxx.yyy
  name: daughter phone

So I’m trying to understand how to set an automation which will set the correct presence of who is at home.
I saw this post, but there are few thing that I don’t figure out.

These are which person should be set and what has to do the dev_id into that automation. Because the conditions are not like that post.

Why not use the ping device tracker?

I tried that, but probably I didn’t find to assign a detection for each person.

Adding 2 statements, will only apply for one person, am I wrong ?
Anyways, I still see that is failing blatantly to give the detection. I admit that I have a long path to go with, before I can manage correctly the family detection.
I’m seeing that bluetooth is better, but is not covering the home area as much as it does by WiFi.