In my binding I have channel-types with item-type string.
To show the state of an item I added the state/options/option tags to have a state channel.
<channel-type id="hotWaterOpMode">
<item-type>String</item-type>
<label>Operation mode</label>
<description>some description</description>
<category>Heating</category>
<state readOnly="false" pattern="%s">
<options>
<option value="0">Automatix</option>
<option value="1">Party</option>
<option value="2">2nd heat gen.</option>
<option value="3">Holiday</option>
<option value="4">Off</option>
</options>
</state>
</channel-type>
With that channel one should also be able to set the state in the UI. So far this works very well. But I’m not able to define the tag in that way, that the link creation automatically creates a proper state item. Instead it shows a date (with value 0).
Clicking on the item opens the correct input menu though.
The item suffixed with _DEFAULT is simply created by “Add Link to Item” → “Create a new Item” → “Link”
The “correct” item with also setting the Type to Number and Semantic Class to Status.
Is there anything I can change to “fix” the link creation? What am I missing? I tried adding state/commands/command but to no avail…
Already checked on What do the channel-type/state/options/option actually do?
I’d appreciate any hint or advise!