Skip to content

πŸ› Bug Fix

Choose a tag to compare

@cataseven cataseven released this 07 Jul 10:44
8cde701

πŸ› Bug Fixes

Fixed missing map icon for person entities

Fixed an issue where a person's icon would disappear from the map when the person had both a GPS-based and a router/ping-based device_tracker assigned and was home.

  • Root cause: Home Assistant prioritizes router-based trackers as the active source while a person is home. Since these trackers carry no coordinates, the person entity loses its latitude/longitude attributes, and the card was filtering out any entity without coordinates.
  • Fix: Added a coordinate resolution fallback to _getLocations(). For person entities without coordinates, the card now resolves the location in the following order:
    1. The first GPS-based tracker with coordinates from the person's device_trackers list,
    2. If none is found, any tracker with coordinates,
    3. Otherwise, the coordinates of the zone the person is currently in (e.g. zone.home).

ℹ️ Notes

  • Behavior is unchanged for person entities that already carry coordinates.
  • Handling of device_tracker, zone, geo_location, and FlightRadar24 entities is unaffected.