A way to set a rule to run annually on a certain day rather than date?

I didn't see this or I did and missed it

I can set rules to turn on my lights to Red White Blue on certain dates like annually on the 4th of July or Veterans day Nov 11th

However is there a way set a specific day annually? So for example presidents day the 3rd Monday of Feb annually or labor Day the 1st Monday of Sept annually?

Look in HPM for the Date and Time Parser by James Shimota. It creates all the date/day/time variables that you use and trigger off of.

1 Like

Yes, you can use Periodic Schedule for a trigger in Rule Machine, and use a Cron String. For example, this is the 3rd Monday of February every year:

0 0 0 ? FEB 2#3 *

See the Cron String Generator....

4 Likes

Awesome thanks, that was pretty easy to setup and follow

One more question, does this override any other lighting schedule for that day? So if I have a light schedule to happen at 4pm to turn them all green, does this rule override that one?

No, you'd have to work that out through the rule, depending on how you are doing the normal lighting. There are lots of ways to go about this.

3 Likes