Mikrotik device tracker, one device state is erratic

Hi!

I moved from Asus to Mikrotik, and while it all worked fine on asus with legacy device tracker apparently legacy does not work either for mikrotik or after hass update.

The problem is that while my phone (Xiaomi Mi9) is reported fine and stable as Home my wife’s Huawei is constantly reported as away\home\away\home within minutes. Which naturally breaks automations based on presence.

It could be solved with “consider_away” or similar options that were available in legacy device tracker but they are not available for Mikrotik. Is there anything I can do to solve this problem? T hanks.

I solved this in a general sense by using a door sensor, and an input boolean, and some automations.

The key thing is that I only mark people as away if most of their trackers are away, and the exit door sensor recently changed state (that is, the door opened recently). That has resolved the issues of false aways. I wrote up a summary of a slightly older version here.

Thanks for suggestion, but I don’t think it’s a valid solution to a problem, more like a hacky work around. Something like consider_away timer built into device tracker (as it was before, mind you) sounds a lot better. I remember there was even something about this being required for iPhones because they often turn wifi off to conserve battery or something like that.

I could change it to use “away for” instead of “from home to away” I guess. Still meh