[SOLVED] Multiple Holidays, one Ruleset
-
-
Looks good. The Date/Time constraints for Memorial and Labor Days are technically, and very specifically, correct, but don't need to be (as specific). A full month range would have the same effect, since the Date/time and the Weekday conditions are AND'd together. So you've put a bit more thought into it than it actually requires, but you're not wrong; it should work great.
-
So we all looked at it... and we all missed it lol.
Independence Day = 00:00 07/04 - 00:00 07/04. That doesn't work because literally zero time lol. Now, 00:00 07/04 - 00:00 07/05 works... because WHOLE DAY lol
Figured it out when the lights were reported by neighbor to have never come on. Logs agreed. Updated, tested on 07/05 for a few minutes and we're all set for next year.
-
You can also use "after" instead of between. The rule stays true for a while, but it still only fires the reaction when it changes (once).
-
You can also use "after" instead of between. The rule stays true for a while, but it still only fires the reaction when it changes (once).
@toggledbits I'm always looking for better ways to smarten my rulesets. As you noted earlier in this thread, I tend to overthink the criteria a bit.
-
@gwp1 said in Multiple Holidays, one Ruleset:
Complication: one is a static date each year, the others are "last Monday of" and "first Monday of" respectively
I use a Google Calendar plugin in my Vera controller for the holidays that float around. I/E not always on X day. Labor Day, Memorial Day, Mother's Day, etc. If the gCal device contains the word "Easter", lets say, AND my lights are on, then color them. I used to use PLEG in Vera for this and programing it wasn't as easy as I wished, so I never touched it once I got set. Plus there was a bug with any event that contained an apostrophe. I reported this bug several times, but it remained for several versions. Regardless, this worked flawlessly in RfV, but bogged my Vera down. I also doubled my dates when it because super easy in Reactor. That's what helped bog my controller down. But now I'm on MSR and loving it. And I probably took the color changes a tad too far, but that's why I have them too.
My color changing days:
Easter, Mother's Day, Martin Luther King, President's Day, Memorial Day, D-Day, Flag Day, Juneteenth, Independence Day, Labor Day, Patriots Day, Columbus Day, Peral Harbor Day, Valentine's Day, Black History Month (Start of), Cinco de Mayo, Christmas, Women's History Month (Start of), Purple Heart Day, Thanksgiving, Native American Heritage, Halloween, St. Patrick's Day, Veterans Day, and Father's Day.Yikes. I may have a problem.
-
I have different colors for each holiday
I’m using https://www.webcal.guru/en-US/today
Lots of calendar and very reliable.
-
I have different colors for each holiday
I’m using https://www.webcal.guru/en-US/today
Lots of calendar and very reliable.
@therealdb I've never seen that calendar site before - interesting.
-
T toggledbits locked this topic on