Image in static folder is not shown in oh-image

Hey there,

I use this code:

    - component: oh-image
      config:
        style:
          height: 25px
          left: 16px
          opacity: 0.7
          position: absolute
          top: 10px
        url: ='/static/icons/wzimmer.svg'

and the folder /opt/openhab/conf/icons looks like that:

dominic@smart:/opt/openhab/conf/icons$ ls -l
drwxr-xr-x 2 openhab openhab 4096 Mär 28 09:49 classic
-rw-r--r-- 1 openhab openhab 4139 Mär 28 09:50 wzimmer.svg

in the classic folder I put the wzimmer.svg too (just do not know which folder is right)

But the icon is not displayed:

Do you have a hint for me what I am doing wrong?

Cheers, Nic

Are you sure, that the icon is in the correct folder?
Hit F12 in your browser and point to the image - is the path correct?

I think you have placed the file in the wrong folder

It should be /etc/openhab/html/ what is available via /static/

1 Like

Thats it!

Thank you!