Picture in badge

How can I get a picture in a badge (for example for device tracking)

image

I have changed the customisation:

image

point to martin.jpg (which is located in www folder)

The icon remains empty now

image

I think I found a solution, it just took a while :wink:

image

What is the solution?!

I have added <nameofbadgepicture>.jpg to this folder in hassio:

image

Per entry in /config/known_devices.yaml specify the picture as below:

iphone:
      hide_if_away: true
      icon:
      mac: 40:41:42:43:57:E8
      name: iPhone A
      picture: /local/<nameofbadgepicture>.jpg
      track: true

This can also be a customization.

Hopefully this helps

1 Like

Thanks! I’ll give it a try - have tried previously with no success

Let me know if it works

Thanks man
Hassio is so difficult (

1 Like

Sorry guys, i need your help in these case. I try to add a Badge Image too. But if i add my iPhone in “known_devices.yaml”, the badge never will change the status from “Away”. The original source type is “router”. But if i add the following line in the “known_devices.yaml”, it will not work.

iphone_11_uwe:
    hide_if_away: true
    icon:
    mac: 9a:xx:xx:xx:xx:31
    name: Uwe
    picture: /local/People/UweTest.jpg
    track: true

UPDATE:
Got it! Paste in the “customize.yaml” the following two lines:

device_tracker.iphone_11_uwe:
  entity_picture: /local/People/UweTest.jpg

Why? What is in this case the different between “known_devices.yaml” and “customize.yaml”?