Rule does not fire anymore

Hi guys,

i have a Problem with a rule.
It doesn´t fire anymore, and a don´t know why.

It´s quite smiple, but i am not able to get it work.

Here is my Rule:

rule "Alle Rollo rauf" 				
when
	Item Rollo_gesamt changed to 0
	
then
		
		Rollo_11.sendCommand(UP)
		Thread::sleep(2000)
		Rollo_12.sendCommand(UP)
		Thread::sleep(2000)
		Rollo_1.sendCommand(UP)
		Thread::sleep(2000)
		Rollo_2.sendCommand(UP)
		Thread::sleep(2000)
		Rollo_3.sendCommand(UP)
		Thread::sleep(2000)
		Rollo_4.sendCommand(UP)
		Thread::sleep(2000)
		Rollo_5.sendCommand(UP)
		Thread::sleep(2000)
		Rollo_6.sendCommand(UP)
		Thread::sleep(2000)
		Rollo_7.sendCommand(UP)
		Thread::sleep(2000)
		Rollo_8.sendCommand(UP)
		Thread::sleep(2000)
		Rollo_9.sendCommand(UP)
		Thread::sleep(2000)
		Rollo_10.sendCommand(UP)
		Rollo_Dummy_1.sendCommand(OFF)							  Rollo_Dummy_2.sendCommand(OFF)
		Rollo_Dummy_3.sendCommand(OFF)
		Rollo_Dummy_4.sendCommand(OFF)
		Rollo_Dummy_5.sendCommand(OFF)
		Rollo_Dummy_6.sendCommand(OFF)
		Rollo_Dummy_7.sendCommand(OFF)
		Rollo_Dummy_8.sendCommand(OFF)
		Rollo_Dummy_9.sendCommand(OFF)
		Rollo_Dummy_10.sendCommand(OFF)
		Rollo_Dummy_11.sendCommand(OFF)
		Rollo_Dummy_12.sendCommand(OFF)
		Szene_7_PM_SZ.sendCommand(7)
		Szene_9_PM_Noel.sendCommand(9)
		Szene_11_PM_Lia.sendCommand(11)
end

My Item changed to 0 but nothing happens:

2018-09-21 08:23:41.627 [ome.event.ItemCommandEvent] - Item 'Rollo_gesamt' received command 0

What could that be?

I am running on OH 2.3

The opposite rule works great:

rule "Alle Rollo runter"
when
	Item Rollo_gesamt changed to 100
then
		sendCommand(Rollo_11,DOWN)
		Thread::sleep(2000)
		sendCommand(Rollo_12,DOWN)
		Thread::sleep(2000)
		sendCommand(Rollo_1,DOWN)
		Thread::sleep(2000)
		sendCommand(Rollo_2,DOWN)
		Thread::sleep(2000)
		sendCommand(Rollo_3,DOWN)
		Thread::sleep(2000)
		sendCommand(Rollo_4,DOWN)
		Thread::sleep(2000)
		sendCommand(Rollo_5,DOWN)
		Thread::sleep(2000)
		sendCommand(Rollo_6,DOWN)
		Thread::sleep(2000)
		sendCommand(Rollo_7,DOWN)
		Thread::sleep(2000)
		sendCommand(Rollo_8,DOWN)
		Thread::sleep(2000)
		sendCommand(Rollo_9,DOWN)
		Thread::sleep(2000)
		sendCommand(Rollo_10,DOWN)
end

best regards
Vaillan

I restart the Service, but it also didn`t work.

After i set the Rollo_gesamt Value to 100, the rule fires now, if i set the vaule to 0.

It seems that the Item Status value was broken.

But i thought that a Service restart should reset all values also. :thinking:

It is working now.

But nevertheless i should rework my rules.

Thanks for help
vaillan

Please keep in mind, that there is a difference between the triggers

changed and received command

changed will trigger if the state of the item is changing, or, when using changed to 0, it will trigger when the state changed from a state other than 0 to 0

received command will trigger, if the item received a command, regardless, if the state is changed or not. received command will also include the commands UP/DOWN/STOP for a rollershutter item, while the state will never change to one of those commands.