Showing dynamic icon

I need a litle help :slight_smile:

From an xml i extract a letter that can change, for example, r. and made it a item.
How can I get the corresponding icon from the icons/classic/r.png into the template in Habpanel.

In a another post i found
img src="/icon/climacon?iconset=climacons&format=svg&state={{itemValue(‘Icoon_1’)}}"> </img

But i cant make it work, any Any suggestions?

Regard

Bert

Worth a look here

In your item

String myXMLitem <someicon> ....

In icons/classic have
someicon.png
someicon-r.png

You must have the default icon (without a -suffix)