Change all Sitemap Icons

Hi, could you share the code?

I just tried to do what you described and it’s working for me.
For the test I created 5 icons, the first one i saved as two files- testvol.png and testvol-0.png:

in the .item file I added:

Dimmer TestDimmer "Test Dimmer Item" <testvol>

in the .sitemap file I added:

Slider item=TestDimmer label="Test Dimmer"

and it’s working as expected, changing the icon according to item’s value.
I checked something similar with a rollershutter item.

One thing that comes to mind from previous experience- if you happened to change the icon but kept same name, I think you need to refresh the app’s cache.
There’s a “Clear Image Cache” option in the app’s settings.
Or the more “uglier” way, change the names of the icon and check again.