I have a binding that defines a channel within the thing-types.xml:
...
<channel-type id="errorCode">
<item-type>String</item-type>
<label>Error code</label>
<state readOnly="true">
<options>
<option value="0">Foo 1</option>
<option value="1">Foo 2</option>
...
</options>
</state>
</channel-type>
...
If I understood correctly, one should expose mappings of i.e. ordinary values to textual representations this way so internationalization is supported out-of-the-box and strings as “Foo 1” are not hidden within the binding code, which makes sense.
The problem is that if I try to add channel to the .items
String errorCode "Error code [%s]" {channel="somebinding:errorCode"}
and sitemap
Text item=errorCode
I can only see 0 instead of “Foo 1”. I also observed similar issue here. So the question is - am I doing something wrong and should fix this within the binding or is there an issue somewhere else and should leave the binding as is?