Custom icons not working

I’m having some trouble displaying custom icons in home assistant:

  1. Lots of the custom mdi icons are not displayed (stays blanc)
  2. When u use a custom icon hosted in the www dir, it also stays blanc.
  3. I tried *.svg , *.jpg and *.png files; none of them work
  4. I can access the icon through : https://MY_IP:8123/local/gft*png, but in home assistant is stays blanc

image

  1. I us the config
sensor.afvalwijzer_gft:
  friendly_name: GFT
  icon: /local/gft.png

Full path to the file also does not work.

What am i doing wrong?

For images you have to use entity_picture instead. So your code would be:

sensor.afvalwijzer_gft:
  friendly_name: GFT
  entity_picture: /local/gft.png

thanks, that worked!

image

In my case it does not work, in customize.yaml I have:

‘sensor.solaredge_current_power:’
‘entity_picture: /local/solaredge.png’

The png file is in the www folder.
What is wrong?