Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Location update with zone name only doesnt update state of zones #3361

Closed
swegn opened this issue Feb 22, 2023 · 7 comments
Closed

Location update with zone name only doesnt update state of zones #3361

swegn opened this issue Feb 22, 2023 · 7 comments
Labels
bug Something isn't working location-tracking question Further information is requested

Comments

@swegn
Copy link

swegn commented Feb 22, 2023

**Home Assistant Android app version(s): **2023.1.1-full

Android version(s): 12

Device model(s): OnePlus Nord

Home Assistant version: 2023.2.5

Last working Home Assistant release (if known):

Description of problem, include YAML if issue is related to notifications:
Problem is when using the location tracking with zone name only.

This works but it sets the person state to the Entity ID of the zone.
But my zones have friendly names and the zones do not update its state with the person in the zone.

It works if I manually set the state of the person to the friendly name of the zone.

Companion App Logs:


Screenshot or video of problem:
Different state on the person (person.micke) when changing from exact location to zone name only:
image

State of the zone when using zone name only:
image

State of the zone when using exact location:
image

Additional information:

@swegn swegn added the bug Something isn't working label Feb 22, 2023
@jpelgrom
Copy link
Member

The app isn't responsible for updating the person entity, I think this is a core issue.

@dshokouhi
Copy link
Member

It works if I manually set the state of the person to the friendly name of the zone.

This does not mean it works, it just means you were able to override it just like you can override any entity state. It does not mean that is how it is supposed to work.

Also if you look at the state tab for when a person entity is considered home its still lower case instead of upper case indicating it is not the friendly name in the state. This is also not the entity ID, just part of it.

image

To me this does not sound like an issue at all.

@dshokouhi
Copy link
Member

Looking at the person docs this does look to be as designed. For example its not_home and not Not Home as the state.

@dshokouhi dshokouhi added the question Further information is requested label Mar 11, 2023
@swegn
Copy link
Author

swegn commented Mar 13, 2023

It seems to be a chain of states that will set the zone state to be the number of users in it.
The device_tracker state is the zone name in some format. And that is set as the person state too. The zone picks up that state and counts that person as in the zone.

But the state of the zone is only changed if the person state is the friendly name as the zone.
(The home zone seems to be an exception and works event if it isn't friendly name)

So it may be a core-issue... I don't know.
But it is still strange that the device_tracker is reporting different states when changing from exact location to zone name only in the settings.

@tjorim
Copy link

tjorim commented Jun 16, 2023

Also seeing this after switching from precise location to zone-only. Both on Android and iOS.
Does not seem to be a problem for the 'home'-zone?
This reports a similar issue? home-assistant/core#94694

@lingfish
Copy link

I'm having this issue too, and another outcome is that people/devices then don't show up on maps either.

@jpelgrom
Copy link
Member

Closing this as a duplicate of the previously mentioned home-assistant/core#94694 - updating states of zones is not something handled by the app, but by core.

another outcome is that people/devices then don't show up on maps either

This is correct, you can't put a person/device on a map if you don't have an exact location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working location-tracking question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants