Device tracker question

In our hosehold we are 4 members. The two childeren that got an old samsung galaxy phone (no problem with these).
Me and my girlfriend got newer galaxy phones.
The problem with the newer galaxy phones is that they goes to sleep and turns off the wifi. So if we use device tracker ping we shows up as away in Homeassistant even if we are home.

So I also set up owntracks on these two phones. Since it is not always that owntracks report correctly, I often get problems.

Problem: Owntracks says that im “away” and Ping tracker says I’m “away” since the phone is falling asleep… and lights do not turn on as “we are away”

Question: I want lights in the house to turn on only if someone is “home”.
How can I make Homeassistant understand that if owntracks or ping says that I’m home… I’m home! ?
And if one of our trackers is home,the lights will turn on???

Or, is it other solutions that is better for us?

If you put multiple devices in a group then the group will be ‘home’ if at least one of the devices is. Use the group for your automation.

2 Likes

You can adjust the power/battery saving options for your phone to stop the wifi from sleeping. Obviously this will negatively effect your battery life.

1 Like

Combine OwnTracks with WiFi and Bluetooth (I talk about that here).

Leaving Bluetooth on has a negligible battery drain, and it’s never turned off.

Also, include other logic. For instance, if our TV is on then clearly we’re still at home, so we won’t be marked as away even if our phones are away.

1 Like

Sorry to ask in this post.

How can I set or what should I do in known_devices.yaml for same device with 2 device_trackers regarding the mac address. As Home Assistant has to the log file said duplicate mac address.

1 iPhone, I have icloud and owntracks on same phone. I use both.
known_devices.yaml - owntracks name generate by nmap when connect to wifi as me_suniphone
known_devices.yaml - icloud name generate by nmap when connect to wifi as suniphone
The different setting is only the name that generate automatically from nmap. And when I reboot or restart HA log will said duplicate mac address. When I change the name to be the same, to get only 1 device_tracker it will generate the name that doesn’t have. And by disable the discovery: and track new device . It won’t show the status of the name that doesn’t have in known_devices.yaml

Thank you all for fast and good answers. Have to try this out :slight_smile: