Hi,
> It is possible to show different icons subject to the state of an item (see lock-x.png for example). But the state must match exactly.
There is one exception to this rule: For Items that are based on a PercentType (e.g. Dimmer or Rollershutter). There, openHAB searches for an icon "rollershutter-<state>.png" and stops only when it finds one (or ends at 0). Example: If the current state is 74, it will check for "rollershutter-74.png", cannot find it, tries "rollershutter-73.png", cannot find it and so on until it finds "rollershutter-60.png" and uses it. That's why you can get a nicely animated rollershutter icon while it is moving. Same for dimmers - it can always display a suitable icon for every percent value.
All this does not help you for Number items, though, sorry :-)
Regards,
Kai