π Bug Fix
π 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/longitudeattributes, 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:- The first GPS-based tracker with coordinates from the person's
device_trackerslist, - If none is found, any tracker with coordinates,
- Otherwise, the coordinates of the zone the person is currently in (e.g.
zone.home).
- The first GPS-based tracker with coordinates from the person's
βΉοΈ Notes
- Behavior is unchanged for person entities that already carry coordinates.
- Handling of device_tracker, zone, geo_location, and FlightRadar24 entities is unaffected.