Background:
For dynamic icons, status of item must be matched with icon filename as “icon-[status]”. Otherwise, default icon is shown always. But, when openhab 2.3 update came, their was flexibility such that only initial part status of string item is used to determine icon type.
See example below to understand:
String door_status “Door [%s]” {mqtt="…"}
This works perfectly if input is either “OPEN” or “CLOSED”
When i updated my arduino code to attach timestamp at end eg “CLOSED at 2:30 pm”, dynamic icon stopped working.
But after updating to openhab 2.3, this problem was solved completely !!
Dynamic icon worked perfectly with timestamp also.
But as i updated to OoenHab 2.4, this limitation again arosed. I don’t know why this flexibility is reverted. Anyone knowing about this, please tell.
I know the alternative (less perfect), using visibility attribute in sitemap with duplicate enteries of same item with different icons.