Is there a scheduler for running rules?

Has anyone developed a scheduler app for scheduling the running of Rules?

I have a number of utility rules that I run daily (sometimes twice daily) and when a SystemStart occurs. Examples are the LED ON & OFF colors for light switches (daytime OFF is a different color than nighttime OFF for some switches) and setting a hub variable to a GMT offset (to be used in constructing DateTime strings).

Currently, I use a Rule Machine rule to run these types of rules spaced various times apart. For example, I start running the first rule 120 seconds after a trigger event (mostly because I want some time to elapse after a SystemStart to ease CPU loading), and then 30 seconds or so between rules. I realize that I could specify a trigger within each rule, but then I'd have to track when they start running (I wouldn't want all rules having a Sunset trigger to run at the same time, and I don't want to keep track of different offsets to space such rules out).

So not really a pressing need, just checking to see if someone's done a nice app.

I don't have an app but do use standard Rule Machine functionality to set up several sets of rules such as

Scheduled tasks: Every 10 minutes
Scheduled tasks: Every hour
Scheduled tasks: Each day at sunset
Scheduled tasks: Each day at 11:59 PM

1 Like

You can run rule actions from other rules, so maybe one rule you run (manually or via some trigger) whenever/however you want that does this with whatever delay you want in between the "Run Rule Actions" actions?

The GCal Search app that I maintain can call rule actions based on Google calendar events. Not sure if this is what you are looking for but wanted to mention.

1 Like

As mentioned above you can set scheduled times.

image

In this case my rule is triggered by button presses and at a certain time.

That's EXACTLY what I'm doing now, as indicated in the original post.

Yes, I know, that's exactly how I trigger my "rule running rule".

Yeah, that description wasn't exactly clear:

In any case, I'm now not sure what you hope to accomplish via some other means that this doesn't. Maybe sharing more specifics would be helpful.

1 Like

The quote you snipped was preceded by this sentence and phrase, which was followed by the quoted example:

To clear up any confusion about this fact, allow me to clarify that I read the entire post (quoting only the most relevant point for succinctness), and the above was still not clear to me. For example, that could have been a rule like the one I suggested or just the first of several rules you were running -- or something else. :slight_smile: A screenshot or at least more specifics, as suggested, can go a long way towards helping others see what may seem obvious to you, as, again, can sharing more about what you might want beyond that.

Please also maintain a respectful tone towards fellow community members, per the community guidelines. Thanks!

2 Likes
Summary

:man_shrugging:

2 Likes

I would buy that app!

Sorry for the confusion. I was focused on my question, not my existing solution (which works fine, just a bit inelegant and somewhat tedious to maintain compared to a well-designed app that allows rules to be picked from a list and corresponding times set)

1 Like

Where is @thebearmay when you really need him... :wink:

[Sets new app timer for 2 hours] :smiley:

4 Likes

Or evcallia (the idea of a rule execution scheduler came to me while using his device scheduling app).

1 Like

John, I also enjoy using Evan's scheduling app. I wish there were more apps that use a table format. It is so much easier to get multiple devices set up the same way. I'd love to have Lights after Motion in a table format instead of individual child apps.
I use @thebearmay's Hub Information Manager driver to set a Wait Until CPU load is less than a certain level before each of the rules that I run at startup. This keeps the hub from being overloaded at startup. With all of the rules called from a single rule they run in a set sequence.

3 Likes

I love that idea! I’m going to steal it…

1 Like

Do you mean something like this where I define the lights for each room and mode? Each room has a similar table like this. I can add as many light groups (Main, Accent, etc.) as I want.

image

That shouldn't be too difficult to create. I'm not sure how you would pull a list of rules from RM but I expect it is possible.

If you search for a community app here, I think it's called Rule Manager if I remember correctly, the app pulls all the rules from Rule machine into itself to allow you to display them in the app.