I have also the problem that icons with a state icon dosn’t work at all.
I’ve created several, both PNG and SVG - changed config in Paper UI several times, OH restarts - nothing. Currently configured as PNG.
Even for new items it is constantly not working. All other static icons work.
I have OH 2.2.0 snapshot, but did also not work in OH 2.0 stable before.
Item:
Number OperationMode "Szene" <scene>
Icon names are “scene-1.png”, “scene-2.png” etc. same with .svg (tried also without them in same directory)
Directory of all images conf/icons/classic (including the working ones)
Sitemap:
Switch item=OperationMode mappings=[1=Standard,2="At Home",3=Away] icon="scene"
Browser Inspection of the missing icon in Basic UI:
<img data-icon="scene" src="../icon/scene?state=1&format=png">
2nd example
Weather Condition:
Item:
String wuCondition "Wetter [%s]" <weatherug> {channel="weatherunderground:weather:acac2d79:forecastToday#conditions"}
Sitemap:
Text item=wuCondition
Item has state string = “Bedeckt” (german sorry).
Image located in same folder named “weatherug-Bedeckt.png”
Browser Inspection:
<img data-icon="weatherug" src="../icon/weatherug?state=Bedeckt&format=png">
Nothing is shown in Basic UI - just empty in both cases.
I tried even lowercase, with svg - nothing worked out.
Can anyone help how to solve this please …