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