OpenHab 2 - Custom Dynamic icon does not work

Hi,
My custom dynamic icon does not work in Openhab 2.

Here is the item:

Contact ANTIFURTO_SIRENA "Stato Sirena [MAP(SS_ContactT13_OnOff.map):%s]" <sirena> {souliss="T13:0:4", 
autoupdate="true"}

I copied 3 icon in /etc/openhab2/icons/classic:
sirena.png
sirena-open.png
sirena-closed.png

But icon is not shown on classic UI.

Any help would be appreciated

Marco

Have you tried with .svg files?

I have png file, could be enought to rename the file or I have to convert?

Marco

Afaik svg is the standard format for both ClassicUI and BasicUI. If you want to use png, you have to define this for both.

Or use svg as Paul suggested. And no, rename is not enough.

Hi,
renaming png to svg, custom dynamic icons are not working, and static custom icons are not shown anymore.

Marco

You can specify to use png files in PaperUI under Configuration > Services.

I don’t think you can just rename a png to an svg. They are completely different file formats.

By default both ClassicUI and BasicUI use svg icons.

Hi,
I understodd my error. OpenHab 2 need also the icon without the status to work.
I fixed my issue.

I have another question, where I can find the standard icon list?

Marco

1 Like

Here:
http://docs.openhab.org/features/items.html#icons
and here:
http://docs.openhab.org/addons/iconsets/classic/readme.html

1 Like

Thanks a lot.

Marco

Hi @marcolino7,

but that’s what you did in the first post:
You’ve copied sirena without the state and sirena open and closed.

So, what exactly did you change from your first post to this solution?