Pictures not working

Hi all

I’m trying to associate a picture with my Hassio person/tracker entities.

I have tried storing the images locally - \www\jess.jpg with the following in known devices:

jessica_002:
  hide_if_away: false
  icon:
  mac:
  name: jessica
  picture: \local\jess.jpg
  track: true

I have also tried pulling my facebook profile pic:

kieran_001:
  hide_if_away: false
  icon:
  mac:
  name: kieran
  picture: https://graph.facebook.com/690885077/picture?type=normal
  track: true

Whatever I try, I still have the circle with the initials in the map and at the top of the webui.

Can anybody point me in the right direction?

Try this

Delete picture: \local\jess.jpg and
replace with picture: /local/jess.jpg

Restart HA and should work.

1 Like

Thanks mp

Not sure how I’ve managed to do that. Here’s my new YAML but I’m still having the issue:

jessica_002:
  hide_if_away: false
  icon:
  mac:
  name: jessica
  picture: /local/jess.jpg
  track: true

Something I’ve noticed…if I try to view the image directly on the server with Chrome (via http://192.168.0.30:8123/local/jess.jpg), I get 404: Not Found.

Also, should I be setting the picture attribute to the person entity or the device entity (although I’ve already tried both)?

Thanks for the help :slight_smile:

Have you tried rebooting?

As long as jess.jpg is in your www folder should work

Strangely, Chrome now displays the image instead of 404.

Full reboot happening now…up until now, just been restarting Hassio, not the whole Pi.

I’ll let you know

:crossed_fingers:

Still the same :thinking:

I’ve tried every combination I’ve read up about.

I’ve even tried changing the picture attribute for both the device and person entities via the customize entities menu followed by restarts off Hassio…still nothing.

Just noticed, pictures are loading. If I go to the entity viewer, I can see the pictures when going through the list of entities at http://192.168.0.30:8123/dev-state

They’re associated to the devices though…

That means that you setup the person correctly.

If it is not showing on the map- that is a different issue and it depends on your zones setup.

.

Thankyou, I’ll have a good read through and let you know how I get on :+1:

Hey all, just an update. I got this working by changing the badges at the top from the person entity to the tracker entity.

I did the same on the map as it was tracking the person, not the device tracker.

Not sure why it works like that, but it does what I want. :+1:

Thanks for the help all :+1::+1::+1: