You are sure about this path, cause when I try to add it my HA did not want to start
NO, I’m on Hassbian, just realized that you were on Hass.io
You can find your path on the about page:
Thanks I learn something every day.
I have following path stated there:
Path to configuration.yaml: /config
So, what I should put into whitelist?
-
/www/
or -
/config/www/
??
What do you get if you use the following?
picture: https://www.home-assistant.io/images/favicon-192x192.png
Now it works :D:D:D
Strange, really strange
Glad you got it sorted
Yeap, but it works only with external adresses, not internal from SD card
Just to confirm, the WWW directory you created with the pics, is located in the /config directory same as your configuration.yaml file?
Another thing, is to try clearing your browser cache or try another browser
Good points and answers below:
On first yes: \HASSIO\config\www
on second: I’ll try it as well without success
I’m stumped, and you get the same result with different pics?
How about using the customize option?
customize:
# Add an entry for each entity that you want to overwrite.
device_tracker: emilia
entity_picture: /local/emka1.jpg
I’ll add this like that: I belive it’s correct:
device_tracker.emilia:
entity_picture: /local/emka1.jpg
And like that:
device_tracker.emilia:
entity_picture: https://www.adress.com/photo.jpg
First dosn’t work, second works…What is going on there I don’t understand.
Yep - this is the problem. I had the same issue so I played with it based on your post.
acidmk, if you change the config as follows it works:
picture: https://your.duckdns.org:8123/local/emka1.png
This fixed it for me…basically you have to give it a URL that will work from anywhere. I’m assuming you’re using https and duckdns…
I tried all of these steps but failed, so i decided find a easier way of just pasting the URL of the image.
link: https://productforums.google.com/d/msg/photos/Vjn6jmFb0pk/58M375QeDAAJ
now the image appears.
JohnDoe:
hide_if_away: false
icon:
mac: xx:xx:xx:xx
name: JohnDoe
picture: yourgeneratedlink.jpg
track: true
Here is my working config on a pi3b+, hass.io 1.11 supervisor 133 HA 0.79.3:
Create a directory www in your config directory.
edit your known_devices.yaml file to look something like this:
homeassistant_richard:
hide_if_away: false
icon:
mac: 8C:79:67:C0:CC:61
name: Richard
picture: /local/crab.jpg
track: true
vendor: ZTE
(use your own mac, name, pic and stuff but note /local/ as the directory path)
No whitelist required, no permission changes were required (all HA needs is Read)
Hi Dixey,
Thank you for your reply, i did try the method suggested. But failed with a blank white image on the desired page.
Hi,
I had similar issue. After saving the photo image as .PNG it worked. It seems it has problem somehow with JPG extensions…
image.jpg NOK
image.png OK
BR
Tomzi
Late reply here. But if someone still has this problem and Googles how to fix the picture with local images I fixed the problem using " " around the picture name for the local image.
So in Acidmk’s example.
When he used a url like below it works:
device_tracker.emilia:
entity_picture: https://www.adress.com/photo.jpg
However when he tried it as follows it doesn’t work with a local picture:
device_tracker.emilia:
entity_picture: /local/emka1.jpg
Putting " " around the /local/picture.jpg like this works:
device_tracker.emilia:
entity_picture: "/local/emka1.jpg"
Hope this helped someone.