Faster Presence Detection?

Is there a way for HA responding to presence detection within several seconds.
I’ve tried both ping to my router and mobile phone IP address, and also Life360, but both of these sometimes take minutes to respond.
My plan is to switch on a light when approaching the house by foot, but it only takes 10-20 seconds walk between mobile linking to router and the front door, and similar time for HA to poll Life360.

Did you try with the companion app? The fastest is probably bluetooth. I attached a NUT BLE tag to the key of my wife and myself and then use a Pi (actually multiple Pis because I also use this for presence detection) to detect these BLE tags and tell it to HA (roomassistant. It detects us as home a bit before we reach the front door and I never had any false triggers in 3+ years.