Hello,
i have a Rule to change my heating temperature based on my presence respectively by setting a state manual.
I have a OH 1.8 System
import org.openhab.core.library.types.*
import org.openhab.model.script.actions.Timer
import org.openhab.core.types.*
import org.openhab.core.persistence.*
import org.openhab.model.script.actions.*
rule “Urlaub AN”
when
Item Urlaub changed from OFF to ON
then
sendCommand(Temp_Thermostat_modus_Manu, ON)
sendCommand(gThermostatSoll, 18)
sendCommand(gHeizungBadSoll, 15)
sendCommand(gHeizungGastSoll,15)
sendCommand(gHeizungKindSoll,15)
sendCommand(gHeizungSZSoll, 15)
if( Heimkino_Power.state==ON ) {
sendCommand(Heimkino_Power, OFF)
}
end
rule “Urlaub AUS”
when
Item Urlaub changed from ON to OFF
then
if(( owmTemperatur.state) < 20 ) {
sendCommand(gThermostatSoll, 18)
sendCommand(Temp_Thermostat_modus_Auto, ON)
} else {
sendCommand(gThermostatSoll, 22)
sendCommand(Temp_Thermostat_modus_Auto, ON)
}
sendCommand(gHeizungBadSoll, 15)
sendCommand(gHeizungGastSoll, 15)
sendCommand(gHeizungKindSoll, 15)
sendCommand(gHeizungSZSoll, 15)
if( Heimkino_Power.state==OFF ) {
sendCommand(Heimkino_Power, ON)
}
end
It works fine, but i want to update the state of Temp_Thermostat_modus_Auto and Manu … my switch said Manu and Auto together, the temperature was set, but the Modus always on Automatik or Manuel.
How can i set the Mode and update the status to Automatic and the Switch to ON and the Switch for Manu is set to off?
I have a Homematic CCU2
L0veb0x