Hi all
In my new binding I wont to give the option to select string value between 0 to 180
What is the best channel type for that?
Oded
Hi all
In my new binding I wont to give the option to select string value between 0 to 180
What is the best channel type for that?
Oded
Does it really have to be a string ?
No
It could be a number
So you could use a number channel type, defining min and max values.
Is it possible to define values under channel-type?
Where I can find reference for the configuration files?
Here’s an example :
<channel-type id="humidity">
<item-type>Number:Dimensionless</item-type>
<label>Humidity</label>
<description>Current humidity</description>
<category>Humidity</category>
<state readOnly="true" min="0" max="100" pattern="%d %unit%"/>
</channel-type>
You’ll find XML description here, think also to dig in openhab-addons repo.