Home Assistant Community

Picture in badge

#1

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

0 Likes

#2

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

image

0 Likes

#3

What is the solution?!

0 Likes

#4

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

0 Likes

#5

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

0 Likes

#6

Let me know if it works

0 Likes