How to set step size of Setpoint created in UI?

  • Platform information:
    • RPI 4 / 8GB
    • openHABian
    • openHAB version: 4.0.4-2

I have heating actuators with a set-value resolution of 0.5°C and already added some code in the command transformation that maps arbitrary values to 0.5 deg steps (caters for all kind of commands and works pretty well).

I created an Item for the setpoint in the graphical UI:

label: Heizung Duschbad Fußboden Sollwert
type: Number:Temperature
category: heating
  - Heizung_Duschbad_Fb
groupType: None
function: null
  - Temperature
  - Setpoint

this creates a nice graphical input for manual operation. The only issue: it has a resolution / step size of 1.0 °C.
Even worse, if I set the set value to a 0.5-value, it rounds it up. So if I command 18.5°C, it will turn this to 19 °C and even command this rounded value several times, I can see this in the log.

How can I set the stepsize for this Setpoint in the UI?

Thanks in advance! :slight_smile:

I believe there is already a PR to fix these issues. It is just waiting for final review.

1 Like