I have seen a few posts about this but mine is still not working.
I want to be able to see the picture of the person if I open the MAP on the side bar UI.
I have added a picture under person and I can see the picture. The person is linked to a device tracker. But when I click on the MAP on side bar only the initials show. I tried adding a picture in custom.yaml but then the initials go away but still no picture.
added the sensor and entity_picture under the customize.yaml and the copied the files to the www folder and pointed it there like many threads suggested but no luck.
not sure if this is by designed but only when I use geocoded location i can see the person on the mam (still with no picture)
but under the person config under settings I can only choose device tracker.
customize.yaml code (tried this with the person.name as well but nothing)
sensor.s22_ultra_geocoded_location:
entity_picture: /local/name of picture
configuration.yaml code
homeassistant:
customize: !include customize.yaml
SNoof85
(Sébastien)
May 16, 2022, 9:14pm
2
On the map the entities you will see are device_tracker not sensor.
I guess the name would be device_tracker.s22_ultra on your setup. Customize the entity_picture on that one should do the trick
Edit : oh ! Just checked on mine and I see also a sensor with geocoded location on mine. Never seen that before !
Let me try to apply a pic on it.
Edit2 : works good with the same setup than you !
So maybe the thing is that your local folder is not working ? The URL is /local/picture.jpg but the folder must be named www is that your case ?
i have the folder www and then the picture is inside of it yes in the root of www with no other folders.
SNoof85
(Sébastien)
May 18, 2022, 5:03pm
4
Did you tried to access the picture file with a browser ?
yes if I use the folder location in a browser
\ \ âIP of HAâ\config\www"name of picture"
I can see the picture.
if I use /local/âname of pictureâ
I cant see it.
SNoof85
(Sébastien)
May 19, 2022, 7:23am
6
OK, so this is maybe the problem, you should be able to view your file with https://your-ha-address/local/file.ext
What are you using for accessing your frontend ? https ? External access ? Any reverse proxy ? Nabu Casa ?
When you say you canât see it in your browser, what is the error ?
I get the message below. I am using Duckdns for external and local ip works as well
using NGINX Home Assistant SSL proxy with Duck DNS
SNoof85
(Sébastien)
May 19, 2022, 7:36am
8
OK, I donât know how NGINX proxy addon is configured by default or how you configured it but looks like this is the problem
Iâll check some docs if I can find anythingâŠ
Maybe in the mean time you could check the logs if anything comes up in addon
Your www folder is in config folder right ? And you access via nginx/ssl works fine on HA frontend ? So maybe not nginx in the endâŠ
Try also a look at chrome debug tool (F12) to check errors, maybe something more detailled than err_http2_protocol_error
Hi in the NGINX log i get the below message I have no idea what that IP (172.30.32.1:8123 is as it is not part of my network.
2022/05/19 10:56:55 [error] 253#253: *14088 connect() failed (111: Connection refused) while connecting to upstream, client: (Router IP) , server: (Duckdns address removed) , request: âGET /api/websocket HTTP/1.1â, upstream: âhttp://172.30.32.1:8123/api/websocket â, host: â(duckdns url) â
Edit. Manged to fix the error just added a rule to my router.
the chrome debug shows that the site is unreacable when using the https://HA ip/local/nikki.jpg
1 Like
SNoof85
(Sébastien)
May 19, 2022, 10:15am
10
This is an IP in Docker internal network
Glad you fixed it !
anything else I can try and get the Picture to show? That is still not working
SNoof85
(Sébastien)
May 19, 2022, 7:05pm
12
Check Chrome debug tool when access the map. Browser cache might be an issue too.
in chrome debug i see: the chrome debug shows that the site is unreacable when using the https://HA ip/local/nikki.jpg
dont know exactly where to look.
SNoof85
(Sébastien)
May 20, 2022, 7:23am
14
Can you check your network settings (internal/external URL)
not sure what you need ? where do I check it? on pc in chrome in HA.
SNoof85
(Sébastien)
May 20, 2022, 1:08pm
16
Check here if your external address is correct. Better use âautomaticâ for internal (local network)
its almost correct just has I no longer use the port 8123 so if I take it away then yes my external URL works. I had a look at my network setting in HA and it also has the 8123 on it but I cannot change it. where do I change it?
Edit nvm I changed it. dumb moment.
so external address works. still no picture though when I use the link with URL or local IP
https://home assistant address/local/nikki.jpg
It looks like the customize.yaml does not do the job, however adding the image directly to the sensor works, hope it helps.
entity_picture: /local/my_image.jpg
And as mentioned before the actual image location in home assistant should be located in
/config/www/my_image.jpg
1 Like
pOpY
January 27, 2024, 10:59am
19
thx, search for such solution!
Does it survive restarts/updates of HA core?
yes its possible to get the respons and verify the data
1 Like