RULE problem - 'state' is not a member of 'null'

hello

i got this error message with my *.rule file.

[ERROR] [untime.internal.engine.RuleEngineImpl] - Rule 'Alles AUS / Reset button': 'state' is not a member of 'null';
rule "Alles AUS / Reset button"
	when
		Item all received update
	then
		if (all.state == ON){
			Wohnzimmer_Licht.sendCommand(OFF)
			createTimer(now.plusMillis(2), [ | 
			all.postUpdate(OFF) ] )
		}
		if (all.state == OFF){
			Wohnzimmer_Licht.sendCommand(ON)
		}	
end

please show item file for item ā€˜allā€™ or is it defined in Paper UI?

here is my *.item

Switch all "Alles Ausschalten" 

edit: it was a cache problem. After i change the name all to alles everything works fine

1 Like

I think all is a DSL keyword, like say as

1 Like

What is the purpose of this rule? If all updates to ON it will turn off a light, but after 2 milliseconds itā€™ll turn it on (all updates to OFF).

it was a try to change only the switch position without changing the state, but it didnā€™t work.
it solve it in a different way