Wifi Presence Detection with dynamic IPs

I managed to setup the ICMP ping presence device_tracker as detailed in the integration webpage and it is working fine, however I was attempting to use the dynamic ip addresses reported by the mobile applications instead of static hardcoded ones, but it isn’t working for some reason. Any ideas how to achieve this?

device_tracker:
  - platform: ping
    hosts:
      user1: "{{ states('sensor.mobile1_wifi_ip_address') }}"
      user2: "{{ states('sensor.mobile2_wifi_ip_address') }}"

Why not use the wifi SSID sensor as home/away?

because once you are away without wifi comms HA still ‘sees’ the device at home

I have the same problem as OP, and can’t reliably use the SSID sensor on iphones. It’s a hit and miss for some reason.

any update on this topic?

wow… this was long ago
I never quite managed to use dynamic IP addresses and eventually ran into problems with the standard ping integration, some mobiles (especially iphones) tend to stop replying to ping requests.
Later moved to a custom integration iphonedetect that works pretty reliably, but still doesn’t address the dynamic IP issue.