Hello,
I have defined the following channel type:
<channel-type id="setpointTemperature">
<item-type>Number:Temperature</item-type>
<label>@text/channel-type.airzone.zone.setpointTemperature.label</label>
<category>Temperature</category>
<tags>
<tag>Setpoint</tag>
<tag>Temperature</tag>
</tags>
<state min="15" max="30" step="0.5" pattern="%.1f °C" readOnly="false"/>
</channel-type>
As you can see, the state
defines a step at which the setpoint temperature can be changed, which is conveniently taken into account in MainUI.
However, in the case of my binding, the API gives a double value that indicates the acceptable temperature steps. In my case its value is 0.5
but the documentation says the 1
value also exists.
Is there a way to modify the channel type state “step” value to match the value from the API?
I know I could have two different types and use that to dynamically create the setpoint temperature channel, but it feels quite cumbersome, especially if a future release of the device allows for any other step value.
Thanks for your help.