Hi, I’m seeing the below error in the openhab log and the event doesn’t fire:
2015-11-02 15:59:01.112 [ERROR] [o.o.c.s.ScriptExecutionThread ] - Error during the execution of rule ‘Lights on at sunset for 2 hours when away’: org.eclipse.xtext.util.PolymorphicDispatcher$NoSuchMethodException: Couldn’t find method ''assignValue’’ for objects [JvmVoid: (eProxyURI: lighting.rules#xtextLink::0.2.1.2.0.0.1.0.2::0::/1), timer , org.openhab.model.script.internal.actions.TimerImpl@5f553a, org.eclipse.xtext.xbase.interpreter.impl.DefaultEvaluationContext@1c26c04, org.eclipse.xtext.util.CancelIndicator$1@236217]
The rule is:
rule “Lights on at sunset for 2 hours when away”
when
Item Sunset_Event received update ON
then
if (Auto_Away.state == ON) {
sendCommand(Light_AllGroundFloor, ON)
lightsAreOn = true
timer = createTimer(now.plusSeconds(7200)) [|
sendCommand(Light_AllGroundFloor, OFF)
lightsAreOn = false
]
}
end
Any ideas?
Thanks