"person" picture in map cards

For what it’s worth, I have the same issue. It works in my map, but not in my lovelace map card. (On the lovelace map card I just get the first initial of the HA username… in the map I get the correct picture that I assigned.)

yeah, I just learned to live with it at this point… way better and easier to use person instead of the device tracker itself IMO.

I guess it would be time to add the issue in Github…

I’m also struggling with the person and device_tracker thing. The strange thing is i had it running a few HA versions before :frowning:

It doesn’t matter if i use persons or devices. I get no picture in any case on the map cards.

My code in the “known_devices.yaml”:

manuel_p20v2_2:
  hide_if_away: false
  icon:
  mac:
  name: Manuel
  picture: /local/personen/Manuel_04.png
  track: true

My code in “configuration.yaml”:

person:
  - name: YAML_Manuel
    id: ID_YAML_Manuel
    device_trackers:
      - device_tracker.manuel_p20v2_2
  - name: YAML_Frauke
    id: ID_YAML_Frauke
    device_trackers:
      - device_tracker.frauke_pixel3a

And i also tried to use the person definition in the UI

What makes me also crazy is the behavior if i show the entities in an entity-card:
Screenshot%202
You see these groups:

  • First two entities from Fritzbox device_tracker (devices in W-Lan) show the picture
  • Next two entities are the devices i track with owntracks. They only show pictures when they are not at home. When the are at home the pictures disapear.
  • Next to (YAML) are persons i created in the configuration.yaml and show no picture
  • Last two are persons i created with the UI and show no picture

Any ideas? I spent already some hours in this small topic…

I had issues with this and someone told me to go to the customization and add it:
Here is a screenshot of mine:

Hope that helps

1 Like

Thank you for the hint. Finaly i get it working with manually changing the “customize.yaml”

person.frauke:
  entity_picture: /local/devices/frauke_05.png
person.manuel:
  entity_picture: /local/devices/manuel_05.png

By the way: The device_tracker entity of my mobiles coming from own_tracks still show the picture (or deny to show it) depending if it is at home or not. I will focus on the persons for now. With them it seems for me i have no problems.

I’m having a similiar issue. If I add the “MAP” to lovelace and add the two person entities, the pictures show. If I use the MAP from the menu on the left, I only see the letter without the image like @sfnetwork’s original post.

I have the icon set in my customize.yaml and in the known_devices.yaml files.

Hey @sfnetwork just wondering, how did you do the layout of the different sections in the right with those intersections in the cards?

I’m trying to get the same thing working and I can’t get any person to show up in the map card.

If I use a device tracker like Life360, the map works fine. But if I use a “person” entity I don’t get anything on the map.

I’ve create the "person"s and assigned all of their devices to them.

Any ideas what might be wrong?

I still have this issue, I just think it’s a bug at this point (or a missing feature…)

@sfnetwork

Does a person entity show up at all? Or it shows up but no picture for the person?

no, in my case, the entity of the person shows up but never with image…

@sfnetwork have you already filed this as a bug on github?

think I did, been a while, not sure, would have to check again…

I like your map could you share it?

I finally got it working!

So this is what I did:

  1. Go to File Editor

  2. Create a folder in config called www

  3. Upload the image there eg. marc2.jpg
    Capture

  4. Go to Configuration > Customisations

  5. Search for person.name

  6. Create an attribute called:

entity_picture
path should be “local/jpgfromstep3.jpg” in my case its “/local/marc2.jpg” (you need the quotes)

entity

  1. Save

Go to Map from the sidebar and it should show correctly.

4 Likes

Glad you sorted it out. Yep that was also the problem for me, it was seeing “”/local/marc2.jpg"" even though the customizations.yaml was correct.

Exactly :slight_smile:
My OCD was killing me with this issue for months lol

A bit late but you’ve got street names in your screenshot again :slight_smile:

@sfnetwork Can you share your yaml for that view please? The layout is awesome

I’ve tried to follow through with this thread and unfortunately am getting empty circles for my mobile phone device trackers on the map card:

I have added the additional customization to enable the entity_picture attribute for the device_trackers in question:

image

And the customizations shows under the entity itself in the Developer screen:

I was using the person entity on the map but I have a MQTT router as a secondary device_tracker to pick up if I’m at home and this device doesn’t have long/lat coordinates and therefore we dissapear from the map when at home.

Am I missing anything obvious?