I’m trying to use the Home Zone counter to show when all occupants are out or in, they are tracked with device.tracker using their phone at prsent.
However, my one as admin also has the geo location on and this seems to be causing some issue. Is it possible to stop the geo so i’m only using device tracking??
In the entities list I see myself as a person and a device tracker - i only want the tracker?
I have turned off all location sensors in the phone companion app, rebooted the HA server, turned off the WIfi on my phone, the device tracker entity shows away but the person entity shows home still??
The state of a zone is dictated by the number of person entities that are currently in that zone. This is done on purpose, since it can take multiple trackers for a person’s presence and location to be reliably tracked. AFAIK, there is no way to change zones so that they use device_tracker entities.
A common cause of the issue you have described is that your person has the “Allow login” function enabled. This function ties the person to a User account, so that anywhere that User is logged in will be reflected in the person entity’s state. Any devices that won’t accurately reflect your location should only be logged into with a User that is not attached to a person.
Thats interesting, so because i am sitting at home on my laptop talking to HA it shows me as being at home and ignores the fact that my phone tracker shows me as away?
Can you expand on how i remove the laptop from doing this?
Yes… though, in that situation, the person entity’s state might occasionally bounce between home and the phone’s location seemingly at random.
You just log out your person-user and, from now on, log in with a user that isn’t attached to a person.
You can create such users in the Users tab in the same settings menu where you create new People. If you don’t see a tab for Users, make sure you are logged in with an admin account and that “Advanced mode” is enabled in the User Profile
I would go to the People settings and remove all the attached trackers from your person. Then, reload the People integration or restart HA. Then, add back the device trackers to the person.
Also, keep in mind that device trackers have a consider_home duration that you have to exceed in order for the the state to change from home to a new state. IIRC, some can have a default value of 10 minutes. This can make it hard to test these things by manually setting the phone’s device_tracker entity’s state, since GPS will usually update multiple time within that length of time.