Help with Presence Detection (ping)

Hello. I’m starting with home assistant so maybe this question will be dumb. Im having problems with presence detection ping. I have this configuration:

Configuration.yaml

device_tracker:

  • platform: ping
    track_new_devices: True
    consider_home: 30
    hosts:
    tomas: 192.168.1.121

  • platform: ping
    track_new_devices: True
    consider_home: 30
    hosts:
    kristynka: 192.168.1.124

Known_devices.yaml

tomas:
hide_if_away: false
name: tomas
mac: EE:FA:F0:BE:D9:90
icon: mdi:home
picture:
track: true

kristynka:
hide_if_away: false
name: kristynka
mac: F0:78:07:95:B9:42
icon: mdi:home
picture:
track: true

That is ok. Status on lovelace show home or away. Problem is here

Entity does not have ID. So i can’t use this for some automation. How can i solve this please? Thank you

It will still have an entity_id, which is what you use in an automation.

I suspect it will be device_tracker.tomas and device_tracker.kristynka

You are right! I’m idiot. Thanks!
But one more problem. I have android phone and everything is ok.
My girlfriend have iphone. Iphone is connected to wifi, status is home, that’s ok. But if she turn off screen for a while, status changed to away. Is this IOS problem? Can i fix this?

I can’t help with ios particularly, but my other half uses an iPhone too and we get occasional dropouts on the Wi-Fi for her too, but I supplement the ping trackers with Bluetooth (I use the monitor.sh system that you can find around here somewhere) and the combination seems to work well.