Hallo Leute,
ich habe irgendwie einen Denkfehler mit meiner Ausführung.
angedacht ist im Regelfall, dass die Rollos früh mit einer Zeitverzögerung nach dem die Nacht auf off geht. Das funktioniert auch ohne probleme. Nun wollte ich da es ja erst später hell wird die Rollos hochfahren sobald die Nacht vorbei ist. Aber die rule wird nicht ausgeführt.
Jedoch wird nicht einmal der Time cron ausgeführt.
hier die rule dazu:
ich habe irgendwie einen Denkfehler mit meiner Ausführung.
angedacht ist im Regelfall, dass die Rollos früh mit einer Zeitverzögerung nach dem die Nacht auf off geht. Das funktioniert auch ohne probleme. Nun wollte ich da es ja erst später hell wird die Rollos hochfahren sobald die Nacht vorbei ist. Aber die rule wird nicht ausgeführt.
Jedoch wird nicht einmal der Time cron ausgeführt.
hier die rule dazu:
Code:
import org.openhab.model.script.actions.Timer
var Timer timer = null
rule "Rollos Morgens"
when
Time cron "0 0 6 * * ?"
then RS_timer_switch.sendCommand(ON)
end
rule "Rollos Morgens aus"
when Time cron "0 15 9 * * ?"
then RS_timer_switch.sendCommand(OFF)
end
rule "Rollos halb Runter"
when
Item Nacht changed
then
if (Nacht.state == ON) {
LR_switch.sendCommand(30)
RS_Buero_switch.sendCommand(30)
RS_Kizi_switch.sendCommand(30)
RS_Kueche_switch.sendCommand(30)
}
end
rule "Rollos Runter"
when
Item Nacht changed to ON
then
timer = createTimer(now.plusMinutes(60)) [|
sendCommand(LR_switch, 50)
sendCommand(RS_Kueche_switch, 50)
timer = null
]
end
rule "Rollos Hoch"
when
Item Dusk changed to OFF
then
if (Nacht.state == OFF && RS_timer == ON)
sendCommand(LR_switch, 0)
sendCommand(RS_Buero_switch, 0)
sendCommand(RS_Kizi_switch, 0)
sendCommand(RS_Kueche_switch, 0)
else {
if (Nacht.state == OFF && RS_timer == OFF)
timer = createTimer(now.plusMinutes(30)) [|
sendCommand(LR_switch, 0)
sendCommand(RS_Buero_switch, 0)
sendCommand(RS_Kizi_switch, 0)
sendCommand(RS_Kueche_switch, 0)
timer = null
]
}
end


Kommentar