mit dem Timer schalte ich nochmal zur Sicherheit.
Was hab ich denn falsch gemacht
Code: Alles auswählen
rule "Licht Sonnerunter an"
when
Item NightState received update ON
then
if ( Weihnachtsbeleuchtung.state == ON ){
Light4_Color. sendCommand ("227,30,100")
Light4_Dimmer. sendCommand ("50")
createTimer(now.plusSeconds(300)) [|sendCommand(Light4_Dimmer ,50)]
Light6_Color. sendCommand ("227,30,100")
Light6_Dimmer. sendCommand ("50")
createTimer(now.plusSeconds(300)) [|sendCommand(Light4_Dimmer ,50)]
}
else
Light4_Color. sendCommand ("227,30,100")
createTimer(now.plusSeconds(300)) [|sendCommand(Light4_Toggle ,ON)]
Light6_Color. sendCommand ("227,30,100")
createTimer(now.plusSeconds(300)) [|sendCommand(Light6_Toggle ,ON)]
end
rule "Licht 12 Uhr aus"
when
Time cron "0 0 0 * * ?"
then
Light4_Toggle.sendCommand ("OFF")
Light6_Toggle.sendCommand ("OFF")
logInfo("rule","Licht 12 Uhr aus")
end