-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
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
State of zone entity should be friendly name when Privacy == Zone Name Only #105773
Comments
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) device_tracker documentation |
+1 to this request |
core/homeassistant/components/device_tracker/legacy.py Lines 889 to 912 in 29cac5b
I had a quick look at the device update code, and if I understand the code here correctly, it shows that the friendly_name of the zone is obtained by accurately determining the zone based on gps. Only I am not sure how exactly to convert the zone id string into a zone object to get the friendly_name of the zone I guess, something like this: # ...
if self.location_name:
zone_state = zone.get_zone_state(self.hass, self.location_name)
self._state = self.location_name if zone_state is None else zone_state.name
# elif ... assuming def get_zone_state(hass: HomeAssistant, zone_id: str) -> State | None:
""" Find the active zone with given id. """
zone = hass.states.get(zone_id) # possible security hole? Device app can send any entity id
if (
not zone
or zone.state == STATE_UNAVAILABLE
or zone.attributes.get(ATTR_PASSIVE)
):
return None
return zone |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
I'm not sure if anyone will see this, but @dakone22 has offered much more insight than I can on the issue. Any idea how to get this resurfaced? |
This issue still persists in the newest version - zone is still being presented non-friendly when Privacy == Zone Name Only. |
Hey there, |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
This hasn't been fixed |
Agreed with Tom
pt., 30 sie 2024 o 00:42 Tom Parkinson ***@***.***>
napisał(a):
… This hasn't been fixed
—
Reply to this email directly, view it on GitHub
<#105773 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEO35J7BBWA7AFBF3Q6ONV3ZT6PVXAVCNFSM6AAAAABAVQ5XVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJZGE4TCMRQHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
+1 on this request. Experiencing the exact same issue. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Still an issue |
Confirm - still an issue
śr., 11 gru 2024 o 16:33 Mitch Talmadge ***@***.***>
napisał(a):
… Still an issue
—
Reply to this email directly, view it on GitHub
<#105773 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEO35JYDOM7XVS46ID4NC3D2FBLM5AVCNFSM6AAAAABAVQ5XVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMZWGMZDQMBZGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I just enabled zone only privacy in the companion app and this broke my dashboard. As in it doesn't show the user friendly zone name and as a secondary effect doesn't show the correct icon either. This has been an issue for over a year so I think someone from the community will have to fix it. There is a reasonable suggestion above. Could we brave a PR perhaps? |
The problem
If "Zone Name Only" is set under the "Location Sent" setting of the Companion app, then the entity name of the zone gets shown on the person entity cards on the dashboard. This behaviour is inconsistent with the "Exact" location sent setting, which shows the friendly name of the zone.
In this example, kids have the “Location Sent” to “Exact” under Privacy in the app and for adults to “Zone Name Only”.
The dashboard with simple person entities shows correctly “Home” and “Away” for all. However, once in a pre-configured zone:
kids: it displays the zone’s friendly name, e.g. “School”
adults: it displays the zone’s entity, like “kids_school” instead of “School”.
There's a forum discussion thread with several users about this. It was also submitted as an issue on the frontend but no problems reported there.
What version of Home Assistant Core has the issue?
2023.12.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Device tracker
Link to integration documentation on our website
https://www.home-assistant.io/integrations/device_tracker/
Diagnostics information
State and attributes of the privacy-enabled person as well as the zone when issue appears:
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: