Bug? Rule Links 2 Items

Hardware: RPI
OS: Openhabian
Java Runtime Environment: OpenJDK Runtime Environment (Zulu Embedded 8.25.0.76-linux-aarch32hf)
openHAB version: 2.5.0~M1-1

When I added the line to check the state of OfficeTempAutoRegulation in the rule below, the UI suddenly started behaving strange: Changing the setpoint updated the temperature value to the same value. Removing the line did not help, so I doubt this is related.

Checking Karaf with smarthome:items list | grep WTH2_3 shows that the State of the two items is as if should be, so the value doesn’t seem to be set on the item level.

Switch OfficeTempAutoRegulation

Number HmIP_WTH2_3_Temperature  (Temp_In_Min, Temp_In_Max, Temp_In_Avg)         { channel="homematic:HmIP-WTH-2:LEQ0245826:000A98A9A4D94D:1#ACTUAL_TEMPERATURE" }
Number HmIP_WTH2_3_SetPoint     (Temp_In_SetPoint_Min)                          { channel="homematic:HmIP-WTH-2:LEQ0245826:000A98A9A4D94D:1#SET_POINT_TEMPERATURE" }

Switch  item=HmIP_PSM_1_State           label="Electic Heater"  icon="radiato$"

rule "Electric Heater Regulation"
when
        Time cron "0 0/1 * 1/1 * ? *" or
        Item HmIP_WTH2_3_Temperature changed or
        Item HmIP_WTH2_3_SetPoint received command
then
        if (OfficeTempAutoRegulation.state == ON) {
        if (HmIP_WTH2_3_Temperature.state < HmIP_WTH2_3_SetPoint.state) {
                HmIP_PSM_1_State.sendCommand("ON")
        } else  {
                HmIP_PSM_1_State.sendCommand("OFF")
        }
        }
end

This is the related part of the sitemap:

  Frame label="Climate" {
    Switch   item=OfficeTempAutoRegulation label="Temperature Regulation"
    Text     item=HmIP_WTH2_3_Temperature label="Temperature [%.1f °C]" icon="temp
erature" valuecolor=[<20="blue",<=25="orange",>25="red"]
    Setpoint item=HmIP_WTH2_3_SetPoint label="Set Point [%.1f °C]" icon="temperat$re" minValue=17.0 maxValue=26.0 step=0.5
valuecolor=[<40="red",<=60="green",>60="orange"]
    Switch  item=HmIP_PSM_1_State           label="Electic Heater"  icon="radiato$"
  }

What does the events.log tell you is happening to Item values at the time? If you think it’s a display issue, have yu tried a different UI?

I checked the OpenHAB app for Android and it shows the same behavior. In addition it even changes the label of the sitemap item from “Temperature” to “Setpoint”.

This is what happens in the logs changing the setpoint. It looks normal to me.

2019-03-16 13:20:12.515 [ome.event.ItemCommandEvent] - Item 'HmIP_WTH2_3_SetPoint' received command 19
2019-03-16 13:20:12.530 [nt.ItemStatePredictedEvent] - HmIP_WTH2_3_SetPoint predicted to become 19
2019-03-16 13:20:12.560 [vent.ItemStateChangedEvent] - HmIP_WTH2_3_SetPoint changed from 18.50 to 19
2019-03-16 13:20:12.568 [GroupItemStateChangedEvent] - Temp_In_SetPoint_Min changed from 18.50 to 19 through HmIP_WTH2_3_SetPoint

It takes a few moments before the temperature value goes back to normal, but it always does.