Hi, thanks for your answer!
i think, i should have to be a little more detailed: In Normal mode, i want to use only the storaged heat in oven. The switch Thermostat powers only the internal fan in oven.
The Away Mode (Frostschutz) should only use the additional heating element in oven. I want to use this only in the night when the energy is cheap without heating up the entire oven.
My main problem is, that i didn’t know how to realize this in a optimal way. This is what actually my sitemap looks like:
In the past days, i’ve added the temperature controlling to the rule:
rule "React on heating mode switch, send target temperatures"
when
Item Heating_Mode received update or
Item ThermostatTemp changed or
Item TemperaturNormal changed or
Item TemperaturFrostschutz changed
then
var CurrentHour = now.getHourOfDay
logInfo("heating_mode.rules", "Heating Mode: " + Heating_Mode.state)
switch Heating_Mode.state {
case "FROSTSCHUTZ": {
if(CurrentHour > 23 && CurrentHour < 5) {
Automatik.sendCommand(ON)
ZusatzheizungAutomatik.sendCommand(ON)
if(ThermostatTemp.state<TemperaturFrostschutz.state) {
Thermostat.sendCommand(ON)
Zusatzheizung.sendCommand(ON)
logInfo("heating_mode.rules", "Frostschutz ein")
}
else {
Thermostat.sendCommand(OFF)
Zusatzheizung.sendCommand(OFF)
}
}
else {
Automatik.sendCommand(OFF)
ZusatzheizungAutomatik.sendCommand(OFF)
}
}
case "NORMAL": {
if(CurrentHour > 5 && CurrentHour < 22) {
Automatik.sendCommand(ON)
logInfo("heating_mode.rules", "Heizung ein")
if(ThermostatTemp.state<TemperaturNormal.state) {
Thermostat.sendCommand(ON)
logInfo("heating_mode.rules", "Frostschutz ein")
}
else {
Thermostat.sendCommand(OFF)
}
}
else {
Automatik.sendCommand(OFF)
ZusatzheizungAutomatik.sendCommand(OFF)
}
}
default : { logError("heating_mode.rules", "Heating Mode unknown: " + Heating_Mode.state) }
}
end
For the moment yes.
As i post this, the rule was in a early state and not completed yet. What i want in Normal mode is, only to switch the fan off and on depending on the current temperature and time.
I think reducing is for ne moment no necessary. I also think, that this would make much sense, because the ofen is heated up only in morning hours. If i didn’t switch of the fan automatic from 22 to 5, this could lead in a useless running of the fan, because there is no more heat in oven storaged.
Thanks a lot for your help, i know, my coding is not very well…
BW Maximilian
PS: Merry christmas to all