Detection presence by Wifi on android

Hi,

since the beginning i setup nmap (wifi) and owntracks (cellular) to track my devices on Home Assistant.
For me Owntracks isn’t enough smart …

So i prefer to let only Wifi scan, to determine if my devices are at home.

But since Lollipop , android seems to use a new DHCP client, to avoid to drain battery from devices.

On my Oneplus 3, my wifi is always on, when i arrive at home the detection is correct, my automations work fine.
But sometimes, Home Assistant detect me not at home (cause of DHCP client on android which does detection), so turn off my lights and 3 seconds later, turn on my lights because HA find me again.

I think change consider_home from 90 to 180…

but have you a workaround to avoid this problem ?

like a configuration “retry=1” to retry x times to confirm that the device is not at home…

The current workaround is to change the consider_home value or to combine it with another device tracker.

Another workaround would be to adapt your automation to turn off your lights after your not at home for X amount of minutes.

Hi Landrash !
thanks, i’ll see that !

I setup bluetooth as tracker for my device.
It works like a charm ;p

problem Solved

1 Like