triggeringItemName fails with cron

I am running OH 3.1 on a RPI.
I do have a DSL rule:

rule "name"
 when   
    Time cron "0 0 * * * ?" or  // every hour
    Item Regner_alle received command ON
 then 
 var triggeredByHourly = 1
  if (triggeringItemName == "Regner_alle" ) { triggeredByHourly = 0}



end

When that rule is triggered by the item, triggeringItemName contains the name of the item.
When that rule is triggered by cron, triggeringItemName contains null.

Problem: once the rule has been triggered by the item, triggeringItemName contains the item name even though its getting triggered by cron afterwards.

Is this a bug ?

actually, I could be wrong, but I believe that is the way it works

It is not intended to be the way it works

1 Like

Thanks.

OH3.1 is an outdated version :slight_smile: but the fix was made after OH3.2 was released, so I guess you have to update to openHAB 3.3.0 Milestone 3.