[solved] Couldn't invoke 'assignValueTo' for feature JvmVoid

Hello

can anyone help with this error message?

2018-01-01 22:50:00.026 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule 'Beleuchtung': An error occurred during the script execution: Couldn't invoke 'assignValueTo' for feature JvmVoid:  (eProxyURI: home.rules#|::0.2.0.2.0.1.2::0::/1)

this is my rule:

rule "Beleuchtung"
	when 
		Time cron "0 0/15 * * * ?"	
	then
		var Number hour = now.getHourOfDay

		if(hour >= 6 && hour < 22 && Sun_Elevation < 0 ) lightState = ON
		else lightState = OFF
	Sonoff_CH1.sendCommand(lightState)
end

i dont know whats the problem

regard

i try this

rule "Beleuchtung"
	when 
		Time cron "0 0/15 * * * ?"	
	then
		var Number hour = now.getHourOfDay

		if (hour >= 6 && hour < 22 && Sun_Elevation < 0) Sonoff_CH1.sendCommand(ON)
		else Sonoff_CH1.sendCommand(OFF)
	
end

now i get this error:

Error during the execution of rule 'Beleuchtung': Unknown variable or command '<'; line 7, column 33, length 17

WHY?

solved

run with (*.state missed)

if ((CurrentHour >=6 && CurrentHour <22) && Sun_Elevation.state <=0) Sonoff_CH1.sendCommand(ON)