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???
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.
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