ax08guk
(kie)
May 26, 2019, 6:16pm
1
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?
ax08guk:
picture: \local\jess.jpg
Try this
Delete picture: \local\jess.jpg and
replace with picture: /local/jess.jpg
Restart HA and should work.
1 Like
ax08guk
(kie)
May 26, 2019, 6:44pm
3
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
Have you tried rebooting?
As long as jess.jpg is in your www folder should work
ax08guk
(kie)
May 26, 2019, 7:01pm
5
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
ax08guk
(kie)
May 26, 2019, 7:08pm
6
Still the same
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.
ax08guk
(kie)
May 26, 2019, 7:13pm
7
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…
mp1111
May 26, 2019, 11:34pm
8
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.
.
ax08guk
(kie)
May 27, 2019, 9:04pm
9
Thankyou, I’ll have a good read through and let you know how I get on
ax08guk
(kie)
May 28, 2019, 3:45pm
10
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.
Thanks for the help all