Hi all, is there any solution for light timer ? I have room light wich I can turn on and off, and I want to use setpoint item and some timer, I set time in minutes on setpoint item and after the time comes up the lights will shutdown, does anybody done that ? is there any option where I can set time manually ? and, is there any option to stop this timer to prevent shutting down all items that it has to ?
My simple rule is like this :
rule "Light Timer" when Item LightTimerSwitch received command ON then myTimer = createTimer(now.plusMinutes((LightTimer.state as DecimalType).intValue)) [| if(RelayShutter.state == ON) { sendCommand(AudioRelay,OFF) } if(LightShutter.state == ON) { sendCommand(Lights,OFF) } ] end