Hi there again.
I got a rule that i dont get working, anoyone got a good idea?
var Timer _timer_005_A = null
rule "Test Down 2"
when
Item Jalousie5 changed
or
Item Licht_Sensor_Tuer changed
then
if ((Jalousie5.state >= 0)) {
if ((Licht_Sensor_Tuer.state < 5)) {
if (_timer_005_A == null) {
_timer_005_A = createTimer(now.plusSeconds(1)
) [|
_timer_005_A.cancel()
_timer_005_A = null
sendCommand(Jalousie5, OFF)
]
}
}
else if(_timer_005_A != null) {
_timer_005_A.cancel()
_timer_005_A = null
}
}
end
All i get into my log is:
22:18:25.554 ERROR o.o.c.s.ScriptExecutionThread[
:50]- Error during the execution of rule 'Test Down': Cannot assign a value in null context.
I also swapped all the "Null" with "0" but didnt help either
The rule should just check if its dark outside and if the window shutter isnt down already should move it down. Currently the timer is 1 second, should be longer if the rule would be working for sure...
Thank you
Bye