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$"
}