Use of "Reset rule inmediate" meta item

Hi,

We have defined an asset called “Sensor de Suelo” (Soil Sensor) with several attributes, including the “SoilHum” (Humedad) attribute. This attribute has the following meta items:

This sensor reads the soil attributes every 60 minutes.

We have also created a rule based on this attribute, if the reading is below 30% it should send an email to a user called “administrador” (in the future we will make it so that with the activation of this rule we can turn on the irrigation system in the area).

The rule is effectively activated when the reading is below 30% but, if the next reading is below 30% again it is not activated. We know that this is by design but within the meta items we find “Rule reset immediate” which we understand is used when the rule state is required to be reset with the change of the value in the attribute. We added this meta item but the behavior remains the same.

Is our understanding of the use of the metaitem “Rule reset immediate” correct?
If so, why is it not working for us?
If not, what is its use? Is there a way to make the rule trigger with every reading below 30% even if they are continuous?

Thanks for the help

Hi!

The Java code says the following on RULE_RESET_IMMEDIATE;

/**
  * Used by when-then rules to indicate that the rule should be allowed to re-trigger immediately; 
  * this can be useful for attributes that contain event based data rather than state data.
  */

So to my understanding, the rule will trigger no matter if the value has changed or not.

But I’ll ping @Rich and @Igor here, as they know more on this topic than I do.