Does the state(in this case the temperature" have anything to do with the call?
The query string goes out with the following parameters:
state=73.3
format=svg
Does it look for a “state” as well per icon?
If so, how does one get around a “temperature” entry which could have hundreds of states?
Do you have icons in the right folder? You said you had your icons in conf/icons/basic, but icons should go to conf/icons/classic. The folder classic should not to be confused with Classic UI. It is folder for Classic icon set, not Classic UI, so, if you are using Basic UI, you should not put icons in conf/icons/basic, but conf/icons/classic too. And few remarks:
Don’t use uppercase letters for icon names
Don’t use blank/space in icon names
Don’t use hyphen in the name - only use it if you have dynamic icons (i.e. soundlevel-10, soundlevel-20) - you can use underscore instead
I am running latest snapshot openHAB 2.0 and classic UI and have it configured for .png icons. All icons that are NOT part of openHAB 2.0 work fine, but ones that have the same name as 2.0 don’t work such as door-open and door-close. I would think that conf/icons/classic/door-close.png should have preference over any other 2.0 door-close icon.
The filename has to be all lowercase. That was the problem I had. I was using myBattery.png aus filename. It has to be mybattery.png to work. Thank you for the solution.
I can’t figure out how to make dynamic icons work correctly when the text value for the item has a space in it.
Specifically, I’m using dynamic icons for the “Condition” field returned by the weather binding.
I’ve specified the icon as condition and in icons/classic I have a “condition.svg” and a bunch of others for specific values. “condition-clear.svg” or “condition-overcast.svg” will work and get correctly used for “Clear” or “Overcast” condition values, but “condition-partly_cloudy.svg” will not get used for “Partly Cloudy”. In that case, I just get the default “condition.svg” icon.
From what I’d read, I thought a space in the string would get mapped to an underscore in the file name but that doesn’t work.
I was able to get mine working (at least for browser clients).
You need to use an actual space in the icon name for text values with spaces. For example, “condition-mostly cloudy.svg” will work correctly.
But it should, just as documented in Items | openHAB.
Better try to figure out what is wrong about that (as it works for others) instead of doing ugly workarounds that will prevent you from ever doing a proper update again…
You’ve said that you tried adding icons to /conf/icons, but, if I’m not mistaken (and that’s the way I’m using custom icons), icons should go to /conf/icons/classic folder. And double check if icon name has uppercase letters or special characters. If it has hyphen in the filename and it’s not a dynamic icon, it will not work.
I dont know how you create a custom icon set. But if you want to use custom made icons, you´ll just do it the same way as if it was basicUI. But as far as I remember, it has to be SVG format only.