Using internal URL without location enabled

Enabling location on my phone leads to massive battery drain. As I don’t have the desire, nor really the spare cash, to get a new phone with a larger, newer battery, I am wondering if there couldn’t be an alternative way to detect when my phone is at home and push it to the HA companion app? My router runs OpenWRT, so I could use the integration that uses OpenWRT for device tracking.