OH2.2 Rule gets triggered when haus.items is refreshed

Windows 10 64 bit
OH 2.2

Dear all

I have a pretty bothering problem: when my haus.items file is refreshed (e.g. due to renaming an item) while OH is running the following rule gets triggered. How can I stop this behavior?

rule "Blinklicht - ON"
when
	Item Licht_EG_Kueche_CtE received command ON
	
then
    if(timer !== null) 	{
        timer.cancel
		timer = null
    	}
timer = createTimer(now.plusSeconds(3), [|
        Licht_DG_Zi3_D.sendCommand(if(Licht_DG_Zi3_D.state == ON) OFF else ON)
		Licht_EG_Essen_17hueStripe03D.sendCommand(if(Licht_EG_Essen_17hueStripe03D.state == 100) 0 else 100)
        timer.reschedule(now.plusSeconds(3))
    ]
)

end
//--------------------------------------------------------------------

rule "Blinklicht - OFF"
when
    Item Licht_EG_Kueche_CtE received command OFF
then
    if(timer !== null) {
        timer.cancel
        Licht_DG_Zi3_D.sendCommand(OFF)
		Licht_EG_Essen_17hueStripe03D.sendCommand(0)
        timer = null
    }
end

How can I stop this odd behavior?

Thanks & regards
John

Is there a restoreOnStartup persistence for this item?
Try

Item Licht_EG_Kueche_CtE changed to ON

or

Item Licht_EG_Kueche_CtE changed from OFF to ON

There is/was no persistence for this item.

It seems to be that this solved my problem :slight_smile:

Thanks a lot @hr3