Map card (or Map view) shows entities with “latitude” & “longitude” attributes.
Usually images are set to “person” & “device_tracker” entities via customization.
For “person” entities it may be done in UI for “people”.
For “device_tracker” - only via yaml customization (somewhere here described).
Thanks a lot … this is to show the picture of my car on the map, instead of a circle with letters in it.
I have successfully put the picture in the www folder. it is accessible via /local/bmw-picture.png
I am wondering where I need to “map” this picture with the entity, now …
On the entity config itself, I can not assign it :
… as you can see, it is only 4 lines … I think I need to put the link to the picture there somewhere ?
the link you mention is not helping lee that much
ok - I found out how to show my car’s picture on the Map card.
First, upload the picture (in png format from my side) in the HA, I did it using the “File editor” add-on I have installed. Using this, put the picture under “www”, so that is is accessible from “/local/”.
Then, edit the configuration.yaml adding this code :
homeassistant:
customize: !include customize.yaml
… This is to call a “customize.yaml” config file. As it was not existing yet, I have created it at the same level of “configuration.yaml” like this :
I just wanted to let you know I finally got the time to follow your guide, and it works perfectly. Thanks for the support! next step is to enter the tracking lines on the map…
I guess you need to play a bit with the original picture, try to center it, see what part of the picture HA takes to put in the circle … see here is my original picture :
It looks like it take the left part of the original picture
Maybe if you make the original picture the correct size directly, it will be better (I see in some topics they talk about a picture of 192x192 pixels) …
Hi, I follow quite a few of your suggestions, always helpful…and apologies for the direct approach
In this case, I progressed quite a bit and am using a svg but… the picture continues to have the circle and white background. Would you have any idea how to circumvent this? When I am using icons for the gas-stations (they are of type ‘zone’) then it is fine.
Hints/tips/tricks/rejections/etc… all welcome
EDIT: the buses are based on geo_json-created entries and then a customize_glob, should not matter but not sure.
Not sure if this is related to 2025.1 but I found the solution via trial and error …this using some of your pointers as I have only a little clue of what I am doing
Would you possibly explain me why this always needs the 'var() part? i.e. border: 0px or backgrond-color: none donot do a thing