Problem with setpoint in BasicUi Sitemap

I’m running openhab 2.4, Milestone 4. I have a problem with a simple sitemap:

Number:Temperature temp_wohnzimmer_soll “Temperatur Wohnzimmer Heizen [%.1f °C]” (gHeizung) {channel=“zwave:device:80bee127:node6:thermostat_setpoint_heating”}

Setpoint item=temp_wohnzimmer_soll minValue=8 maxValue=28 step=1

Currently it is set to 20° C. Then I click up (or down) in der Basic UI and this happens in the log:
2018-11-01 15:55:05.695 [ome.event.ItemCommandEvent] - Item ‘temp_wohnzimmer_soll’ received command 8 °C
2018-11-01 15:55:05.723 [nt.ItemStatePredictedEvent] - temp_wohnzimmer_soll predicted to become 8 °C
2018-11-01 15:55:05.735 [vent.ItemStateChangedEvent] - temp_wohnzimmer_soll changed from 2E+1 °C to 8 °C

It seems that for some reason, the value is saved as scientific notation an that the basic ui can’t handle this and goes to the lowest possible value.

Any idea? Is this a bug?

I’m currently thinking of a workaround that, wenn the setpoint is changed to 8° I change it per rule to 20°, but that is just a workaround, not a real solution

Which device are you using as thermostat?

Eurotronics Spirit zwave

I had the same problem yesterday with them.
You must attach °C or °F to the setpoint value.
For me this works in a rule:

rule "updateHeizungWohnzimmer"
    Item temp_wohnzimmer_soll changed
    val setPointValue = temp_wohnzimmer_soll.state
    temp_wohnzimmer_soll.sendCommand(setPointValue + "°C")

– Tolotos

As far as look at the documentation, the sitemaps looks like it doesn’t allow me to set °C or °F

The unit value was shown in my system too.
Have tried the rule?

Not yet, will try later, thanks.

Doesn’t help:
Cannot convert ‘8 °C°C’ to a command type which item ‘temp_wohnzimmer_soll’ accepts: [DecimalType, QuantityType, RefreshType].

Ok, thats mean the °C is already in the value. Did you set the mode of the thermostat e.g. to 1 for normal heating mode?

0 ==> Off (6°C Anti-Icing)
1 ==> Normal
11 ==> Energiesaving
15 ==> Boost
31 ==> Direct-valve-control

Yes. Everything works - except changing from 20° at the basic UI at some times. I have now implemented the following rule als workaround:

rule "Fix WohnSoll"
    Item temp_wohnzimmer_soll changed 
    if (temp_wohnzimmer_soll.state == 8|"°C"
	    && previousState == 2E+1|"°C") {

I have similar behaviour with the same device. I didn’t care that much about the basic UI issue though.
Where I have issues is in habpanel where the widget looks like this:

I know how to strip the unit but how can I convince openhab to not use 2E+1 but 20?