Dear OH community,
I’ve tried now for several days to switch my HM thermostat to AUTO-MODE… but without any success. I can switch to Manual Mode and set a temperature. But switching to Auto Mode doesn’t change anything at the thermostat. Since I receive a notification (“pushInfoMsg”), I’m also sure that the rule is executed.
My code is referring to Integration of Homematic Thermostats with openHAB, where it is stated, that one only has to send something to the “AUTO_MODE” item. In contrast to this reference, my “AUTO_MODE” item is created on channel 2. Therefore, I’ve tested my code also on channels 1, 2, 3,… without any success.
Searching for code, I’ve seen some links where code was written in homematic, but I want to stay purely on openHAB with my code. Does anyone has a hint how I can do this?
Thank you in advance for your hints,
Doc MC
rule "All Thermostats Off"
when Item SwitchThermostatesOff received update
then
if (SwitchThermostatesOff.state == ON) {
ThermostatFewoWohnbereichManualMode.sendCommand (1)
ThermostatFewoWohnbereichSETTEMPERATURE.sendCommand (1) // auf 1°C stellen, also quasi ausschalten
SwitchThermostatesOff.postUpdate(OFF)
pushInfoMsg.postUpdate("Switch Thermostates Off")
}
end
and
rule "All Thermostats Auto Mode"
when Item SwitchThermostatesAutoMode received update
then
if (SwitchThermostatesAutoMode.state == ON) {
ThermostatFewoWohnbereichAutoMode.sendCommand (1)
SwitchThermostatesAutoMode.postUpdate(OFF)
pushInfoMsg.postUpdate("Switch Thermostate FewoWohnbereich to Auto-Mode")
}
end
With the item definitions
Number:Temperature ThermostatFewoWohnbereichSETTEMPERATURE "Set temperature" (gFewoWohnbereich, gThermostate, gHeatingSetTemperature) {channel="homematic:HM-TC-IT-WM-W-EU:LEQ1010731:OEQ2276212:2#SET_TEMPERATURE"}
Number:Dimensionless ThermostatFewoWohnbereichHUMIDITY "Humidity" (gFewoWohnbereich, gThermostate) {channel="homematic:HM-TC-IT-WM-W-EU:LEQ1010731:OEQ2276212:1#HUMIDITY"}
String ThermostatFewoWohnbereichControlMode "Control mode" (gHeatingControlMode) {channel="homematic:HM-TC-IT-WM-W-EU:LEQ1010731:OEQ2276212:2#CONTROL_MODE"}
Number:Temperature ThermostatFewoWohnbereichManualMode "Manu mode" (gHeatingManualMode) {channel="homematic:HM-TC-IT-WM-W-EU:LEQ1010731:OEQ2276212:2#MANU_MODE"}
Switch ThermostatFewoWohnbereichLoweringMode "Lowering mode" {channel="homematic:HM-TC-IT-WM-W-EU:LEQ1010731:OEQ2276212:2#LOWERING_MODE"}
Switch ThermostatFewoWohnbereichComfortMode "Comfort mode" {channel="homematic:HM-TC-IT-WM-W-EU:LEQ1010731:OEQ2276212:2#COMFORT_MODE"}
Switch ThermostatFewoWohnbereichAutoMode "Auto mode" {channel="homematic:HM-TC-IT-WM-W-EU:LEQ1010731:OEQ2276212:2#AUTO_MODE"}