OpenHab 3.1.0 with Azul Zulu 11
I have created an item for the valve of my heating through the UI. I assigned the icon “heating” to it:
org.openhab.core.items.Item.json:
"Heating_Valve": {
"class": "org.openhab.core.items.ManagedItemProvider$PersistedItem",
"value": {
"groupNames": [
"Heating"
],
"itemType": "Number:Dimensionless",
"tags": [
"Measurement"
],
"label": "Valve",
"category": "heating"
}
},
org.openhab.core.items.Metadata.json:
"stateDescription:Heating_Valve": {
"class": "org.openhab.core.items.Metadata",
"value": {
"key": {
"segments": [
"stateDescription",
"Heating_Valve"
],
"uid": "stateDescription:Heating_Valve"
},
"value": " ",
"configuration": {
"pattern": "%d %%",
"readOnly": true
}
}
},
Currently, the item shows a value of “0 %”. But the main UI is always loading the icon “heating”, which is not dynamic. I would expect that the UI loads “heating-0” (or “heating-30” for the value “30 %”), just as it did in OpenHab 2.5.
For reference, this item definition in OpenHab 2.5 is loading the correct dynamic icon:
Dimmer Heating_Valve "Valve [%d %%]" <heating> (Heating)
I already tried several modifications on the item in OpenHab 3: Changing to Number
or Dimmer
did not work. Removing the “State Description” did not work.