Rule with shared variables, multiple trippers, incrementation of uninitialized variable - will it w
I am trying to set up "Are we at home right now?" rule that I want to work independent of order of events. The idea is that some actions should make the system draw the conclusion that we are at home. If none of these actions have occurred in the last hour, then we are probably away (or asleep).
Ok, I attach an image of the rule. The basic idea is that of simple reference counting and a virtual switch that signals the current state in a more simple way. The rule, however, builds on a couple of assumptions, and I just want to make sure that they are true in Rule creator:
* I have assumed that many instances of a rule may exist at a specific point in time. That is, if you have two triggers for the rule (WHEN) then one may trigger the rule, and the other may trigger the rule again just a second later.
* I have assumed that variables are shared between instances of the rule.
* I have assumed that a variable may be increased even though I never initialized it.
So, which one of these are correct?