Hi,
For the last 6 months (maybe longer) my Group for determining if an Adult is home, has been unreliable.
I’ve been using HA for 2.5yrs. I’m not a programmer but comfortable. Running HA 2022.11.3 on Odroid.
My iphone seems to be the unreliable device. I’m using the Unifi Network integration to determine who is home (default 300secs off wifi until considered away)
I also have the IOS HA mobile app ios with location tracking on my phone.
Other adults are located only via Unifi presence.
The device_tracker group is defined in configuration.yaml
group:
adults_home_grp:
name: Adults Home Group
entities:
- device_tracker.gtxxx.4
- device_tracker.ah_xxx
- device_tracker.alixxx
The images illustrate my phone GTxxx.4 has at times a home (lower h) state and a Home (upper H) state.They appear as different colours in the History timeline and appear to affect the group status.
The Orange highlighted “home” states in the images, have the Group registering Home correctly.
The Blue highlighted “Home” states in the images, trigger an Away state REGARDLESS of the state of other devices in the group.
If I force the state of my device to “home” in Dev Tools - States, the group works correctly.
The Group logic fails with “Home” misspelled (ie. Even if another Adult is home, the group will have an Away state).
I’m assuming the location tracking of Unifi is clashing with the HA mobile app location?
Unifi Network triggers “home” away events for other users. So is the HA app tracking causing the issue of “Home” states?
I would have assumed the Mobile App always wins, but there are times when Unifi reports my state correctly. As the images illustrate.
Other forum users have reported unreliable tracking groups, without any clear cause. Group home / not_home behaviour
Is this a bug or expected behaviour for some edge case?
Hoping someone can point me in the right direction please, or if I’m doing it all wrong I’m happy for constructive criticism.