Is there a way to reset a slew of rule machine local variables?

Is there a way to reset a slew of rule machine local variables? I have about 15 different rules that announce to open or close a door or window based on certain conditions. The trigger is based off motion and typically has a few restrictions. I created a custom local variable booleon, "run recently" that gets set to true after the announcement occurs. Then after a period of time it is set back to false. That way the action only runs if it wasnt run recently.

What i am finding is that occasionally the "run recently" variable gets set to true after a network outage or hub reset, even though it wasnt run recently. Or rather, the timer got interrupted before it was able to set itself back to false. Is there a way i can create a rule that i can manually run, or run at a specific time, to reset those custom variables back to their desired default of "false?"

Id rather not go through all my rules and re-code them to use the default private booleon which seems like the only local variable i can reset from a seperate rule machine rule. Even though "set variable" seems to be an optional action in rule machine i dont see set local variable. Seems private booleon is the only one i can set from an outside rule? Or am i missing something?

PS im new here. Just switched over from smartthings about a week and a half ago.

Any help would be appreciated!

There are others with more expertise than me, but I believe this is what it is. Best options are likely to switch to using the private boolean or a hub variable.

1 Like

There are a couple of ways to do that are a bit convoluted. But in theory you could have another rule that would cause these rules to run in such a way that they knew their purpose in running was to reset those variables. If you really want to go down this path, I could explain the convolutions.

But I must say, these would all be much more difficult than just switching to Private Boolean, and having a simpler way to reset it from another rule. End result would be the same, namely, you'd have to modify every one of these rules, and the convoluted mechanisms are pretty hard to put together -- so I'd definitely recommend just doing PB.

3 Likes

Got it. Will just switch to private booleon instead. Thank you.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.