Hello all,
I've been playing around with OpenHAB 2 binding development and have a question regarding the <options> tags in the file. Now, I have not messed with OpenHAB 1, so this maybe has never worked, but when I set a some options like so:
<channel-type id="systemMode">
<item-type>String</item-type>
<label>System Mode</label>
<description>System mode: heat, cool, or off</description>
<state>
<options>
<option value="1">Heat</option>
<option value="2">Off</option>
<option value="3">Cool</option>
</options>
</state>
</channel-type>
When I go to the Paper UI, it will show the value number rather than the String describing that value. When I go to the classic UI, I see an icon that looks like a document and no value at all.
Also, I guess I was under the impression that with the <options> defined the String item would act more like a drop down box in the UI. Am I mistaken?
Additionally, what are the possible values for <item-type>?
Thanks
JD