Implement delay when mqtt tracked device is no longer home

Hi All,

I recently switched from bluetooth device_tracker to MQTT device_tracker.

Everything works fine, but I would like to implement something that works like “consider_home” flag in the old bluetooth device_tracker, to have some customizable delay before marking a device not_home since sometimes bluetooth could have interference.

I tried making an automation using device_tracker.see but it does not support ‘consider_home’, how could I achieve this?

I don’t know about Bluetooth or device_tracker, but I have an esp8266-01 device in each of my cars. When the car is in the garage, it connects to my network which Home Assistant sees as “connected”. In my presence automation I don’t say “not present” until it has been “not connected” for ten minutes.